Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1742189imu; Wed, 28 Nov 2018 14:27:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vud3ST5lIMlexn54igwNrTOShgxTXTb5gJHt6gWyC+cSwakCJsh56j5R7aJ8TEwWu9UkpJ X-Received: by 2002:a63:9402:: with SMTP id m2mr33688583pge.93.1543444053199; Wed, 28 Nov 2018 14:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543444053; cv=none; d=google.com; s=arc-20160816; b=HfwXamKdMy7AE+lewU4fkLSVHPWLMQE304EUxEM6qVDnkuAuTWlFz+Vgd7qEl5LnrT HvA6PwQVDLd6midOcRihNTm3fcghBTh+iMGrR1RuvcDOF2K5Af9ffQicV/hv0cuVzoya gDN+XwTzcZ+TDcuzeDRQCTB0hxkDV66uCMDtQ7j2fL4DnLcfIzWaguEeqzuyHlkUUL7R WBoo6r5fdrslgxD8RIo9eAmrIrAbEaEoyfzp+WtyzVdE29O003c0cLGh0hUjPwF8hP/C 9MS7gmEjCUABuaaN1F7QqsWCA1QUcr/1AWNti56z3Es++7P3V00XmId44B9/Zr3RN+wZ fthQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dgAoGCETXZSxZB8tzo4BibNSVdo/WRxSH182yG+VG5Y=; b=SqSqUuaGf+s84H0KGVRGTviPI3emGLne7HILOvPmRIRbtealDBapH0Th1EGXt2aG8y 6ZHzk0McuA7J8Pkwu1rKg4+45Em/J9EBRTgxTsKwn9X/txf1nWfoun8nR3kp5SUaSLZz jB7074vk+DeeH1Fg7HPAUMZWOnCEXq0H7b2ZW3muAbADu921vX6FYbDqx2FVhKDjOxHZ L57m4vArPNwh9Oc7zn6jubKbCfLN0PAiPRg7QbN2msDBCqKJu7uUMnEDOXzX9BHPeLI3 SFZ3IUFoSATUpk9aKKeDNBM6I6J+wIEPabUEe1+65M3ekNqQ6YHOR41A57CG26agyUfe +amQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si4711992pls.30.2018.11.28.14.27.18; Wed, 28 Nov 2018 14:27:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727301AbeK2J1K (ORCPT + 99 others); Thu, 29 Nov 2018 04:27:10 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:33053 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbeK2JYH (ORCPT ); Thu, 29 Nov 2018 04:24:07 -0500 Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1gS8CS-0001GX-Ne; Wed, 28 Nov 2018 23:20:55 +0100 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, Andy Lutomirski , Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , kvm@vger.kernel.org, "Jason A. Donenfeld" , Rik van Riel , Dave Hansen , Sebastian Andrzej Siewior Subject: [PATCH 04/29] x86/pkeys: Make init_pkru_value static Date: Wed, 28 Nov 2018 23:20:10 +0100 Message-Id: <20181128222035.2996-5-bigeasy@linutronix.de> X-Mailer: git-send-email 2.20.0.rc1 In-Reply-To: <20181128222035.2996-1-bigeasy@linutronix.de> References: <20181128222035.2996-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable init_pkru_value isn't used outside of this file. Make init_pkru_value static. Acked-by: Dave Hansen Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/mm/pkeys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/mm/pkeys.c b/arch/x86/mm/pkeys.c index 6e98e0a7c9231..047a77f6a10cb 100644 --- a/arch/x86/mm/pkeys.c +++ b/arch/x86/mm/pkeys.c @@ -131,6 +131,7 @@ int __arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey * in the process's lifetime will not accidentally get access * to data which is pkey-protected later on. */ +static u32 init_pkru_value = PKRU_AD_KEY( 1) | PKRU_AD_KEY( 2) | PKRU_AD_KEY( 3) | PKRU_AD_KEY( 4) | PKRU_AD_KEY( 5) | PKRU_AD_KEY( 6) | PKRU_AD_KEY( 7) | PKRU_AD_KEY( 8) | PKRU_AD_KEY( 9) | -- 2.20.0.rc1