From: Andy Shevchenko Date: Wed, 31 Mar 2021 15:05:25 +0000 (+0300) Subject: driver core: platform: Declare early_platform_cleanup() prototype X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1768289b44bae847612751d418fc5c5e680b5e5c;p=linux.git driver core: platform: Declare early_platform_cleanup() prototype Compiler is not happy: CC drivers/base/platform.o drivers/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 Reviewed-by: Guenter Roeck Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20210331150525.59223-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 3f23f6e430bfa..cd81e060863c9 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -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_ */