[pdx86-platform-drivers-x86:platform-drivers-x86-simatec 5/7] drivers/leds/simple/simatic-ipc-leds-gpio.c:18:27: sparse: sparse: symbol 'simatic_ipc_led_gpio_table' was not declared. Should it be static?

From: kernel test robot
Date: Mon Sep 05 2022 - 06:27:17 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git platform-drivers-x86-simatec
head: 8f5c9858c5db129359b5de2f60f5f034bf5d56c0
commit: a97126265dfe10d3321c0fde4708a6cea49b19ed [5/7] leds: simatic-ipc-leds-gpio: add new model 227G
config: x86_64-randconfig-s022-20220905 (https://download.01.org/0day-ci/archive/20220905/202209051817.JOPCa9LC-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?id=a97126265dfe10d3321c0fde4708a6cea49b19ed
git remote add pdx86-platform-drivers-x86 https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git
git fetch --no-tags pdx86-platform-drivers-x86 platform-drivers-x86-simatec
git checkout a97126265dfe10d3321c0fde4708a6cea49b19ed
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/leds/simple/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

sparse warnings: (new ones prefixed by >>)
>> drivers/leds/simple/simatic-ipc-leds-gpio.c:18:27: sparse: sparse: symbol 'simatic_ipc_led_gpio_table' was not declared. Should it be static?

--
0-DAY CI Kernel Test Service
https://01.org/lkp