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

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>

authored by

Randy Dunlap and committed by
Max Filippov
84e34a99 494e87ff

+1
+1
arch/xtensa/mm/fault.c
··· 20 20 #include <asm/mmu_context.h> 21 21 #include <asm/cacheflush.h> 22 22 #include <asm/hardirq.h> 23 + #include <asm/traps.h> 23 24 24 25 void bad_page_fault(struct pt_regs*, unsigned long, int); 25 26