summaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2023-09-19 22:21:25 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2023-09-20 05:03:18 -0700
commit84e34a99fd403ba3c131584fa023a0a5ce217feb (patch)
treee565c3299143ff0a5b318cd78b0565ac9207dea0 /arch/xtensa
parent494e87ffa0159b3f879694a9231089707792a44d (diff)
downloadlinux-stable-84e34a99fd403ba3c131584fa023a0a5ce217feb.tar.gz
linux-stable-84e34a99fd403ba3c131584fa023a0a5ce217feb.tar.bz2
linux-stable-84e34a99fd403ba3c131584fa023a0a5ce217feb.zip
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>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/mm/fault.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/mm/fault.c b/arch/xtensa/mm/fault.c
index d1eb8d6c5b82..16e11b6f6f78 100644
--- a/arch/xtensa/mm/fault.c
+++ b/arch/xtensa/mm/fault.c
@@ -20,6 +20,7 @@
#include <asm/mmu_context.h>
#include <asm/cacheflush.h>
#include <asm/hardirq.h>
+#include <asm/traps.h>
void bad_page_fault(struct pt_regs*, unsigned long, int);