drivers/soc/ixp4xx/ixp4xx-qmgr.c:451:34: warning: 'ixp4xx_qmgr_of_match' defined but not used

From: kernel test robot
Date: Mon May 23 2022 - 04:43:58 EST


Hi Arnd,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b0986a3613c92f4ec1bdc7f60ec66fea135991f
commit: 7f94b69ece515ac82defa60ef7cba2cf26180216 ARM: ixp4xx: fix compile-testing soc drivers
date: 10 months ago
config: i386-buildonly-randconfig-r002-20220523 (https://download.01.org/0day-ci/archive/20220523/202205231601.bE28TyYb-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f94b69ece515ac82defa60ef7cba2cf26180216
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7f94b69ece515ac82defa60ef7cba2cf26180216
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/clk/imx/ drivers/irqchip/ drivers/media/platform/ drivers/soc/ixp4xx/

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

All warnings (new ones prefixed by >>):

>> drivers/soc/ixp4xx/ixp4xx-qmgr.c:451:34: warning: 'ixp4xx_qmgr_of_match' defined but not used [-Wunused-const-variable=]
451 | static const struct of_device_id ixp4xx_qmgr_of_match[] = {
| ^~~~~~~~~~~~~~~~~~~~
--
drivers/soc/ixp4xx/ixp4xx-npe.c:696:25: note: in expansion of macro 'dev_info'
696 | dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
| ^~~~~~~~
drivers/soc/ixp4xx/ixp4xx-npe.c:696:54: note: format string is defined here
696 | dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
| ~~~^
| |
| unsigned int
| %08llx
In file included from include/linux/device.h:15,
from include/linux/dma-mapping.h:7,
from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
drivers/soc/ixp4xx/ixp4xx-npe.c:696:39: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
696 | dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/soc/ixp4xx/ixp4xx-npe.c:696:25: note: in expansion of macro 'dev_info'
696 | dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
| ^~~~~~~~
drivers/soc/ixp4xx/ixp4xx-npe.c:696:61: note: format string is defined here
696 | dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
| ~~~^
| |
| unsigned int
| %08llx
In file included from include/linux/device.h:15,
from include/linux/dma-mapping.h:7,
from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
drivers/soc/ixp4xx/ixp4xx-npe.c:705:39: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
705 | dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/soc/ixp4xx/ixp4xx-npe.c:705:25: note: in expansion of macro 'dev_info'
705 | dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
| ^~~~~~~~
drivers/soc/ixp4xx/ixp4xx-npe.c:705:54: note: format string is defined here
705 | dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
| ~~~^
| |
| unsigned int
| %08llx
In file included from include/linux/device.h:15,
from include/linux/dma-mapping.h:7,
from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
drivers/soc/ixp4xx/ixp4xx-npe.c:705:39: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
705 | dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/soc/ixp4xx/ixp4xx-npe.c:705:25: note: in expansion of macro 'dev_info'
705 | dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
| ^~~~~~~~
drivers/soc/ixp4xx/ixp4xx-npe.c:705:61: note: format string is defined here
705 | dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
| ~~~^
| |
| unsigned int
| %08llx
In file included from include/linux/device.h:15,
from include/linux/dma-mapping.h:7,
from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
drivers/soc/ixp4xx/ixp4xx-npe.c:710:31: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
710 | dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/soc/ixp4xx/ixp4xx-npe.c:710:17: note: in expansion of macro 'dev_info'
710 | dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
| ^~~~~~~~
drivers/soc/ixp4xx/ixp4xx-npe.c:710:46: note: format string is defined here
710 | dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
| ~~~^
| |
| unsigned int
| %08llx
In file included from include/linux/device.h:15,
from include/linux/dma-mapping.h:7,
from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
drivers/soc/ixp4xx/ixp4xx-npe.c:710:31: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
710 | dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/soc/ixp4xx/ixp4xx-npe.c:710:17: note: in expansion of macro 'dev_info'
710 | dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
| ^~~~~~~~
drivers/soc/ixp4xx/ixp4xx-npe.c:710:53: note: format string is defined here
710 | dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
| ~~~^
| |
| unsigned int
| %08llx
At top level:
>> drivers/soc/ixp4xx/ixp4xx-npe.c:737:34: warning: 'ixp4xx_npe_of_match' defined but not used [-Wunused-const-variable=]
737 | static const struct of_device_id ixp4xx_npe_of_match[] = {
| ^~~~~~~~~~~~~~~~~~~


vim +/ixp4xx_qmgr_of_match +451 drivers/soc/ixp4xx/ixp4xx-qmgr.c

82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_qmgr.c Krzysztof Halasa 2008-01-01 450
9e01a00958405f drivers/soc/ixp4xx/ixp4xx-qmgr.c Linus Walleij 2019-02-10 @451 static const struct of_device_id ixp4xx_qmgr_of_match[] = {
9e01a00958405f drivers/soc/ixp4xx/ixp4xx-qmgr.c Linus Walleij 2019-02-10 452 {
9e01a00958405f drivers/soc/ixp4xx/ixp4xx-qmgr.c Linus Walleij 2019-02-10 453 .compatible = "intel,ixp4xx-ahb-queue-manager",
9e01a00958405f drivers/soc/ixp4xx/ixp4xx-qmgr.c Linus Walleij 2019-02-10 454 },
9e01a00958405f drivers/soc/ixp4xx/ixp4xx-qmgr.c Linus Walleij 2019-02-10 455 {},
9e01a00958405f drivers/soc/ixp4xx/ixp4xx-qmgr.c Linus Walleij 2019-02-10 456 };
9e01a00958405f drivers/soc/ixp4xx/ixp4xx-qmgr.c Linus Walleij 2019-02-10 457

:::::: The code at line 451 was first introduced by commit
:::::: 9e01a00958405f59e0a85fd16eb4e879e983ea74 soc: ixp4xx: qmgr: Add DT probe code

:::::: TO: Linus Walleij <linus.walleij@xxxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

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