[linux-next:master 11012/13846] arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in argument 2 (different address spaces)

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6b8c8af514d739d0335f5579b585e02babe8a727
commit: 8ae6e79ee0ce7a533c005d12c9a230b273f32ef1 [11012/13846] mips: econet: add multi-vpe capability to EN751221
config: mips-randconfig-r122-20260808 (https://download.01.org/0day-ci/archive/20260809/[email protected]/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260809/[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]/

sparse warnings: (new ones prefixed by >>)
   arch/mips/kernel/smp.c: note: in included file (through arch/mips/include/asm/mips-cps.h):
>> arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got void * @@
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     expected void volatile [noderef] __iomem *mem
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     got void *
>> arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got void * @@
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     expected void volatile [noderef] __iomem *mem
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     got void *
>> arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got void * @@
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     expected void volatile [noderef] __iomem *mem
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     got void *
>> arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got void * @@
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     expected void volatile [noderef] __iomem *mem
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     got void *
>> arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void * @@     got void [noderef] __iomem * @@
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     expected void *
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     got void [noderef] __iomem *
>> arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void * @@     got void [noderef] __iomem * @@
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     expected void *
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     got void [noderef] __iomem *
>> arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void * @@     got void [noderef] __iomem * @@
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     expected void *
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     got void [noderef] __iomem *
>> arch/mips/include/asm/mips-cpc.h:109:1: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void * @@     got void [noderef] __iomem * @@
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     expected void *
   arch/mips/include/asm/mips-cpc.h:109:1: sparse:     got void [noderef] __iomem *

vim +109 arch/mips/include/asm/mips-cpc.h

23cb600e3fd406 Paul Burton 2017-08-12  107  
829ca2be9c55c7 Paul Burton 2017-08-12  108  /* CPC_Cx_CMD - Instruct the CPC to take action on a core */
2c981e325f0c18 Paul Burton 2017-08-12 @109  CPC_CX_ACCESSOR_RW(32, 0x000, cmd)
829ca2be9c55c7 Paul Burton 2017-08-12  110  #define CPC_Cx_CMD				GENMASK(3, 0)
829ca2be9c55c7 Paul Burton 2017-08-12  111  #define  CPC_Cx_CMD_CLOCKOFF			0x1
829ca2be9c55c7 Paul Burton 2017-08-12  112  #define  CPC_Cx_CMD_PWRDOWN			0x2
829ca2be9c55c7 Paul Burton 2017-08-12  113  #define  CPC_Cx_CMD_PWRUP			0x3
829ca2be9c55c7 Paul Burton 2017-08-12  114  #define  CPC_Cx_CMD_RESET			0x4
829ca2be9c55c7 Paul Burton 2017-08-12  115  

:::::: The code at line 109 was first introduced by commit
:::::: 2c981e325f0c18e24ce252f16f5018b9ee805212 MIPS: CPC: Use common CPS accessor generation macros

:::::: TO: Paul Burton <[email protected]>
:::::: CC: Ralf Baechle <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.