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/
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
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
3 matches
Mail list logo