diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-06-03 10:41:48 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-06-16 16:09:09 +0200 |
commit | cb2f1fb205cc20695fcaef84baf80d9d3e54c88b (patch) | |
tree | 27aaa3ee651593e3b5b0ecc21daf5ab0d3fb9d7b /arch/powerpc/include/asm/nohash | |
parent | powerpc/kuap: Remove KUAP_CURRENT_XXX (diff) | |
download | linux-cb2f1fb205cc20695fcaef84baf80d9d3e54c88b.tar.xz linux-cb2f1fb205cc20695fcaef84baf80d9d3e54c88b.zip |
powerpc/kuap: Remove to/from/size parameters of prevent_user_access()
prevent_user_access() doesn't use anymore to/from/size parameters.
Remove them.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b7113662fd2c26e4c33e9d705de324bd3860822e.1622708530.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm/nohash')
-rw-r--r-- | arch/powerpc/include/asm/nohash/32/kup-8xx.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/nohash/32/kup-8xx.h b/arch/powerpc/include/asm/nohash/32/kup-8xx.h index f6a3c1935e75..882a0bc7887a 100644 --- a/arch/powerpc/include/asm/nohash/32/kup-8xx.h +++ b/arch/powerpc/include/asm/nohash/32/kup-8xx.h @@ -71,8 +71,7 @@ static inline void allow_user_access(void __user *to, const void __user *from, mtspr(SPRN_MD_AP, MD_APG_INIT); } -static inline void prevent_user_access(void __user *to, const void __user *from, - unsigned long size, unsigned long dir) +static inline void prevent_user_access(unsigned long dir) { if (kuap_is_disabled()) return; |