2022-03-11 17:48:30

by Yue Haibing

[permalink] [raw]
Subject: [PATCH -next] powerpc/kuap: Remove unused inline function __kuap_assert_locked()

commit 2341964e27b0 ("powerpc/kuap: Remove __kuap_assert_locked()")
left behind this one, remove it.

Signed-off-by: YueHaibing <[email protected]>
---
arch/powerpc/include/asm/kup.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/powerpc/include/asm/kup.h b/arch/powerpc/include/asm/kup.h
index fb2237809d63..d751ddd08110 100644
--- a/arch/powerpc/include/asm/kup.h
+++ b/arch/powerpc/include/asm/kup.h
@@ -52,7 +52,6 @@ __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write)
return false;
}

-static inline void __kuap_assert_locked(void) { }
static inline void __kuap_lock(void) { }
static inline void __kuap_save_and_lock(struct pt_regs *regs) { }
static inline void kuap_user_restore(struct pt_regs *regs) { }
--
2.17.1


2022-03-11 23:08:47

by Christophe Leroy

[permalink] [raw]
Subject: Re: [PATCH -next] powerpc/kuap: Remove unused inline function __kuap_assert_locked()



Le 11/03/2022 à 14:00, YueHaibing a écrit :
> commit 2341964e27b0 ("powerpc/kuap: Remove __kuap_assert_locked()")
> left behind this one, remove it.
>
> Signed-off-by: YueHaibing <[email protected]>

Thanks for fixing this

Acked-by: Christophe Leroy <[email protected]>

> ---
> arch/powerpc/include/asm/kup.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/powerpc/include/asm/kup.h b/arch/powerpc/include/asm/kup.h
> index fb2237809d63..d751ddd08110 100644
> --- a/arch/powerpc/include/asm/kup.h
> +++ b/arch/powerpc/include/asm/kup.h
> @@ -52,7 +52,6 @@ __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write)
> return false;
> }
>
> -static inline void __kuap_assert_locked(void) { }
> static inline void __kuap_lock(void) { }
> static inline void __kuap_save_and_lock(struct pt_regs *regs) { }
> static inline void kuap_user_restore(struct pt_regs *regs) { }