projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e34b4ac
)
m68k: kernel: Make bad_super_trap() static
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Wed, 13 Sep 2023 14:07:53 +0000
(16:07 +0200)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Fri, 6 Oct 2023 08:03:01 +0000
(10:03 +0200)
When building with W=1:
arch/m68k/kernel/traps.c:968:6: warning: no previous prototype for ‘bad_super_trap’ [-Wmissing-prototypes]
968 | void bad_super_trap (struct frame *fp)
| ^~~~~~~~~~~~~~
Fix this by making bad_super_trap() static.
There was never a user outside arch/m68k/kernel/traps.c.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link:
https://lore.kernel.org/r/1e0b67a355d7e1bcb40811eced41d3080e8f4d20.1694613528.git.geert@linux-m68k.org
arch/m68k/kernel/traps.c
patch
|
blob
|
history
diff --git
a/arch/m68k/kernel/traps.c
b/arch/m68k/kernel/traps.c
index a700807c9b6d9999f188c215edb872ba1724c3d8..b3fee39f8f518c6ec56b0f088b22617ea2548e47 100644
(file)
--- a/
arch/m68k/kernel/traps.c
+++ b/
arch/m68k/kernel/traps.c
@@
-965,7
+965,7
@@
void show_stack(struct task_struct *task, unsigned long *stack,
* real 68k parts, but it won't hurt either.
*/
-
void bad_super_trap
(struct frame *fp)
+
static void bad_super_trap
(struct frame *fp)
{
int vector = (fp->ptregs.vector >> 2) & 0xff;