Skip to content

Commit 5a0c749

Browse files
rddunlaptsbogend
authored andcommitted
MIPS: loongson2ef: lemote-2f: add missing function prototypes
Add several missing function prototypes for lemote-2f to eliminate build warnings: arch/mips/loongson2ef/lemote-2f/machtype.c:10:13: warning: no previous prototype for 'mach_prom_init_machtype' [-Wmissing-prototypes] 10 | void __init mach_prom_init_machtype(void) arch/mips/loongson2ef/common/machtype.c:34:20: warning: no previous prototype for 'mach_prom_init_machtype' [-Wmissing-prototypes] 34 | void __weak __init mach_prom_init_machtype(void) arch/mips/loongson2ef/lemote-2f/pm.c:52:6: warning: no previous prototype for 'setup_wakeup_events' [-Wmissing-prototypes] 52 | void setup_wakeup_events(void) arch/mips/loongson2ef/lemote-2f/pm.c:90:5: warning: no previous prototype for 'wakeup_loongson' [-Wmissing-prototypes] 90 | int wakeup_loongson(void) arch/mips/loongson2ef/lemote-2f/pm.c:137:13: warning: no previous prototype for 'mach_suspend' [-Wmissing-prototypes] 137 | void __weak mach_suspend(void) arch/mips/loongson2ef/lemote-2f/pm.c:142:13: warning: no previous prototype for 'mach_resume' [-Wmissing-prototypes] 142 | void __weak mach_resume(void) Signed-off-by: Randy Dunlap <[email protected]> Cc: Jiaxun Yang <[email protected]> Cc: [email protected] Cc: Thomas Bogendoerfer <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 314da9d commit 5a0c749

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/mips/include/asm/mach-loongson2ef/loongson.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ extern void bonito_irq_init(void);
1818
extern void mach_prepare_reboot(void);
1919
extern void mach_prepare_shutdown(void);
2020

21+
/* machine-specific PROM functions */
22+
extern void __init mach_prom_init_machtype(void);
23+
2124
/* environment arguments from bootloader */
2225
extern u32 cpu_clock_freq;
2326
extern u32 memsize, highmemsize;
@@ -45,6 +48,12 @@ extern void __init mach_init_irq(void);
4548
extern void mach_irq_dispatch(unsigned int pending);
4649
extern int mach_i8259_irq(void);
4750

51+
/* power management functions */
52+
extern void setup_wakeup_events(void);
53+
extern int wakeup_loongson(void);
54+
extern void __weak mach_suspend(void);
55+
extern void __weak mach_resume(void);
56+
4857
/* We need this in some places... */
4958
#define delay() ({ \
5059
int x; \

0 commit comments

Comments
 (0)