[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1579596611-258536-1-git-send-email-alex.shi@linux.alibaba.com>
Date: Tue, 21 Jan 2020 16:50:11 +0800
From: Alex Shi <alex.shi@...ux.alibaba.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>, x86@...nel.org,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Cyrill Gorcunov <gorcunov@...il.com>,
Dave Hansen <dave.hansen@...el.com>,
Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@...el.com>,
Aubrey Li <aubrey.li@...ux.intel.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH] x86/fpu: remove unused macros
NR_VALID_PKRU_BITS/PKRU_VALID_MASK are never used after it was
introduced. So better to remove them.
Signed-off-by: Alex Shi <alex.shi@...ux.alibaba.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: Borislav Petkov <bp@...en8.de>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: x86@...nel.org
Cc: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: Cyrill Gorcunov <gorcunov@...il.com>
Cc: Dave Hansen <dave.hansen@...el.com>
Cc: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@...el.com>
Cc: Aubrey Li <aubrey.li@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org
---
arch/x86/kernel/fpu/xstate.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c
index fa31470bbf24..73c3e2e72a88 100644
--- a/arch/x86/kernel/fpu/xstate.c
+++ b/arch/x86/kernel/fpu/xstate.c
@@ -899,8 +899,6 @@ const void *get_xsave_field_ptr(int xfeature_nr)
#ifdef CONFIG_ARCH_HAS_PKEYS
-#define NR_VALID_PKRU_BITS (CONFIG_NR_PROTECTION_KEYS * 2)
-#define PKRU_VALID_MASK (NR_VALID_PKRU_BITS - 1)
/*
* This will go out and modify PKRU register to set the access
* rights for @pkey to @init_val.
--
1.8.3.1
Powered by blists - more mailing lists