Skip to contentSkip to conversation

MIPS: BCM47XX: include header for bcm47xx_prom_highmem_init() prototype

PATCH Applied Yongzhen Zhang 3 participants 3 messages Mar 15, 2024 – Apr 15, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: BCM47XX: include header for bcm47xx_prom_highmem_init() prototype

bcm47xx_prom_highmem_init() is a global function declared in arch/mips/bcm47xx/bcm47xx_private.h, but this header is not included before the definition, causing a error:

arch/mips/bcm47xx/prom.c:134:13: error: no previous prototype for ‘bcm47xx_prom_highmem_init’ [-Werror=missing-prototypes]
134 | void __init bcm47xx_prom_highmem_init(void)

      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
---
 arch/mips/bcm47xx/prom.c | 1 +
 1 file changed, 1 insertion(+)
arch/mips/bcm47xx/prom.c +1 -0
index 99a1ba5394e0..7344a5eb990e 100644
@@ -35,6 +35,7 @@
 #include <asm/bootinfo.h>
 #include <bcm47xx.h>
 #include <bcm47xx_board.h>
+#include "bcm47xx_private.h"
 
 static char bcm47xx_system_type[20] = "Broadcom BCM47XX";
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Yongzhen Zhang

bcm47xx_prom_highmem_init() is a global function declared in arch/mips/bcm47xx/bcm47xx_private.h, but this header is not included before the definition, causing a error:

Quoted 8 lines

arch/mips/bcm47xx/prom.c:134:13: error: no previous prototype for ‘bcm47xx_prom_highmem_init’ [-Werror=missing-prototypes]
134 | void __init bcm47xx_prom_highmem_init(void)

       |             ^~~~~~~~~~~~~~~~~~~~~~~~~
---
  arch/mips/bcm47xx/prom.c | 1 +
  1 file changed, 1 insertion(+)
maintainer Applied
#2 lore raw
In reply to Yongzhen Zhang
Quoted 27 lines · Yongzhen Zhang

bcm47xx_prom_highmem_init() is a global function declared in arch/mips/bcm47xx/bcm47xx_private.h, but this header is not included before the definition, causing a error:

arch/mips/bcm47xx/prom.c:134:13: error: no previous prototype for ‘bcm47xx_prom_highmem_init’ [-Werror=missing-prototypes]
134 | void __init bcm47xx_prom_highmem_init(void)

      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
---
 arch/mips/bcm47xx/prom.c | 1 +
 1 file changed, 1 insertion(+)
arch/mips/bcm47xx/prom.c +1 -0
index 99a1ba5394e0..7344a5eb990e 100644
@@ -35,6 +35,7 @@
 #include <asm/bootinfo.h>
 #include <bcm47xx.h>
 #include <bcm47xx_board.h>
+#include "bcm47xx_private.h"
 
 static char bcm47xx_system_type[20] = "Broadcom BCM47XX";
 
Signature · 1 line
2.34.1

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]