From: Yongzhen Zhang Date: Fri, 15 Mar 2024 02:29:23 +0000 (+0800) Subject: MIPS: BCM47XX: include header for bcm47xx_prom_highmem_init() prototype X-Git-Tag: v6.10-rc1~92^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34059321f4cf541d69e733cd02882d62c489bb77;p=thirdparty%2Fkernel%2Flinux.git 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) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Yongzhen Zhang Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/bcm47xx/prom.c b/arch/mips/bcm47xx/prom.c index 99a1ba5394e02..7344a5eb990ec 100644 --- a/arch/mips/bcm47xx/prom.c +++ b/arch/mips/bcm47xx/prom.c @@ -35,6 +35,7 @@ #include #include #include +#include "bcm47xx_private.h" static char bcm47xx_system_type[20] = "Broadcom BCM47XX";