提交 174b701d 编写于 作者: M Mathieu Malaterre 提交者: Michael Ellerman

powerpc/32: Move the inline keyword at the beginning of function declaration

The inline keyword was not at the beginning of the function declaration.
Fix the following warning (treated as error in W=1):

  arch/powerpc/lib/sstep.c:283:1: error: ‘inline’ is not at beginning of declaration
   static int nokprobe_inline copy_mem_in(u8 *dest, unsigned long ea, int nb,
  arch/powerpc/lib/sstep.c:388:1: error: ‘inline’ is not at beginning of declaration
   static int nokprobe_inline copy_mem_out(u8 *dest, unsigned long ea, int nb,
Signed-off-by: NMathieu Malaterre <malat@debian.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 65e13c20
...@@ -280,7 +280,7 @@ static nokprobe_inline int read_mem_aligned(unsigned long *dest, ...@@ -280,7 +280,7 @@ static nokprobe_inline int read_mem_aligned(unsigned long *dest,
* Copy from userspace to a buffer, using the largest possible * Copy from userspace to a buffer, using the largest possible
* aligned accesses, up to sizeof(long). * aligned accesses, up to sizeof(long).
*/ */
static int nokprobe_inline copy_mem_in(u8 *dest, unsigned long ea, int nb, static nokprobe_inline int copy_mem_in(u8 *dest, unsigned long ea, int nb,
struct pt_regs *regs) struct pt_regs *regs)
{ {
int err = 0; int err = 0;
...@@ -385,7 +385,7 @@ static nokprobe_inline int write_mem_aligned(unsigned long val, ...@@ -385,7 +385,7 @@ static nokprobe_inline int write_mem_aligned(unsigned long val,
* Copy from a buffer to userspace, using the largest possible * Copy from a buffer to userspace, using the largest possible
* aligned accesses, up to sizeof(long). * aligned accesses, up to sizeof(long).
*/ */
static int nokprobe_inline copy_mem_out(u8 *dest, unsigned long ea, int nb, static nokprobe_inline int copy_mem_out(u8 *dest, unsigned long ea, int nb,
struct pt_regs *regs) struct pt_regs *regs)
{ {
int err = 0; int err = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册