mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static
@ 2025-03-04 16:06 Ilpo Järvinen
  2025-03-04 16:06 ` [PATCH 2/2] platform/x86: dell-uart-backlight: Make dell_uart_bl_serdev_driver static Ilpo Järvinen
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Ilpo Järvinen @ 2025-03-04 16:06 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen, platform-driver-x86, linux-kernel

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 <ilpo.jarvinen@linux.intel.com>
---
 drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c b/drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c
index a96b215cd2c5..25933cd018d1 100644
--- a/drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c
+++ b/drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c
@@ -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
-- 
2.39.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-03-05 13:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-04 16:06 [PATCH 1/2] platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static Ilpo Järvinen
2025-03-04 16:06 ` [PATCH 2/2] platform/x86: dell-uart-backlight: Make dell_uart_bl_serdev_driver static Ilpo Järvinen
2025-03-04 17:22   ` Mario Limonciello
2025-03-05 11:22   ` Hans de Goede
2025-03-04 17:21 ` [PATCH 1/2] platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static Mario Limonciello
2025-03-05 11:22 ` Hans de Goede
2025-03-05 13:09 ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®