Skip to contentSkip to conversation

riscv/mm/fault: Fix old style declaration warning

PATCH New YueHaibing 1 participant 1 message Sep 10, 2020 RISC-V

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 riscv/mm/fault: Fix old style declaration warning

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) ^~~~~~

---
 arch/riscv/mm/fault.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/mm/fault.c +1 -1
index a23eaf5ce95c..a173432ccf82 100644
@@ -78,7 +78,7 @@ static inline void bad_area(struct pt_regs *regs, struct mm_struct *mm, int code
 	no_context(regs, addr);
 }
 
-static void inline vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr)
+static inline void vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr)
 {
 	pgd_t *pgd, *pgd_k;
 	pud_t *pud, *pud_k;
Signature · 1 line
2.17.1