Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7445126imu; Mon, 3 Dec 2018 13:04:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/UOzuW1vEIjSi1aXkSPT0fHVdHWlV+H2oOrp+G0h8Z1vFoJoHg86lf/hs6WBX49AoHGoXXW X-Received: by 2002:a17:902:8ec8:: with SMTP id x8mr17589050plo.210.1543871067744; Mon, 03 Dec 2018 13:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543871067; cv=none; d=google.com; s=arc-20160816; b=DGI7Bjj/xNh4EAzGW0I5l+aHuXCQ0UresW2OWdqskgmx1HWJGFR10bg9nX1aV5MZ9H b8xOoI3td0shtCMSgfpJgPdkfaG0vIngThZesJw32M9I2Td2rQyM2/SAaAvhWQaDe7UA zUKKg5cld5y1+UGuY4ERe39lEXa7IqGuTmgEluI0sybgjKvWMbLncti8VoVb6IUdpzsJ sGZV8y+6svBT7tvn9qO/R30D1uBDjt2Xne0B6z9GyR9Dum1ZY+dX+WLmqAbVpL5FHn9E ML/oSh7ZTHKnQZA55JXvr2x2MKqVnPDCSAJ1zzh+p7HVpW4SeRIIcANiJwPH6oXcP91/ Dpqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=cY4500TzyO0p29bBYXJVMFhb/E75iTP4twJdNkf6oNM=; b=rFv9yAww4o2EG++LEMLpbEEKABRBWlUrZhu7xm4lHHxOwqVQSU1BfRNoICUFtrskqG FI44peS5tUsTaoyqK6koDKOfu5m5ltGH4zv7ZP5Wr/9QUg4QY+csHareLqaBrJJfmFel Su7VLUwJ7u9ThqiD2/PlqnSjxOYuUQeralzFM+rFNqabRnYhVk97Gmhcmdte7sutwLkA uNHEJZDME9ZAtJTc0DbmAMEwrKwb1iCxVawGlLOfuUWTh5CRxYsZhH92nzVXbo+4Cumk VozzLzYVUmvm97h3M4FnEFPhWPU+Vb1cM5CA2eHuXsYOLLR1tNMm2OMP/Yb4q3qq1qBt QMZA== 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 p18si14021887plo.223.2018.12.03.13.04.05; Mon, 03 Dec 2018 13:04:27 -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 S1726059AbeLCVDT (ORCPT + 99 others); Mon, 3 Dec 2018 16:03:19 -0500 Received: from terminus.zytor.com ([198.137.202.136]:33415 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbeLCVDS (ORCPT ); Mon, 3 Dec 2018 16:03:18 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wB3L2exu594443 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 3 Dec 2018 13:02:40 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wB3L2eQU594440; Mon, 3 Dec 2018 13:02:40 -0800 Date: Mon, 3 Dec 2018 13:02:40 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Sebastian Andrzej Siewior Message-ID: Cc: mingo@redhat.com, kvm@vger.kernel.org, luto@kernel.org, x86@kernel.org, bp@suse.de, rkrcmar@redhat.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com, riel@surriel.com, pbonzini@redhat.com, dave.hansen@linux.intel.com, bigeasy@linutronix.de, Jason@zx2c4.com Reply-To: tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, bp@suse.de, rkrcmar@redhat.com, pbonzini@redhat.com, dave.hansen@linux.intel.com, bigeasy@linutronix.de, Jason@zx2c4.com, hpa@zytor.com, riel@surriel.com, kvm@vger.kernel.org, mingo@redhat.com, luto@kernel.org, x86@kernel.org In-Reply-To: <20181128222035.2996-5-bigeasy@linutronix.de> References: <20181128222035.2996-5-bigeasy@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/fpu] x86/pkeys: Make init_pkru_value static Git-Commit-ID: 1a4226efaf808fe9079ea3b29919883008918297 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 1a4226efaf808fe9079ea3b29919883008918297 Gitweb: https://git.kernel.org/tip/1a4226efaf808fe9079ea3b29919883008918297 Author: Sebastian Andrzej Siewior AuthorDate: Wed, 28 Nov 2018 23:20:10 +0100 Committer: Borislav Petkov CommitDate: Mon, 3 Dec 2018 19:10:18 +0100 x86/pkeys: Make init_pkru_value static The variable init_pkru_value isn't used outside of this file. Make it static. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Borislav Petkov Reviewed-by: Rik van Riel Acked-by: Dave Hansen Cc: "H. Peter Anvin" Cc: "Jason A. Donenfeld" Cc: Andy Lutomirski Cc: Ingo Molnar Cc: Paolo Bonzini Cc: Peter Zijlstra Cc: Radim Krčmář Cc: Thomas Gleixner Cc: kvm ML Cc: x86-ml Link: https://lkml.kernel.org/r/20181128222035.2996-5-bigeasy@linutronix.de --- 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 6e98e0a7c923..047a77f6a10c 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) |