You need to sign in or sign up before continuing.
提交 e6e6479c 编写于 作者: C Conor Dooley 提交者: Arnd Bergmann

soc: microchip: make mpfs_sys_controller_put static

dsafsdfd0054 ("soc: add microchip polarfire soc system controller")
incorrectly exported mpfs_sys_controller_put. Remove the export and make
the function static instead. This fixes the "no previous prototype
for 'mpfs_sys_controller_put'" warning spotted by the kernel test robot.

Fixes: d0054a47 ("soc: add microchip polarfire soc system controller")
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NConor Dooley <conor.dooley@microchip.com>
Signed-off-by: NConor Dooley <mail@conchuod.ie>
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 27888394
......@@ -73,13 +73,12 @@ static void mpfs_sys_controller_delete(struct kref *kref)
kfree(sys_controller);
}
void mpfs_sys_controller_put(void *data)
static void mpfs_sys_controller_put(void *data)
{
struct mpfs_sys_controller *sys_controller = data;
kref_put(&sys_controller->consumers, mpfs_sys_controller_delete);
}
EXPORT_SYMBOL(mpfs_sys_controller_put);
static struct platform_device subdevs[] = {
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册