projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dbda52
)
m68k: sun3x: Make sun3x_halt() static
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Wed, 13 Sep 2023 14:08:40 +0000
(16:08 +0200)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Fri, 6 Oct 2023 08:03:04 +0000
(10:03 +0200)
When building with W=1:
arch/m68k/sun3x/prom.c:33:6: warning: no previous prototype for ‘sun3x_halt’ [-Wmissing-prototypes]
33 | void sun3x_halt(void)
| ^~~~~~~~~~
Fix this by making sun3x_halt() static.
The function body was moved to arch/m68k/sun3x/prom.c in v2.4.5.2.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link:
https://lore.kernel.org/r/0ba2883aaff2e4fc5e570bfee87c58e483668b26.1694613528.git.geert@linux-m68k.org
arch/m68k/sun3x/prom.c
patch
|
blob
|
history
diff --git
a/arch/m68k/sun3x/prom.c
b/arch/m68k/sun3x/prom.c
index 64c23bfaa90c5ba9006002c6e91969c776b6bf0c..8ac87d3dc60718d9692aabd77f37616c8140302d 100644
(file)
--- a/
arch/m68k/sun3x/prom.c
+++ b/
arch/m68k/sun3x/prom.c
@@
-30,7
+30,7
@@
struct linux_romvec *romvec;
e_vector *sun3x_prom_vbr;
/* Handle returning to the prom */
-void sun3x_halt(void)
+
static
void sun3x_halt(void)
{
unsigned long flags;