The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2020-05-27 21:13 kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-05-27 21:13 UTC (permalink / raw)
  To: Baolin Wang; +Cc: kbuild-all, linux-kernel, Bjorn Andersson

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

Hi Baolin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b0c3ba31be3e45a130e13b278cf3b90f69bda6f6
commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
date:   9 weeks ago
config: mips-randconfig-s032-20200527 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-240-gf0fe1cd9-dirty
        git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=mips CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] <asn:2> *lock_addr @@     got void *priv @@
   drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse:     expected void [noderef] <asn:2> *lock_addr
   drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse:     got void *priv
   drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] <asn:2> *lock_addr @@     got void *priv @@
   drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse:     expected void [noderef] <asn:2> *lock_addr
   drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse:     got void *priv
>> drivers/hwspinlock/stm32_hwspinlock.c:78:39: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *priv @@     got void [noderef] <asn:2> * @@
   drivers/hwspinlock/stm32_hwspinlock.c:78:39: sparse:     expected void *priv
   drivers/hwspinlock/stm32_hwspinlock.c:78:39: sparse:     got void [noderef] <asn:2> *
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
--
>> drivers/hwspinlock/sirf_hwspinlock.c:35:39: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] <asn:2> *lock_addr @@     got void *priv @@
   drivers/hwspinlock/sirf_hwspinlock.c:35:39: sparse:     expected void [noderef] <asn:2> *lock_addr
   drivers/hwspinlock/sirf_hwspinlock.c:35:39: sparse:     got void *priv
   drivers/hwspinlock/sirf_hwspinlock.c:43:39: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] <asn:2> *lock_addr @@     got void *priv @@
   drivers/hwspinlock/sirf_hwspinlock.c:43:39: sparse:     expected void [noderef] <asn:2> *lock_addr
   drivers/hwspinlock/sirf_hwspinlock.c:43:39: sparse:     got void *priv
>> drivers/hwspinlock/sirf_hwspinlock.c:77:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *priv @@     got void [noderef] <asn:2> * @@
   drivers/hwspinlock/sirf_hwspinlock.c:77:30: sparse:     expected void *priv
   drivers/hwspinlock/sirf_hwspinlock.c:77:30: sparse:     got void [noderef] <asn:2> *
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32
   arch/mips/include/asm/io.h:429:1: sparse: sparse: cast to restricted __le32

vim +30 drivers/hwspinlock/stm32_hwspinlock.c

f24fcff1d267da Benjamin Gaignard 2018-11-14  27  
f24fcff1d267da Benjamin Gaignard 2018-11-14  28  static int stm32_hwspinlock_trylock(struct hwspinlock *lock)
f24fcff1d267da Benjamin Gaignard 2018-11-14  29  {
f24fcff1d267da Benjamin Gaignard 2018-11-14 @30  	void __iomem *lock_addr = lock->priv;
f24fcff1d267da Benjamin Gaignard 2018-11-14  31  	u32 status;
f24fcff1d267da Benjamin Gaignard 2018-11-14  32  
f24fcff1d267da Benjamin Gaignard 2018-11-14  33  	writel(STM32_MUTEX_LOCK_BIT | STM32_MUTEX_COREID, lock_addr);
f24fcff1d267da Benjamin Gaignard 2018-11-14  34  	status = readl(lock_addr);
f24fcff1d267da Benjamin Gaignard 2018-11-14  35  
f24fcff1d267da Benjamin Gaignard 2018-11-14  36  	return status == (STM32_MUTEX_LOCK_BIT | STM32_MUTEX_COREID);
f24fcff1d267da Benjamin Gaignard 2018-11-14  37  }
f24fcff1d267da Benjamin Gaignard 2018-11-14  38  
f24fcff1d267da Benjamin Gaignard 2018-11-14  39  static void stm32_hwspinlock_unlock(struct hwspinlock *lock)
f24fcff1d267da Benjamin Gaignard 2018-11-14  40  {
f24fcff1d267da Benjamin Gaignard 2018-11-14  41  	void __iomem *lock_addr = lock->priv;
f24fcff1d267da Benjamin Gaignard 2018-11-14  42  
f24fcff1d267da Benjamin Gaignard 2018-11-14  43  	writel(STM32_MUTEX_COREID, lock_addr);
f24fcff1d267da Benjamin Gaignard 2018-11-14  44  }
f24fcff1d267da Benjamin Gaignard 2018-11-14  45  
5cd69f13deef80 Fabien Dessenne   2019-03-07  46  static void stm32_hwspinlock_relax(struct hwspinlock *lock)
5cd69f13deef80 Fabien Dessenne   2019-03-07  47  {
5cd69f13deef80 Fabien Dessenne   2019-03-07  48  	ndelay(50);
5cd69f13deef80 Fabien Dessenne   2019-03-07  49  }
5cd69f13deef80 Fabien Dessenne   2019-03-07  50  
f24fcff1d267da Benjamin Gaignard 2018-11-14  51  static const struct hwspinlock_ops stm32_hwspinlock_ops = {
f24fcff1d267da Benjamin Gaignard 2018-11-14  52  	.trylock	= stm32_hwspinlock_trylock,
f24fcff1d267da Benjamin Gaignard 2018-11-14  53  	.unlock		= stm32_hwspinlock_unlock,
5cd69f13deef80 Fabien Dessenne   2019-03-07  54  	.relax		= stm32_hwspinlock_relax,
f24fcff1d267da Benjamin Gaignard 2018-11-14  55  };
f24fcff1d267da Benjamin Gaignard 2018-11-14  56  
f24fcff1d267da Benjamin Gaignard 2018-11-14  57  static int stm32_hwspinlock_probe(struct platform_device *pdev)
f24fcff1d267da Benjamin Gaignard 2018-11-14  58  {
f24fcff1d267da Benjamin Gaignard 2018-11-14  59  	struct stm32_hwspinlock *hw;
f24fcff1d267da Benjamin Gaignard 2018-11-14  60  	void __iomem *io_base;
f24fcff1d267da Benjamin Gaignard 2018-11-14  61  	size_t array_size;
f24fcff1d267da Benjamin Gaignard 2018-11-14  62  	int i, ret;
f24fcff1d267da Benjamin Gaignard 2018-11-14  63  
d4824486b676ef Yangtao Li        2019-12-28  64  	io_base = devm_platform_ioremap_resource(pdev, 0);
4d5a91fd1f42a8 Wei Yongjun       2019-01-03  65  	if (IS_ERR(io_base))
4d5a91fd1f42a8 Wei Yongjun       2019-01-03  66  		return PTR_ERR(io_base);
f24fcff1d267da Benjamin Gaignard 2018-11-14  67  
f24fcff1d267da Benjamin Gaignard 2018-11-14  68  	array_size = STM32_MUTEX_NUM_LOCKS * sizeof(struct hwspinlock);
f24fcff1d267da Benjamin Gaignard 2018-11-14  69  	hw = devm_kzalloc(&pdev->dev, sizeof(*hw) + array_size, GFP_KERNEL);
f24fcff1d267da Benjamin Gaignard 2018-11-14  70  	if (!hw)
f24fcff1d267da Benjamin Gaignard 2018-11-14  71  		return -ENOMEM;
f24fcff1d267da Benjamin Gaignard 2018-11-14  72  
f24fcff1d267da Benjamin Gaignard 2018-11-14  73  	hw->clk = devm_clk_get(&pdev->dev, "hsem");
f24fcff1d267da Benjamin Gaignard 2018-11-14  74  	if (IS_ERR(hw->clk))
f24fcff1d267da Benjamin Gaignard 2018-11-14  75  		return PTR_ERR(hw->clk);
f24fcff1d267da Benjamin Gaignard 2018-11-14  76  
f24fcff1d267da Benjamin Gaignard 2018-11-14  77  	for (i = 0; i < STM32_MUTEX_NUM_LOCKS; i++)
f24fcff1d267da Benjamin Gaignard 2018-11-14 @78  		hw->bank.lock[i].priv = io_base + i * sizeof(u32);
f24fcff1d267da Benjamin Gaignard 2018-11-14  79  
f24fcff1d267da Benjamin Gaignard 2018-11-14  80  	platform_set_drvdata(pdev, hw);
f24fcff1d267da Benjamin Gaignard 2018-11-14  81  	pm_runtime_enable(&pdev->dev);
f24fcff1d267da Benjamin Gaignard 2018-11-14  82  
f24fcff1d267da Benjamin Gaignard 2018-11-14  83  	ret = hwspin_lock_register(&hw->bank, &pdev->dev, &stm32_hwspinlock_ops,
f24fcff1d267da Benjamin Gaignard 2018-11-14  84  				   0, STM32_MUTEX_NUM_LOCKS);
f24fcff1d267da Benjamin Gaignard 2018-11-14  85  
f24fcff1d267da Benjamin Gaignard 2018-11-14  86  	if (ret)
f24fcff1d267da Benjamin Gaignard 2018-11-14  87  		pm_runtime_disable(&pdev->dev);
f24fcff1d267da Benjamin Gaignard 2018-11-14  88  
f24fcff1d267da Benjamin Gaignard 2018-11-14  89  	return ret;
f24fcff1d267da Benjamin Gaignard 2018-11-14  90  }
f24fcff1d267da Benjamin Gaignard 2018-11-14  91  

:::::: The code at line 30 was first introduced by commit
:::::: f24fcff1d267da08c4bbb3869e7f4b36ce916b76 hwspinlock: add STM32 hwspinlock device

:::::: TO: Benjamin Gaignard <benjamin.gaignard@st.com>
:::::: CC: Bjorn Andersson <bjorn.andersson@linaro.org>

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

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

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

* drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2025-12-13  9:02 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-13  9:02 UTC (permalink / raw)
  To: Tiwei Bie; +Cc: oe-kbuild-all, linux-kernel, Johannes Berg

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a859eca0e4cc96f63ff125dbe5388d961558b0e9
commit: a0e2cb6a90634f3dc80f16e882a683ee5761b0b0 um: Add VFIO-based virtual PCI driver
date:   7 months ago
config: um-randconfig-r111-20251213 (https://download.01.org/0day-ci/archive/20251213/202512131607.OYx5Sxj6-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512131607.OYx5Sxj6-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512131607.OYx5Sxj6-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] __iomem *lock_addr @@     got void *priv @@
   drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse:     expected void [noderef] __iomem *lock_addr
   drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse:     got void *priv
   drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] __iomem *lock_addr @@     got void *priv @@
   drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse:     expected void [noderef] __iomem *lock_addr
   drivers/hwspinlock/stm32_hwspinlock.c:41:39: sparse:     got void *priv
   drivers/hwspinlock/stm32_hwspinlock.c:110:39: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *priv @@     got void [noderef] __iomem * @@
   drivers/hwspinlock/stm32_hwspinlock.c:110:39: sparse:     expected void *priv
   drivers/hwspinlock/stm32_hwspinlock.c:110:39: sparse:     got void [noderef] __iomem *
--
>> drivers/rpmsg/qcom_glink_smem.c:108:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/rpmsg/qcom_glink_smem.c:108:48: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/rpmsg/qcom_glink_smem.c:108:48: sparse:     got void *
>> drivers/rpmsg/qcom_glink_smem.c:111:47: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void *fifo @@
   drivers/rpmsg/qcom_glink_smem.c:111:47: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/rpmsg/qcom_glink_smem.c:111:47: sparse:     got void *fifo
--
   drivers/rpmsg/qcom_smd.c:510:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const [noderef] __iomem *src @@     got void * @@
   drivers/rpmsg/qcom_smd.c:510:53: sparse:     expected void const [noderef] __iomem *src
   drivers/rpmsg/qcom_smd.c:510:53: sparse:     got void *
>> drivers/rpmsg/qcom_smd.c:517:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const [noderef] __iomem *src @@     got void *rx_fifo @@
   drivers/rpmsg/qcom_smd.c:517:43: sparse:     expected void const [noderef] __iomem *src
   drivers/rpmsg/qcom_smd.c:517:43: sparse:     got void *rx_fifo
   drivers/rpmsg/qcom_smd.c:711:51: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *dst @@     got void * @@
   drivers/rpmsg/qcom_smd.c:711:51: sparse:     expected void [noderef] __iomem *dst
   drivers/rpmsg/qcom_smd.c:711:51: sparse:     got void *
>> drivers/rpmsg/qcom_smd.c:718:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *dst @@     got void *tx_fifo @@
   drivers/rpmsg/qcom_smd.c:718:41: sparse:     expected void [noderef] __iomem *dst
   drivers/rpmsg/qcom_smd.c:718:41: sparse:     got void *tx_fifo
--
   drivers/soc/qcom/smsm.c:159:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *local_state @@
   drivers/soc/qcom/smsm.c:159:32: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:159:32: sparse:     got unsigned int [usertype] *local_state
   drivers/soc/qcom/smsm.c:171:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *local_state @@
   drivers/soc/qcom/smsm.c:171:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:171:25: sparse:     got unsigned int [usertype] *local_state
   drivers/soc/qcom/smsm.c:181:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] * @@
   drivers/soc/qcom/smsm.c:181:48: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:181:48: sparse:     got unsigned int [usertype] *
>> drivers/soc/qcom/smsm.c:219:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *remote_state @@
   drivers/soc/qcom/smsm.c:219:26: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:219:26: sparse:     got unsigned int [usertype] *remote_state
   drivers/soc/qcom/smsm.c:257:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] * @@
   drivers/soc/qcom/smsm.c:257:49: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:257:49: sparse:     got unsigned int [usertype] *
   drivers/soc/qcom/smsm.c:259:49: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int [usertype] * @@
   drivers/soc/qcom/smsm.c:259:49: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:259:49: sparse:     got unsigned int [usertype] *
   drivers/soc/qcom/smsm.c:280:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *remote_state @@
   drivers/soc/qcom/smsm.c:280:24: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:280:24: sparse:     got unsigned int [usertype] *remote_state
   drivers/soc/qcom/smsm.c:288:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] * @@
   drivers/soc/qcom/smsm.c:288:49: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:288:49: sparse:     got unsigned int [usertype] *
   drivers/soc/qcom/smsm.c:290:49: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int [usertype] * @@
   drivers/soc/qcom/smsm.c:290:49: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:290:49: sparse:     got unsigned int [usertype] *
   drivers/soc/qcom/smsm.c:330:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *remote_state @@
   drivers/soc/qcom/smsm.c:330:26: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:330:26: sparse:     got unsigned int [usertype] *remote_state
   drivers/soc/qcom/smsm.c:635:47: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int [usertype] * @@
   drivers/soc/qcom/smsm.c:635:47: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/soc/qcom/smsm.c:635:47: sparse:     got unsigned int [usertype] *
--
>> drivers/usb/fotg210/fotg210-udc.c:681:33: sparse: sparse: restricted __le16 degrades to integer
   drivers/usb/fotg210/fotg210-udc.c:691:25: sparse: sparse: restricted __le16 degrades to integer
   drivers/usb/fotg210/fotg210-udc.c:747:29: sparse: sparse: restricted __le16 degrades to integer
--
>> drivers/usb/typec/ucsi/ucsi_glink.c:86:23: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] owner @@     got int @@
   drivers/usb/typec/ucsi/ucsi_glink.c:86:23: sparse:     expected restricted __le32 [usertype] owner
   drivers/usb/typec/ucsi/ucsi_glink.c:86:23: sparse:     got int
   drivers/usb/typec/ucsi/ucsi_glink.c:87:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] type @@     got int @@
   drivers/usb/typec/ucsi/ucsi_glink.c:87:22: sparse:     expected restricted __le32 [usertype] type
   drivers/usb/typec/ucsi/ucsi_glink.c:87:22: sparse:     got int
   drivers/usb/typec/ucsi/ucsi_glink.c:88:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] opcode @@     got int @@
   drivers/usb/typec/ucsi/ucsi_glink.c:88:24: sparse:     expected restricted __le32 [usertype] opcode
   drivers/usb/typec/ucsi/ucsi_glink.c:88:24: sparse:     got int
   drivers/usb/typec/ucsi/ucsi_glink.c:138:23: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] owner @@     got int @@
   drivers/usb/typec/ucsi/ucsi_glink.c:138:23: sparse:     expected restricted __le32 [usertype] owner
   drivers/usb/typec/ucsi/ucsi_glink.c:138:23: sparse:     got int
   drivers/usb/typec/ucsi/ucsi_glink.c:139:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] type @@     got int @@
   drivers/usb/typec/ucsi/ucsi_glink.c:139:22: sparse:     expected restricted __le32 [usertype] type
   drivers/usb/typec/ucsi/ucsi_glink.c:139:22: sparse:     got int
   drivers/usb/typec/ucsi/ucsi_glink.c:140:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] opcode @@     got int @@
   drivers/usb/typec/ucsi/ucsi_glink.c:140:24: sparse:     expected restricted __le32 [usertype] opcode
   drivers/usb/typec/ucsi/ucsi_glink.c:140:24: sparse:     got int
--
   drivers/gpu/drm/radeon/cik.c:1878:29: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:1880:46: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:1881:30: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:1883:46: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3909:47: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3910:27: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3914:17: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3918:46: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3919:27: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3923:17: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3927:46: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3926:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 const [usertype] *[assigned] fw_data @@     got restricted __be32 const [usertype] * @@
   drivers/gpu/drm/radeon/cik.c:3926:25: sparse:     expected restricted __le32 const [usertype] *[assigned] fw_data
   drivers/gpu/drm/radeon/cik.c:3926:25: sparse:     got restricted __be32 const [usertype] *
   drivers/gpu/drm/radeon/cik.c:3928:27: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3932:17: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:3933:17: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:4265:47: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:4266:27: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:4270:17: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:4279:34: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:4280:35: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:4284:25: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:5943:47: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:5947:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:5951:17: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6433:62: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6434:48: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6435:46: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6439:63: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6440:48: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6441:46: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6445:62: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6446:48: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6447:46: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6451:63: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6452:48: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6453:46: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6457:64: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6458:48: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:6459:46: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/radeon/cik.c:6463:56: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6463:56: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6463:56: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6486:56: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6486:56: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6486:56: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6710:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6710:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6710:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6711:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6711:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6711:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6713:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6713:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6713:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6714:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6714:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6714:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6715:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6715:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6715:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6720:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6720:49: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6720:49: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6722:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6722:49: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6722:49: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6724:57: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6724:57: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6724:57: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6731:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6731:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6731:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6732:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6732:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6732:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6735:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6735:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6735:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6736:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6736:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6736:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6739:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6739:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6739:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6740:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6740:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6740:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6744:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6744:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6744:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6745:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6745:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6745:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6748:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6748:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6748:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6749:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6749:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6749:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6752:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6752:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6752:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6753:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6753:33: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6753:33: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6757:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6757:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6757:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6758:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6758:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6758:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6760:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6760:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6760:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:6761:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/cik.c:6761:25: sparse:     expected unsigned int volatile [usertype]
   drivers/gpu/drm/radeon/cik.c:6761:25: sparse:     got restricted __le32 [usertype]
   drivers/gpu/drm/radeon/cik.c:7576:27: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:7577:28: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:7578:27: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:7486:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/radeon/cik.c:7486:24: sparse: sparse: cast to restricted __le32
--
   drivers/gpu/drm/radeon/r100.c:713:16: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __le32 [usertype] @@
   drivers/gpu/drm/radeon/r100.c:713:16: sparse:     expected unsigned int [usertype]
   drivers/gpu/drm/radeon/r100.c:713:16: sparse:     got restricted __le32 [usertype]
>> drivers/gpu/drm/radeon/r100.c:1099:24: sparse: sparse: cast to restricted __le32
--
>> drivers/video/fbdev/mb862xx/mb862xxfb_accel.c:105:55: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/video/fbdev/mb862xx/mb862xxfb_accel.c:105:55: sparse:     expected unsigned int [usertype]
   drivers/video/fbdev/mb862xx/mb862xxfb_accel.c:105:55: sparse:     got restricted __be32 [usertype]

vim +30 drivers/hwspinlock/stm32_hwspinlock.c

f24fcff1d267da0 Benjamin Gaignard 2018-11-14  27  
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  28  static int stm32_hwspinlock_trylock(struct hwspinlock *lock)
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  29  {
f24fcff1d267da0 Benjamin Gaignard 2018-11-14 @30  	void __iomem *lock_addr = lock->priv;
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  31  	u32 status;
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  32  
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  33  	writel(STM32_MUTEX_LOCK_BIT | STM32_MUTEX_COREID, lock_addr);
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  34  	status = readl(lock_addr);
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  35  
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  36  	return status == (STM32_MUTEX_LOCK_BIT | STM32_MUTEX_COREID);
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  37  }
f24fcff1d267da0 Benjamin Gaignard 2018-11-14  38  

:::::: The code at line 30 was first introduced by commit
:::::: f24fcff1d267da08c4bbb3869e7f4b36ce916b76 hwspinlock: add STM32 hwspinlock device

:::::: TO: Benjamin Gaignard <benjamin.gaignard@st.com>
:::::: CC: Bjorn Andersson <bjorn.andersson@linaro.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

end of thread, other threads:[~2025-12-13  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-13  9:02 drivers/hwspinlock/stm32_hwspinlock.c:30:39: sparse: sparse: incorrect type in initializer (different address spaces) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-05-27 21:13 kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox