All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:pr/341 15241/18812] drivers/reset/reset-imx-hdmimix.c:134:23: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2021-05-19  2:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-19  2:28 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 8316 bytes --]

Hi Jason,

First bad commit (maybe != root cause):

tree:   https://github.com/Freescale/linux-fslc pr/341
head:   a9cd93bab1195c192188b78911e8e2bf47cfd6c2
commit: 5bb09de3044acf91e6f8c712c026d5a4bc53b563 [15241/18812] MLK-24874-1: include: uapi: fmd: fix the UAPI_HEADER_TEST/install failure
config: xtensa-randconfig-s032-20210519 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.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://github.com/Freescale/linux-fslc/commit/5bb09de3044acf91e6f8c712c026d5a4bc53b563
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc pr/341
        git checkout 5bb09de3044acf91e6f8c712c026d5a4bc53b563
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=xtensa 

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/reset/reset-imx-hdmimix.c:134:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] <asn:2> *base @@     got void * @@
   drivers/reset/reset-imx-hdmimix.c:134:23: sparse:     expected void [noderef] <asn:2> *base
   drivers/reset/reset-imx-hdmimix.c:134:23: sparse:     got void *
   drivers/reset/reset-imx-hdmimix.c: note: in included file (through arch/xtensa/include/asm/io.h, include/linux/io.h):
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
--
>> drivers/reset/reset-imx-audiomix.c:93:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] <asn:2> *base @@     got void * @@
   drivers/reset/reset-imx-audiomix.c:93:23: sparse:     expected void [noderef] <asn:2> *base
   drivers/reset/reset-imx-audiomix.c:93:23: sparse:     got void *
   drivers/reset/reset-imx-audiomix.c: note: in included file (through arch/xtensa/include/asm/io.h, include/linux/io.h):
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]

vim +134 drivers/reset/reset-imx-hdmimix.c

d4b6fb2adc1967 Sandor Yu 2020-01-19  124  
d4b6fb2adc1967 Sandor Yu 2020-01-19  125  static int imx_hdmimix_reset_probe(struct platform_device *pdev)
d4b6fb2adc1967 Sandor Yu 2020-01-19  126  {
d4b6fb2adc1967 Sandor Yu 2020-01-19  127  	struct imx_hdmimix_reset_data *drvdata;
d4b6fb2adc1967 Sandor Yu 2020-01-19  128  	struct device *dev = &pdev->dev;
d4b6fb2adc1967 Sandor Yu 2020-01-19  129  
d4b6fb2adc1967 Sandor Yu 2020-01-19  130  	drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL);
d4b6fb2adc1967 Sandor Yu 2020-01-19  131  	if (drvdata == NULL)
d4b6fb2adc1967 Sandor Yu 2020-01-19  132  		return -ENOMEM;
d4b6fb2adc1967 Sandor Yu 2020-01-19  133  
d4b6fb2adc1967 Sandor Yu 2020-01-19 @134  	drvdata->base = dev_get_drvdata(dev->parent);
d4b6fb2adc1967 Sandor Yu 2020-01-19  135  
d4b6fb2adc1967 Sandor Yu 2020-01-19  136  	platform_set_drvdata(pdev, drvdata);
d4b6fb2adc1967 Sandor Yu 2020-01-19  137  
d4b6fb2adc1967 Sandor Yu 2020-01-19  138  	pm_runtime_enable(dev);
d4b6fb2adc1967 Sandor Yu 2020-01-19  139  
d4b6fb2adc1967 Sandor Yu 2020-01-19  140  	spin_lock_init(&drvdata->lock);
d4b6fb2adc1967 Sandor Yu 2020-01-19  141  
d4b6fb2adc1967 Sandor Yu 2020-01-19  142  	drvdata->rcdev.owner     = THIS_MODULE;
d4b6fb2adc1967 Sandor Yu 2020-01-19  143  	drvdata->rcdev.nr_resets = IMX_HDMIMIX_RESET_NUM;
d4b6fb2adc1967 Sandor Yu 2020-01-19  144  	drvdata->rcdev.ops       = &imx_hdmimix_reset_ops;
d4b6fb2adc1967 Sandor Yu 2020-01-19  145  	drvdata->rcdev.of_node   = dev->of_node;
d4b6fb2adc1967 Sandor Yu 2020-01-19  146  	drvdata->rcdev.dev	 = dev;
d4b6fb2adc1967 Sandor Yu 2020-01-19  147  
d4b6fb2adc1967 Sandor Yu 2020-01-19  148  	return devm_reset_controller_register(dev, &drvdata->rcdev);
d4b6fb2adc1967 Sandor Yu 2020-01-19  149  }
d4b6fb2adc1967 Sandor Yu 2020-01-19  150  

:::::: The code at line 134 was first introduced by commit
:::::: d4b6fb2adc19675a36d44b5ee0ebe4b5c93fef63 MLK-23250-06: reset: Add hdmimix reset driver

:::::: TO: Sandor Yu <Sandor.yu@nxp.com>
:::::: CC: Sandor Yu <Sandor.yu@nxp.com>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 22918 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-19  2:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-19  2:28 [freescale-fslc:pr/341 15241/18812] drivers/reset/reset-imx-hdmimix.c:134:23: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.