Skip to content

Commit 0dde1e3

Browse files
Avenger-285714gregkh
authored andcommitted
MIPS: dec: Declare which_prom() as static
commit 55fa5868519bc48a7344a4c070efa2f4468f2167 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 <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f331105 commit 0dde1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/dec/prom/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int (*__pmax_close)(int);
4242
* Detect which PROM the DECSTATION has, and set the callback vectors
4343
* appropriately.
4444
*/
45-
void __init which_prom(s32 magic, s32 *prom_vec)
45+
static void __init which_prom(s32 magic, s32 *prom_vec)
4646
{
4747
/*
4848
* No sign of the REX PROM's magic number means we assume a non-REX

0 commit comments

Comments
 (0)