leds: simatic-ipc-leds: Make simatic_ipc_led_mem_res static
authorHans de Goede <hdegoede@redhat.com>
Mon, 17 Jan 2022 11:21:08 +0000 (12:21 +0100)
committerPavel Machek <pavel@ucw.cz>
Thu, 17 Feb 2022 11:25:09 +0000 (12:25 +0100)
simatic_ipc_led_mem_res is not used outside of the driver, make it static.

Cc: Henning Schild <henning.schild@siemens.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/simple/simatic-ipc-leds.c

index ff2c96e73241cb21e68a134a73af839ff9796c83..179110448659af74e359f1ae160a88b87f63eb8a 100644 (file)
@@ -39,7 +39,7 @@ static struct simatic_ipc_led simatic_ipc_leds_io[] = {
 };
 
 /* the actual start will be discovered with PCI, 0 is a placeholder */
-struct resource simatic_ipc_led_mem_res = DEFINE_RES_MEM_NAMED(0, SZ_4K, KBUILD_MODNAME);
+static struct resource simatic_ipc_led_mem_res = DEFINE_RES_MEM_NAMED(0, SZ_4K, KBUILD_MODNAME);
 
 static void *simatic_ipc_led_memory;