Skip to content

Commit 84e34a9

Browse files
rddunlapjcmvbkbc
authored andcommitted
xtensa: fault: include <asm/traps.h>
Use <asm/traps.h> to provide the function prototype for do_page_fault() to prevent a build warning: arch/xtensa/mm/fault.c:87:6: warning: no previous prototype for 'do_page_fault' [-Wmissing-prototypes] 87 | void do_page_fault(struct pt_regs *regs) Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Message-Id: <20230920052139.10570-3-rdunlap@infradead.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent 494e87f commit 84e34a9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/xtensa/mm/fault.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <asm/mmu_context.h>
2121
#include <asm/cacheflush.h>
2222
#include <asm/hardirq.h>
23+
#include <asm/traps.h>
2324

2425
void bad_page_fault(struct pt_regs*, unsigned long, int);
2526

0 commit comments

Comments
 (0)