[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202409170900.BtJZbhrx-lkp@intel.com>
Date: Tue, 17 Sep 2024 09:48:51 +0800
From: kernel test robot <lkp@...el.com>
To: Christophe Leroy <christophe.leroy@...roup.eu>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Michael Ellerman <mpe@...erman.id.au>
Subject: arch/powerpc/platforms/44x/uic.c:40:12: sparse: sparse: symbol
'primary_uic' was not declared. Should it be static?
Hi Christophe,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a430d95c5efa2b545d26a094eb5f624e36732af0
commit: d5d1a1a55a7f227c0f41847b0598982f0a93170d powerpc/platforms: Move files from 4xx to 44x
date: 3 months ago
config: powerpc-randconfig-r132-20240916 (https://download.01.org/0day-ci/archive/20240917/202409170900.BtJZbhrx-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240917/202409170900.BtJZbhrx-lkp@intel.com/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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409170900.BtJZbhrx-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/powerpc/platforms/44x/uic.c:40:12: sparse: sparse: symbol 'primary_uic' was not declared. Should it be static?
arch/powerpc/platforms/44x/uic.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/slab.h):
include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false
include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false
--
>> arch/powerpc/platforms/44x/pci.c:116:54: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *cell @@ got unsigned int const [usertype] * @@
arch/powerpc/platforms/44x/pci.c:116:54: sparse: expected restricted __be32 const [usertype] *cell
arch/powerpc/platforms/44x/pci.c:116:54: sparse: got unsigned int const [usertype] *
>> arch/powerpc/platforms/44x/pci.c:117:74: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __be32 const [usertype] *in_addr @@ got unsigned int const [usertype] * @@
arch/powerpc/platforms/44x/pci.c:117:74: sparse: expected restricted __be32 const [usertype] *in_addr
arch/powerpc/platforms/44x/pci.c:117:74: sparse: got unsigned int const [usertype] *
arch/powerpc/platforms/44x/pci.c:118:52: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *cell @@ got unsigned int const [usertype] * @@
arch/powerpc/platforms/44x/pci.c:118:52: sparse: expected restricted __be32 const [usertype] *cell
arch/powerpc/platforms/44x/pci.c:118:52: sparse: got unsigned int const [usertype] *
>> arch/powerpc/platforms/44x/pci.c:1528:30: sparse: sparse: cast removes address space '__iomem' of expression
>> arch/powerpc/platforms/44x/pci.c:1528:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned char const volatile [noderef] [usertype] __iomem *addr @@ got unsigned char [usertype] * @@
arch/powerpc/platforms/44x/pci.c:1528:30: sparse: expected unsigned char const volatile [noderef] [usertype] __iomem *addr
arch/powerpc/platforms/44x/pci.c:1528:30: sparse: got unsigned char [usertype] *
arch/powerpc/platforms/44x/pci.c:1531:33: sparse: sparse: cast removes address space '__iomem' of expression
>> arch/powerpc/platforms/44x/pci.c:1531:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned short const volatile [noderef] [usertype] __iomem *addr @@ got unsigned short [usertype] * @@
arch/powerpc/platforms/44x/pci.c:1531:33: sparse: expected unsigned short const volatile [noderef] [usertype] __iomem *addr
arch/powerpc/platforms/44x/pci.c:1531:33: sparse: got unsigned short [usertype] *
arch/powerpc/platforms/44x/pci.c:1534:33: sparse: sparse: cast removes address space '__iomem' of expression
>> arch/powerpc/platforms/44x/pci.c:1534:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned int const volatile [noderef] [usertype] __iomem *addr @@ got unsigned int [usertype] * @@
arch/powerpc/platforms/44x/pci.c:1534:33: sparse: expected unsigned int const volatile [noderef] [usertype] __iomem *addr
arch/powerpc/platforms/44x/pci.c:1534:33: sparse: got unsigned int [usertype] *
arch/powerpc/platforms/44x/pci.c:1585:24: sparse: sparse: cast removes address space '__iomem' of expression
>> arch/powerpc/platforms/44x/pci.c:1585:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned char volatile [noderef] [usertype] __iomem *addr @@ got unsigned char [usertype] * @@
arch/powerpc/platforms/44x/pci.c:1585:24: sparse: expected unsigned char volatile [noderef] [usertype] __iomem *addr
arch/powerpc/platforms/44x/pci.c:1585:24: sparse: got unsigned char [usertype] *
arch/powerpc/platforms/44x/pci.c:1588:27: sparse: sparse: cast removes address space '__iomem' of expression
>> arch/powerpc/platforms/44x/pci.c:1588:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned short volatile [noderef] [usertype] __iomem *addr @@ got unsigned short [usertype] * @@
arch/powerpc/platforms/44x/pci.c:1588:27: sparse: expected unsigned short volatile [noderef] [usertype] __iomem *addr
arch/powerpc/platforms/44x/pci.c:1588:27: sparse: got unsigned short [usertype] *
arch/powerpc/platforms/44x/pci.c:1591:27: sparse: sparse: cast removes address space '__iomem' of expression
>> arch/powerpc/platforms/44x/pci.c:1591:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected unsigned int volatile [noderef] [usertype] __iomem *addr @@ got unsigned int [usertype] * @@
arch/powerpc/platforms/44x/pci.c:1591:27: sparse: expected unsigned int volatile [noderef] [usertype] __iomem *addr
arch/powerpc/platforms/44x/pci.c:1591:27: sparse: got unsigned int [usertype] *
arch/powerpc/platforms/44x/pci.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false
include/linux/page-flags.h:240:46: sparse: sparse: self-comparison always evaluates to false
vim +/primary_uic +40 arch/powerpc/platforms/44x/uic.c
e58923ed14370e arch/powerpc/sysdev/uic.c David Gibson 2007-04-18 39
e58923ed14370e arch/powerpc/sysdev/uic.c David Gibson 2007-04-18 @40 struct uic *primary_uic;
e58923ed14370e arch/powerpc/sysdev/uic.c David Gibson 2007-04-18 41
:::::: The code at line 40 was first introduced by commit
:::::: e58923ed14370e0facc5eb2c3923216adc3bf260 [POWERPC] Add arch/powerpc driver for UIC, PPC4xx interrupt controller
:::::: TO: David Gibson <david@...son.dropbear.id.au>
:::::: CC: Paul Mackerras <paulus@...ba.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists