Message ID | 20181004140547.13014-7-bigeasy@linutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | x86: load FPU registers on return to userland | expand |
On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > The variable init_pkru_value isn't used outside of this file. > Make init_pkru_value static. > > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Looks good. Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
diff --git a/arch/x86/mm/pkeys.c b/arch/x86/mm/pkeys.c index 4409ada551c5e..a150984171684 100644 --- a/arch/x86/mm/pkeys.c +++ b/arch/x86/mm/pkeys.c @@ -150,6 +150,7 @@ void write_pkru(u32 pkru) * 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) |
The variable init_pkru_value isn't used outside of this file. Make init_pkru_value static. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- arch/x86/mm/pkeys.c | 1 + 1 file changed, 1 insertion(+)