[PATCH -next] riscv/mm/fault: Fix old style declaration warning

2020-09-09 Thread YueHaibing
Fix gcc build warning: arch/riscv/mm/fault.c:81:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] static void inline vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr) ^~ Reported-by: Hulk Robot Signed-off-by: YueHaibing --- arch/riscv/mm/

Re: [PATCH -next] riscv/mm/fault: fix old-style-declaration warning

2020-09-09 Thread Pekka Enberg
Hi, On Wed, Sep 9, 2020 at 2:20 PM Wei Yongjun wrote: > > gcc report build warning as follows: > > arch/riscv/mm/fault.c:81:1: warning: > 'inline' is not at beginning of declaration [-Wold-style-declaration] >81 | static void inline vmalloc_fault(struct pt_regs *regs, int code, > unsigned l

[PATCH -next] riscv/mm/fault: fix old-style-declaration warning

2020-09-09 Thread Wei Yongjun
gcc report build warning as follows: arch/riscv/mm/fault.c:81:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 81 | static void inline vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr) | ^~ This commit fix it by moving 'inline' after