You need to sign in or sign up before continuing.
提交 9271481f 编写于 作者: A Andy Shevchenko 提交者: Zheng Zengkai

driver core: platform: Declare early_platform_cleanup() prototype

stable inclusion
from stable-5.10.37
commit 0256f4205c141bd67db50a3b1dde341dff375873
bugzilla: 51868
CVE: NA

--------------------------------

[ Upstream commit 1768289b ]

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: eecd37e1 ("drivers: Fix boot problem on SuperH")
Cc: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210331150525.59223-1-andriy.shevchenko@linux.intel.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 4fb4cc87
...@@ -350,4 +350,7 @@ static inline int is_sh_early_platform_device(struct platform_device *pdev) ...@@ -350,4 +350,7 @@ static inline int is_sh_early_platform_device(struct platform_device *pdev)
} }
#endif /* CONFIG_SUPERH */ #endif /* CONFIG_SUPERH */
/* For now only SuperH uses it */
void early_platform_cleanup(void);
#endif /* _PLATFORM_DEVICE_H_ */ #endif /* _PLATFORM_DEVICE_H_ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册