Commit 66f4e4de authored by Yongzhen Zhang's avatar Yongzhen Zhang Committed by 张永震
Browse files

MIPS: BCM47XX: include header for bcm47xx_prom_highmem_init() prototype

mainline inclusion
from mainline-v6.10-rc1
commit 34059321f4cf541d69e733cd02882d62c489bb77
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB5RH3
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34059321f4cf



--------------------------------

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: default avatarYongzhen Zhang <zhangyongzhen@kylinos.cn>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent dcaed8ad
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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";