drivers/video/backlight/lp855x_bl.c:511:34: warning: 'lp855x_dt_ids' defined but not used

From: kernel test robot
Date: Mon May 09 2022 - 16:55:14 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9be9ed2612b5aedb52a2c240edb1630b6b743cb6
commit: 8c5dc8d9f19c7992b5ed557b865127a80149041b video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol
date: 3 years, 1 month ago
config: i386-randconfig-a016-20220509 (https://download.01.org/0day-ci/archive/20220510/202205100408.icb8X7jy-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8c5dc8d9f19c7992b5ed557b865127a80149041b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8c5dc8d9f19c7992b5ed557b865127a80149041b
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/video/backlight/

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

All warnings (new ones prefixed by >>):

>> drivers/video/backlight/lp855x_bl.c:511:34: warning: 'lp855x_dt_ids' defined but not used [-Wunused-const-variable=]
511 | static const struct of_device_id lp855x_dt_ids[] = {
| ^~~~~~~~~~~~~


vim +/lp855x_dt_ids +511 drivers/video/backlight/lp855x_bl.c

7be865ab8634d4 Kim, Milo 2012-03-23 510
4add06645a0be0 Kim, Milo 2013-04-29 @511 static const struct of_device_id lp855x_dt_ids[] = {
4add06645a0be0 Kim, Milo 2013-04-29 512 { .compatible = "ti,lp8550", },
4add06645a0be0 Kim, Milo 2013-04-29 513 { .compatible = "ti,lp8551", },
4add06645a0be0 Kim, Milo 2013-04-29 514 { .compatible = "ti,lp8552", },
4add06645a0be0 Kim, Milo 2013-04-29 515 { .compatible = "ti,lp8553", },
5812c13a4e636d Milo Kim 2013-11-12 516 { .compatible = "ti,lp8555", },
4add06645a0be0 Kim, Milo 2013-04-29 517 { .compatible = "ti,lp8556", },
4add06645a0be0 Kim, Milo 2013-04-29 518 { .compatible = "ti,lp8557", },
4add06645a0be0 Kim, Milo 2013-04-29 519 { }
4add06645a0be0 Kim, Milo 2013-04-29 520 };
4add06645a0be0 Kim, Milo 2013-04-29 521 MODULE_DEVICE_TABLE(of, lp855x_dt_ids);
4add06645a0be0 Kim, Milo 2013-04-29 522

:::::: The code at line 511 was first introduced by commit
:::::: 4add06645a0be0519030705e3076e1a5ceba7477 backlight: lp855x: add a device tree structure

:::::: TO: Kim, Milo <Milo.Kim@xxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

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