linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 4897/5417] drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2022-02-11 21:24 kernel test robot
  2022-02-14 12:27 ` Jan Dąbroś
  0 siblings, 1 reply; 6+ messages in thread
From: kernel test robot @ 2022-02-11 21:24 UTC (permalink / raw)
  To: Jan Dabros
  Cc: kbuild-all, Linux Memory Management List, Wolfram Sang, Andy Shevchenko

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6d9bd4ad4ca08b1114e814c2c42383b8b13be631
commit: 91560fe37f81ba8145427477a39cea88f4422385 [4897/5417] i2c: designware: Add AMD PSP I2C bus support
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220212/202202120520.NbWJGvF2-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=91560fe37f81ba8145427477a39cea88f4422385
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 91560fe37f81ba8145427477a39cea88f4422385
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/i2c/busses/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse:     got unsigned int *

vim +165 drivers/i2c/busses/i2c-designware-amdpsp.c

   159	
   160	/* Helper to verify status returned by PSP */
   161	static int check_i2c_req_sts(struct psp_i2c_req *req)
   162	{
   163		int status;
   164	
 > 165		status = readl(&req->hdr.status);
   166	
   167		switch (status) {
   168		case PSP_I2C_REQ_STS_OK:
   169			return 0;
   170		case PSP_I2C_REQ_STS_BUS_BUSY:
   171			return -EBUSY;
   172		case PSP_I2C_REQ_STS_INV_PARAM:
   173		default:
   174			return -EIO;
   175		};
   176	}
   177	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-16 14:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11 21:24 [linux-next:master 4897/5417] drivers/i2c/busses/i2c-designware-amdpsp.c:165:25: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2022-02-14 12:27 ` Jan Dąbroś
2022-02-14 13:27   ` Andy Shevchenko
2022-02-14 13:59     ` Jan Dąbroś
2022-02-14 14:43       ` Andy Shevchenko
2022-02-16 14:06         ` Jan Dąbroś

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).