summaryrefslogtreecommitdiff
path: root/arch/m68k/q40/q40.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2023-09-13 17:08:26 +0300
committerGeert Uytterhoeven <geert@linux-m68k.org>2023-10-06 11:03:03 +0300
commitbbe6980c332eeb3de171268709539820b3b117e1 (patch)
tree65a85b4fc9b83fd78a412509180b445a61b7299e /arch/m68k/q40/q40.h
parentdcec33c1fc4ab63983d93ffb0d82b68fc5775b88 (diff)
downloadlinux-bbe6980c332eeb3de171268709539820b3b117e1.tar.xz
m68k: q40: Add and use "q40.h"
When building with W=1: arch/m68k/q40/q40ints.c:84:13: warning: no previous prototype for ‘q40_init_IRQ’ [-Wmissing-prototypes] 84 | void __init q40_init_IRQ(void) | ^~~~~~~~~~~~ arch/m68k/q40/q40ints.c:112:6: warning: no previous prototype for ‘q40_mksound’ [-Wmissing-prototypes] 112 | void q40_mksound(unsigned int hz, unsigned int ticks) | ^~~~~~~~~~~ arch/m68k/q40/q40ints.c:152:6: warning: no previous prototype for ‘q40_sched_init’ [-Wmissing-prototypes] 152 | void q40_sched_init (void) | ^~~~~~~~~~~~~~ Fix this by introducing a new header file "q40.h" for holding the prototypes of functions implemented in arch/m68k/q40/. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/7f983ce079b176e1e1ac2a7d0c35b36197c5fa6b.1694613528.git.geert@linux-m68k.org
Diffstat (limited to 'arch/m68k/q40/q40.h')
-rw-r--r--arch/m68k/q40/q40.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/m68k/q40/q40.h b/arch/m68k/q40/q40.h
new file mode 100644
index 000000000000..3146679bde0d
--- /dev/null
+++ b/arch/m68k/q40/q40.h
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/* q40ints.c */
+void q40_init_IRQ(void);
+void q40_mksound(unsigned int hz, unsigned int ticks);
+void q40_sched_init(void);