summaryrefslogtreecommitdiff
path: root/arch/m68k/kernel/ints.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2023-09-13 17:07:55 +0300
committerGeert Uytterhoeven <geert@linux-m68k.org>2023-10-06 11:03:01 +0300
commitef69fb4dce17c1e19bef7ba1b34fa37115171fee (patch)
treed7eaf6f689d64ffdcf56ebece1607a8dfa90cd82 /arch/m68k/kernel/ints.h
parent0891c4740c22e8408bece7ff266791a523061041 (diff)
downloadlinux-ef69fb4dce17c1e19bef7ba1b34fa37115171fee.tar.xz
m68k: kernel: Add and use "ints.h"
When building with W=1: arch/m68k/kernel/ints.c:165:17: warning: no previous prototype for ‘handle_badint’ [-Wmissing-prototypes] 165 | asmlinkage void handle_badint(struct pt_regs *regs) | ^~~~~~~~~~~~~ Fix this by introducing a new header file "ints.h" for holding the prototypes of functions implemented in arch/m68k/kernel/ints.c. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/dc65d01ca4c7de94ce814e5b5e1f726fff97566b.1694613528.git.geert@linux-m68k.org
Diffstat (limited to 'arch/m68k/kernel/ints.h')
-rw-r--r--arch/m68k/kernel/ints.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/m68k/kernel/ints.h b/arch/m68k/kernel/ints.h
new file mode 100644
index 000000000000..ecac6011c1a4
--- /dev/null
+++ b/arch/m68k/kernel/ints.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <linux/linkage.h>
+
+struct pt_regs;
+
+asmlinkage void handle_badint(struct pt_regs *regs);