Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

riscv/mm/fault: Fix inline placement in vmalloc_fault() declaration

The "inline" keyword is in the wrong place in vmalloc_fault()
declaration:

>> arch/riscv/mm/fault.c:56:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
56 | static void inline vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr)
| ^~~~~~

Fix that up.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>

authored by

Pekka Enberg and committed by
Palmer Dabbelt
2baa6d95 38f5bd23

+1 -1
+1 -1
arch/riscv/mm/fault.c
··· 78 78 no_context(regs, addr); 79 79 } 80 80 81 - static void inline vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr) 81 + static inline void vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr) 82 82 { 83 83 pgd_t *pgd, *pgd_k; 84 84 pud_t *pud, *pud_k;