Hi Arnd, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes head: be32e0f17dc184e41da2e83e5bf700f3f1c7e93f commit: 7f94b69ece515ac82defa60ef7cba2cf26180216 [192/251] ARM: ixp4xx: fix compile-testing soc drivers config: mips-randconfig-s032-20210803 (attached as .config) compiler: mips64-linux-gcc (GCC) 10.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7f94b69ece515ac82defa60ef7cba2cf26180216 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next pending-fixes git checkout 7f94b69ece515ac82defa60ef7cba2cf26180216 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): 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: In function 'ixp4xx_npe_probe': >> drivers/soc/ixp4xx/ixp4xx-npe.c:696:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 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:4: 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:33: 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:18: 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:4: 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:40: 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:18: 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:4: 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:33: 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:18: 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:4: 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:40: 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:17: 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:3: 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:32: 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:17: 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:3: 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:39: note: format string is defined here 710 | dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n", vim +696 drivers/soc/ixp4xx/ixp4xx-npe.c 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 679 bc4d7eafb7ad59 drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 680 static int ixp4xx_npe_probe(struct platform_device *pdev) 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 681 { 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 682 int i, found = 0; 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 683 struct device *dev = &pdev->dev; 76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2021-05-25 684 struct device_node *np = dev->of_node; 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 685 struct resource *res; 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 686 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 687 for (i = 0; i < NPE_COUNT; i++) { 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 688 struct npe *npe = &npe_tab[i]; 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 689 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 690 res = platform_get_resource(pdev, IORESOURCE_MEM, i); 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 691 if (!res) 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 692 return -ENODEV; 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 693 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 694 if (!(ixp4xx_read_feature_bits() & 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 695 (IXP4XX_FEATURE_RESET_NPEA << i))) { 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 @696 dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n", 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 697 i, res->start, res->end); 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 698 continue; /* NPE already disabled or not present */ 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 699 } 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 700 npe->regs = devm_ioremap_resource(dev, res); cd3967bee004bc drivers/soc/ixp4xx/ixp4xx-npe.c Dan Carpenter 2019-06-18 701 if (IS_ERR(npe->regs)) cd3967bee004bc drivers/soc/ixp4xx/ixp4xx-npe.c Dan Carpenter 2019-06-18 702 return PTR_ERR(npe->regs); 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 703 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 704 if (npe_reset(npe)) { 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 705 dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n", 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 706 i, res->start, res->end); 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 707 continue; 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 708 } 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 709 npe->valid = 1; 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 710 dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n", 0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2019-02-10 711 i, res->start, res->end); 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 712 found++; 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 713 } 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 714 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 715 if (!found) 3ba8c792055286 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Hałasa 2009-04-28 716 return -ENODEV; 76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2021-05-25 717 76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2021-05-25 718 /* Spawn crypto subdevice if using device tree */ 76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2021-05-25 719 if (IS_ENABLED(CONFIG_OF) && np) 76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2021-05-25 720 devm_of_platform_populate(dev); 76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c Linus Walleij 2021-05-25 721 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 722 return 0; 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 723 } 82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01 724 :::::: The code at line 696 was first introduced by commit :::::: 0b458d7b10f83eb34b84957e6cf47cee2a97bc49 soc: ixp4xx: npe: Pass addresses as resources :::::: TO: Linus Walleij <linus.walleij@xxxxxxxxxx> :::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip