Skip to contentSkip to conversation

platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static

PATCH In review Ilpo Järvinen 3 participants 7 messages Mar 4, 2025 – Mar 5, 2025 x86 platform drivers

lore
Share & tools
lore

Ilpo Järvinen

author maintainer
#0 lore raw

PATCH 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
index a96b215cd2c5..25933cd018d1 100644
@@ -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
author maintainer
#1 lore raw

PATCH 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
index 50002ef13d5d..8f868f845350 100644
@@ -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
Reviewed-by on v1 2/2
#2 lore raw

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.

Fixes 484bae9e4d6ac ("platform/x86: Add new Dell UART backlight driver")
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
index 50002ef13d5d..8f868f845350 100644
@@ -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,
Reviewed-by on v1 2/2
#3 lore raw

Re: [PATCH 2/2] platform/x86: dell-uart-backlight: Make dell_uart_bl_serdev_driver static

In reply to Ilpo Järvinen

Hi 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.

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
index 50002ef13d5d..8f868f845350 100644
@@ -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,
Reviewed-by on v1 1/2
#4 lore raw
In reply to Ilpo Järvinen
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.

Fixes b2ed33e8d486a ("platform/x86: Add lenovo-yoga-tab2-pro-1380-fastcharger driver")
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
index a96b215cd2c5..25933cd018d1 100644
@@ -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

Reviewed-by on v1 1/2
#5 lore raw
In reply to Ilpo Järvinen

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.

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
index a96b215cd2c5..25933cd018d1 100644
@@ -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

author maintainer
#6 lore raw
In reply to Ilpo Järvinen
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.

[...]

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.