linux-yocto/arch/mips/dec
WangYuli 9cac3ed9ca MIPS: dec: Declare which_prom() as static
commit 55fa586851 upstream.

Declare which_prom() as static to suppress gcc compiler warning that
'missing-prototypes'. This function is not intended to be called
from other parts.

Fix follow error with gcc-14 when -Werror:

arch/mips/dec/prom/init.c:45:13: error: no previous prototype for ‘which_prom’ [-Werror=missing-prototypes]
   45 | void __init which_prom(s32 magic, s32 *prom_vec)
      |             ^~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:207: arch/mips/dec/prom/init.o] Error 1
make[5]: *** [scripts/Makefile.build:465: arch/mips/dec/prom] Error 2
make[5]: *** Waiting for unfinished jobs....

Signed-off-by: WangYuli <wangyuli@uniontech.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-25 10:45:58 +02:00
..
prom MIPS: dec: Declare which_prom() as static 2025-04-25 10:45:58 +02:00
ecc-berr.c
int-handler.S mips: DEC: honor CONFIG_MIPS_FP_SUPPORT=n 2022-03-07 13:10:09 +01:00
ioasic-irq.c MIPS: fix typos in comments 2022-05-04 22:22:59 +02:00
kn01-berr.c
kn02-irq.c
kn02xa-berr.c
Makefile
Platform
platform.c
reset.c
setup.c MIPS: fix typos in comments 2022-05-04 22:22:59 +02:00
tc.c
time.c
wbflush.c