drivers/tty/serial/pic32_uart.c:904:34: warning: 'pic32_serial_dt_ids' defined but not used
kernel test robot
build botHi Jiri,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b46c89c08f4146e7987fc355941a93b12e2c03ef commit: e3e7b13bffae85e2806c73e3ccacd4447bcb19ed serial: allow COMPILE_TEST for some drivers date: 2 years, 9 months ago config: mips-randconfig-s051-20221112 (https://download.01.org/0day-ci/archive/20250126/[email protected]/config) compiler: mips-linux-gcc (GCC) 12.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250126/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> drivers/tty/serial/pic32_uart.c:904:34: warning: 'pic32_serial_dt_ids' defined but not used [-Wunused-const-variable=]
904 | static const struct of_device_id pic32_serial_dt_ids[] = {
| ^~~~~~~~~~~~~~~~~~~vim +/pic32_serial_dt_ids +904 drivers/tty/serial/pic32_uart.c
157b9394709ed5 Andrei Pistirica 2016-01-13 903
157b9394709ed5 Andrei Pistirica 2016-01-13 @904 static const struct of_device_id pic32_serial_dt_ids[] = {
157b9394709ed5 Andrei Pistirica 2016-01-13 905 { .compatible = "microchip,pic32mzda-uart" },
157b9394709ed5 Andrei Pistirica 2016-01-13 906 { /* sentinel */ }
157b9394709ed5 Andrei Pistirica 2016-01-13 907 };
157b9394709ed5 Andrei Pistirica 2016-01-13 908 MODULE_DEVICE_TABLE(of, pic32_serial_dt_ids);157b9394709ed5 Andrei Pistirica 2016-01-13 909
:::::: The code at line 904 was first introduced by commit
:::::: 157b9394709ed5233288986a293405def22792ed serial: pic32_uart: Add PIC32 UART driver
:::::: TO: Andrei Pistirica <[email protected]> :::::: CC: Ralf Baechle <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki