mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
driver core: platform: Declare early_platform_cleanup() prototype
[ Upstream commit1768289b44
] 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:eecd37e105
("drivers: Fix boot problem on SuperH") Cc: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210331150525.59223-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
100a5c76e5
commit
0256f4205c
1 changed files with 3 additions and 0 deletions
|
@ -350,4 +350,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_ */
|
||||
|
|
Loading…
Reference in a new issue