diff mbox series

powerpc/step: Mark __copy_mem_out() and __emulate_dcbz() __always_inline

Message ID f1d4a15da70190f8c2fcddb377bbc1e09827242c.1687343857.git.christophe.leroy@csgroup.eu (mailing list archive)
State Accepted
Commit 0d5769f9503d9a88661b82fee6a320e711f8b01a
Headers show
Series powerpc/step: Mark __copy_mem_out() and __emulate_dcbz() __always_inline | expand

Checks

Context Check Description
snowpatch_ozlabs/github-powerpc_ppctests success Successfully ran 8 jobs.
snowpatch_ozlabs/github-powerpc_selftests success Successfully ran 8 jobs.
snowpatch_ozlabs/github-powerpc_clang success Successfully ran 6 jobs.
snowpatch_ozlabs/github-powerpc_sparse success Successfully ran 4 jobs.
snowpatch_ozlabs/github-powerpc_kernel_qemu success Successfully ran 24 jobs.

Commit Message

Christophe Leroy June 21, 2023, 10:38 a.m. UTC
objtool reports two folliwng warnings:
  arch/powerpc/lib/sstep.o: warning: objtool: copy_mem_out+0x3c
    (.text+0x30c): call to __copy_mem_out() with UACCESS enabled
  arch/powerpc/lib/sstep.o: warning: objtool: emulate_dcbz+0x70
    (.text+0x4dc): call to __emulate_dcbz() with UACCESS enabled

Mark __copy_mem_out() and __emulate_dcbz() __always_inline

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
---
 arch/powerpc/lib/sstep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Michael Ellerman Aug. 23, 2023, 11:55 a.m. UTC | #1
On Wed, 21 Jun 2023 12:38:10 +0200, Christophe Leroy wrote:
> objtool reports two folliwng warnings:
>   arch/powerpc/lib/sstep.o: warning: objtool: copy_mem_out+0x3c
>     (.text+0x30c): call to __copy_mem_out() with UACCESS enabled
>   arch/powerpc/lib/sstep.o: warning: objtool: emulate_dcbz+0x70
>     (.text+0x4dc): call to __emulate_dcbz() with UACCESS enabled
> 
> Mark __copy_mem_out() and __emulate_dcbz() __always_inline
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/step: Mark __copy_mem_out() and __emulate_dcbz() __always_inline
      https://git.kernel.org/powerpc/c/0d5769f9503d9a88661b82fee6a320e711f8b01a

cheers
diff mbox series

Patch

diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c
index 38158b77a801..a4ab8625061a 100644
--- a/arch/powerpc/lib/sstep.c
+++ b/arch/powerpc/lib/sstep.c
@@ -485,7 +485,7 @@  write_mem_aligned(unsigned long val, unsigned long ea, int nb, struct pt_regs *r
  * Copy from a buffer to userspace, using the largest possible
  * aligned accesses, up to sizeof(long).
  */
-static nokprobe_inline int __copy_mem_out(u8 *dest, unsigned long ea, int nb, struct pt_regs *regs)
+static __always_inline int __copy_mem_out(u8 *dest, unsigned long ea, int nb, struct pt_regs *regs)
 {
 	int c;
 
@@ -1043,7 +1043,7 @@  static nokprobe_inline int do_vsx_store(struct instruction_op *op,
 }
 #endif /* CONFIG_VSX */
 
-static int __emulate_dcbz(unsigned long ea)
+static __always_inline int __emulate_dcbz(unsigned long ea)
 {
 	unsigned long i;
 	unsigned long size = l1_dcache_bytes();