Skip to content

Commit 2baa6d9

Browse files
penbergpalmer-dabbelt
authored andcommitted
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>
1 parent 38f5bd2 commit 2baa6d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/mm/fault.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static inline void bad_area(struct pt_regs *regs, struct mm_struct *mm, int code
7878
no_context(regs, addr);
7979
}
8080

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)
8282
{
8383
pgd_t *pgd, *pgd_k;
8484
pud_t *pud, *pud_k;

0 commit comments

Comments
 (0)