platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static
Ilpo Järvinen
maintainerPATCH 1/2 platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static
Sparse reports:
lenovo-yoga-tab2-pro-1380-fastcharger.c:222:29: warning: symbol 'yt2_1380_fc_serdev_driver' was not declared. Should it be static?
Fix that by making the symbol static.
--- drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c +1 -1
@@ -219,7 +219,7 @@ static int yt2_1380_fc_serdev_probe(struct serdev_device *serdev)return 0 ; } -struct serdev_device_driver yt2_1380_fc_serdev_driver = { +static struct serdev_device_driver yt2_1380_fc_serdev_driver = { .probe = yt2_1380_fc_serdev_probe, .driver = { .name =KBUILD_MODNAME ,
base-commit: 432c2adb9e2f84f81c4b218acb07a2cd3dce64a9
Signature · 1 line
2.39.5
Ilpo Järvinen
maintainerPATCH 2/2 platform/x86: dell-uart-backlight: Make dell_uart_bl_serdev_driver static
Sparse reports:
dell-uart-backlight.c:328:29: warning: symbol 'dell_uart_bl_serdev_driver' was not declared. Should it be static?
Fix it by making the symbol static.
--- drivers/platform/x86/dell/dell-uart-backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/dell/dell-uart-backlight.c +1 -1
@@ -325,7 +325,7 @@ static int dell_uart_bl_serdev_probe(struct serdev_device *serdev)return PTR_ERR_OR_ZERO (dell_bl->bl); } -struct serdev_device_driver dell_uart_bl_serdev_driver = { +static struct serdev_device_driver dell_uart_bl_serdev_driver = { .probe = dell_uart_bl_serdev_probe, .driver = { .name =KBUILD_MODNAME ,
Signature · 1 line
2.39.5
Re: [PATCH 2/2] platform/x86: dell-uart-backlight: Make dell_uart_bl_serdev_driver static
Quoted 8 lines · Ilpo Järvinen
Sparse reports:
dell-uart-backlight.c:328:29: warning: symbol '
dell_uart_bl_serdev_driver' was not declared. Should it be static?Fix it by making the symbol static.
Signed-off-by Ilpo Järvinen <[email protected]>
Quoted 17 lines
--- drivers/platform/x86/dell/dell-uart-backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/dell/dell-uart-backlight.c +1
-1@@ -325,7 +325,7 @@ static int dell_uart_bl_serdev_probe(struct serdev_device *serdev)return PTR_ERR_OR_ZERO (dell_bl->bl); } -struct serdev_device_driver dell_uart_bl_serdev_driver = { +static struct serdev_device_driver dell_uart_bl_serdev_driver = { .probe = dell_uart_bl_serdev_probe, .driver = { .name =KBUILD_MODNAME ,
Re: [PATCH 2/2] platform/x86: dell-uart-backlight: Make dell_uart_bl_serdev_driver static
In reply to Ilpo JärvinenHi Ilpo,
Quoted 8 lines · Ilpo Järvinen
Sparse reports:
dell-uart-backlight.c:328:29: warning: symbol '
dell_uart_bl_serdev_driver' was not declared. Should it be static?Fix it by making the symbol static.
Signed-off-by Ilpo Järvinen <[email protected]>
Thanks, patch looks good to me:
Regards,
Hans
Quoted 17 lines
--- drivers/platform/x86/dell/dell-uart-backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/dell/dell-uart-backlight.c +1
-1@@ -325,7 +325,7 @@ static int dell_uart_bl_serdev_probe(struct serdev_device *serdev)return PTR_ERR_OR_ZERO (dell_bl->bl); } -struct serdev_device_driver dell_uart_bl_serdev_driver = { +static struct serdev_device_driver dell_uart_bl_serdev_driver = { .probe = dell_uart_bl_serdev_probe, .driver = { .name =KBUILD_MODNAME ,
Quoted 8 lines · Ilpo Järvinen
Sparse reports:
lenovo-yoga-tab2-pro-1380-fastcharger.c:222:29: warning: symbol '
yt2_1380_fc_serdev_driver' was not declared. Should it be static?Fix that by making the symbol static.
Signed-off-by Ilpo Järvinen <[email protected]>
Quoted 19 lines
--- drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c +1
-1@@ -219,7 +219,7 @@ static int yt2_1380_fc_serdev_probe(struct serdev_device *serdev)return 0 ; } -struct serdev_device_driver yt2_1380_fc_serdev_driver = { +static struct serdev_device_driver yt2_1380_fc_serdev_driver = { .probe = yt2_1380_fc_serdev_probe, .driver = { .name =KBUILD_MODNAME ,base-commit:
432c2adb9e2f84f81c4b218acb07a2cd3dce64a9
Hi Ilpo,
Quoted 8 lines · Ilpo Järvinen
Sparse reports:
lenovo-yoga-tab2-pro-1380-fastcharger.c:222:29: warning: symbol '
yt2_1380_fc_serdev_driver' was not declared. Should it be static?Fix that by making the symbol static.
Signed-off-by Ilpo Järvinen <[email protected]>
Thanks, patch looks good to me:
Regards,
Hans
Quoted 19 lines
--- drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c +1
-1@@ -219,7 +219,7 @@ static int yt2_1380_fc_serdev_probe(struct serdev_device *serdev)return 0 ; } -struct serdev_device_driver yt2_1380_fc_serdev_driver = { +static struct serdev_device_driver yt2_1380_fc_serdev_driver = { .probe = yt2_1380_fc_serdev_probe, .driver = { .name =KBUILD_MODNAME ,base-commit:
432c2adb9e2f84f81c4b218acb07a2cd3dce64a9
Ilpo Järvinen
maintainerQuoted 8 lines · Ilpo Järvinen
Sparse reports:
lenovo-yoga-tab2-pro-1380-fastcharger.c:222:29: warning: symbol '
yt2_1380_fc_serdev_driver' was not declared. Should it be static?Fix that by making the symbol static.
[...]
Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.
The list of commits applied:
[1/2] platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static
commit: 886ca11a0c70efe5627a18557062e8a44370d78f
[2/2] platform/x86: dell-uart-backlight: Make dell_uart_bl_serdev_driver static
commit: 4878e0b14c3e31a87ab147bd2dae443394cb5a2c--
i.