driver core: platform: Declare early_platform_cleanup() prototype
PATCH 1/1 driver core: platform: Declare early_platform_cleanup() prototype
Compiler is not happy:
CC drivers/base/platform.odrivers/base/platform.c:1557:20: warning: no previous prototype for ‘early_platform_cleanup’ [-Wmissing-prototypes]
1557 | void __weak __init early_platform_cleanup(void) { }
| ^~~~~~~~~~~~~~~~~~~~~~
Declare early_platform_cleanup() prototype in the header to make everyone happy.
Fixes eecd37e105f0 ("drivers: Fix boot problem on SuperH")
Cc Guenter Roeck <[email protected]>
Signed-off-by Andy Shevchenko <[email protected]>
--- include/linux/platform_device.h | 3 +++ 1 file changed, 3 insertions(+)
include/linux/platform_device.h +3 -0
@@ -359,4 +359,7 @@ static inline int is_sh_early_platform_device(struct platform_device *pdev) }#endif /* CONFIG_SUPERH */ +/* For now only SuperH uses it */ +void early_platform_cleanup (void ); +#endif /* _PLATFORM_DEVICE_H_ */
Signature · 1 line
2.30.2
Quoted 5 lines · Andy Shevchenko
Compiler is not happy:
CC
drivers/base/platform.odrivers/base/platform.c:1557:20: warning: no previous prototype for ‘early_platform_cleanup’ [-Wmissing-prototypes]
1557 | void__weak__initearly_platform_cleanup(void){ }
Quoted 7 lines
| ^~~~~~~~~~~~~~~~~~~~~~Declare
early_platform_cleanup()prototype in the header to make everyone happy.Fixes eecd37e105f0 ("drivers: Fix boot problem on SuperH")Cc Guenter Roeck <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 19 lines
--- include/linux/platform_device.h | 3 +++ 1 file changed, 3 insertions(+)include/linux/platform_device.h +3
-0@@ -359,4 +359,7 @@ static inline int is_sh_early_platform_device(struct platform_device *pdev) }#endif /* CONFIG_SUPERH */ +/* For now only SuperH uses it */ +void early_platform_cleanup (void ); +#endif /* _PLATFORM_DEVICE_H_ */ Signature · 1 line
2.30.2