From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [bvanassche:thread-safety 272/460] drivers/pinctrl/pinctrl-mcp23s08_spi.c:29:47: sparse: sparse: incorrect type in initializer (different modifiers)
Date: Thu, 19 Nov 2026 04:22:28 +0100 [thread overview]
Message-ID: <20261119042019.mC2MbUZ2-lkp@intel.com> (raw)
tree: https://github.com/bvanassche/linux thread-safety
head: 754c0efaaee1c85b67fd7f8a45f7be89900b661f
commit: b92d6bdb8a97a9e35c1baf80d282833e714e75de [272/460] spi: Convert to_spi_device() into an inline function
config: x86_64-randconfig-2300-20261118 (https://download.01.org/0day-ci/archive/20261119/20261119042019.mC2MbUZ2-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261119/20261119042019.mC2MbUZ2-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/20261119042019.mC2MbUZ2-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/pinctrl/pinctrl-mcp23s08_spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/pinctrl/pinctrl-mcp23s08_spi.c:29:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/pinctrl/pinctrl-mcp23s08_spi.c:29:47: sparse: expected struct spi_device *spi
drivers/pinctrl/pinctrl-mcp23s08_spi.c:29:47: sparse: got struct spi_device const *
drivers/pinctrl/pinctrl-mcp23s08_spi.c:46:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/pinctrl/pinctrl-mcp23s08_spi.c:46:47: sparse: expected struct spi_device *spi
drivers/pinctrl/pinctrl-mcp23s08_spi.c:46:47: sparse: got struct spi_device const *
drivers/pinctrl/pinctrl-mcp23s08_spi.c:64:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/pinctrl/pinctrl-mcp23s08_spi.c:64:47: sparse: expected struct spi_device *spi
drivers/pinctrl/pinctrl-mcp23s08_spi.c:64:47: sparse: got struct spi_device const *
--
drivers/nfc/trf7970a.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/nfc/trf7970a.c:2244:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/nfc/trf7970a.c:2244:47: sparse: expected struct spi_device *spi
drivers/nfc/trf7970a.c:2244:47: sparse: got struct spi_device const *
drivers/nfc/trf7970a.c:2258:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/nfc/trf7970a.c:2258:47: sparse: expected struct spi_device *spi
drivers/nfc/trf7970a.c:2258:47: sparse: got struct spi_device const *
drivers/nfc/trf7970a.c:2275:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/nfc/trf7970a.c:2275:47: sparse: expected struct spi_device *spi
drivers/nfc/trf7970a.c:2275:47: sparse: got struct spi_device const *
drivers/nfc/trf7970a.c:2290:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/nfc/trf7970a.c:2290:47: sparse: expected struct spi_device *spi
drivers/nfc/trf7970a.c:2290:47: sparse: got struct spi_device const *
--
drivers/hwmon/max31722.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
drivers/hwmon/max31722.c:60:45: sparse: sparse: cast to restricted __le16
>> drivers/hwmon/max31722.c:119:54: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi_device @@ got struct spi_device const * @@
drivers/hwmon/max31722.c:119:54: sparse: expected struct spi_device *spi_device
drivers/hwmon/max31722.c:119:54: sparse: got struct spi_device const *
drivers/hwmon/max31722.c:127:54: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi_device @@ got struct spi_device const * @@
drivers/hwmon/max31722.c:127:54: sparse: expected struct spi_device *spi_device
drivers/hwmon/max31722.c:127:54: sparse: got struct spi_device const *
--
drivers/spi/spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/spi/spi.c:53:53: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:53:53: sparse: expected struct spi_device *spi
drivers/spi/spi.c:53:53: sparse: got struct spi_device const *
drivers/spi/spi.c:175:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:175:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:175:1: sparse: got struct spi_device const *
drivers/spi/spi.c:176:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:176:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:176:1: sparse: got struct spi_device const *
drivers/spi/spi.c:177:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:177:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:177:1: sparse: got struct spi_device const *
drivers/spi/spi.c:178:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:178:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:178:1: sparse: got struct spi_device const *
drivers/spi/spi.c:180:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:180:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:180:1: sparse: got struct spi_device const *
drivers/spi/spi.c:181:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:181:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:181:1: sparse: got struct spi_device const *
drivers/spi/spi.c:182:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:182:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:182:1: sparse: got struct spi_device const *
drivers/spi/spi.c:184:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:184:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:184:1: sparse: got struct spi_device const *
drivers/spi/spi.c:185:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:185:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:185:1: sparse: got struct spi_device const *
drivers/spi/spi.c:186:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:186:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:186:1: sparse: got struct spi_device const *
drivers/spi/spi.c:192:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:192:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:192:1: sparse: got struct spi_device const *
drivers/spi/spi.c:193:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:193:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:193:1: sparse: got struct spi_device const *
drivers/spi/spi.c:194:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:194:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:194:1: sparse: got struct spi_device const *
drivers/spi/spi.c:195:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:195:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:195:1: sparse: got struct spi_device const *
drivers/spi/spi.c:196:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:196:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:196:1: sparse: got struct spi_device const *
drivers/spi/spi.c:197:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:197:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:197:1: sparse: got struct spi_device const *
drivers/spi/spi.c:198:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:198:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:198:1: sparse: got struct spi_device const *
drivers/spi/spi.c:199:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:199:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:199:1: sparse: got struct spi_device const *
drivers/spi/spi.c:200:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:200:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:200:1: sparse: got struct spi_device const *
drivers/spi/spi.c:201:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:201:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:201:1: sparse: got struct spi_device const *
drivers/spi/spi.c:202:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:202:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:202:1: sparse: got struct spi_device const *
drivers/spi/spi.c:203:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:203:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:203:1: sparse: got struct spi_device const *
drivers/spi/spi.c:204:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:204:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:204:1: sparse: got struct spi_device const *
drivers/spi/spi.c:205:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:205:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:205:1: sparse: got struct spi_device const *
drivers/spi/spi.c:206:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:206:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:206:1: sparse: got struct spi_device const *
drivers/spi/spi.c:207:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:207:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:207:1: sparse: got struct spi_device const *
drivers/spi/spi.c:208:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:208:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:208:1: sparse: got struct spi_device const *
drivers/spi/spi.c:210:1: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:210:1: sparse: expected struct spi_device *spi
drivers/spi/spi.c:210:1: sparse: got struct spi_device const *
drivers/spi/spi.c:598:61: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:598:61: sparse: expected struct spi_device *spi
drivers/spi/spi.c:598:61: sparse: got struct spi_device const *
>> drivers/spi/spi.c:631:43: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:631:43: sparse: expected struct spi_device *spi
drivers/spi/spi.c:631:43: sparse: got struct spi_device const *
drivers/spi/spi.c:640:53: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:640:53: sparse: expected struct spi_device *spi
drivers/spi/spi.c:640:53: sparse: got struct spi_device const *
drivers/spi/spi.c:836:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:836:47: sparse: expected struct spi_device *spi
drivers/spi/spi.c:836:47: sparse: got struct spi_device const *
drivers/spi/spi.c:3870:44: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/spi/spi.c:3870:44: sparse: expected struct spi_device *spi
drivers/spi/spi.c:3870:44: sparse: got struct spi_device const *
>> drivers/spi/spi.c:5359:29: sparse: sparse: incorrect type in return expression (different modifiers) @@ expected struct spi_device * @@ got struct spi_device const * @@
drivers/spi/spi.c:5359:29: sparse: expected struct spi_device *
drivers/spi/spi.c:5359:29: sparse: got struct spi_device const *
--
drivers/gpio/gpio-74x164.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/gpio/gpio-74x164.c:38:39: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/gpio/gpio-74x164.c:38:39: sparse: expected struct spi_device *spi
drivers/gpio/gpio-74x164.c:38:39: sparse: got struct spi_device const *
--
drivers/gpio/gpio-max7301.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/gpio/gpio-max7301.c:22:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/gpio/gpio-max7301.c:22:47: sparse: expected struct spi_device *spi
drivers/gpio/gpio-max7301.c:22:47: sparse: got struct spi_device const *
drivers/gpio/gpio-max7301.c:34:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/gpio/gpio-max7301.c:34:47: sparse: expected struct spi_device *spi
drivers/gpio/gpio-max7301.c:34:47: sparse: got struct spi_device const *
--
drivers/fpga/lattice-sysconfig-spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/fpga/lattice-sysconfig-spi.c:22:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/fpga/lattice-sysconfig-spi.c:22:47: sparse: expected struct spi_device *spi
drivers/fpga/lattice-sysconfig-spi.c:22:47: sparse: got struct spi_device const *
drivers/fpga/lattice-sysconfig-spi.c:30:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/fpga/lattice-sysconfig-spi.c:30:47: sparse: expected struct spi_device *spi
drivers/fpga/lattice-sysconfig-spi.c:30:47: sparse: got struct spi_device const *
drivers/fpga/lattice-sysconfig-spi.c:67:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/fpga/lattice-sysconfig-spi.c:67:47: sparse: expected struct spi_device *spi
drivers/fpga/lattice-sysconfig-spi.c:67:47: sparse: got struct spi_device const *
drivers/fpga/lattice-sysconfig-spi.c:82:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/fpga/lattice-sysconfig-spi.c:82:47: sparse: expected struct spi_device *spi
drivers/fpga/lattice-sysconfig-spi.c:82:47: sparse: got struct spi_device const *
--
drivers/mux/adgs1408.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/mux/adgs1408.c:37:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/mux/adgs1408.c:37:47: sparse: expected struct spi_device *spi
drivers/mux/adgs1408.c:37:47: sparse: got struct spi_device const *
--
drivers/input/rmi4/rmi_spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/input/rmi4/rmi_spi.c:449:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/input/rmi4/rmi_spi.c:449:47: sparse: expected struct spi_device *spi
drivers/input/rmi4/rmi_spi.c:449:47: sparse: got struct spi_device const *
drivers/input/rmi4/rmi_spi.c:462:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/input/rmi4/rmi_spi.c:462:47: sparse: expected struct spi_device *spi
drivers/input/rmi4/rmi_spi.c:462:47: sparse: got struct spi_device const *
drivers/input/rmi4/rmi_spi.c:475:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/input/rmi4/rmi_spi.c:475:47: sparse: expected struct spi_device *spi
drivers/input/rmi4/rmi_spi.c:475:47: sparse: got struct spi_device const *
drivers/input/rmi4/rmi_spi.c:488:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/input/rmi4/rmi_spi.c:488:47: sparse: expected struct spi_device *spi
drivers/input/rmi4/rmi_spi.c:488:47: sparse: got struct spi_device const *
--
drivers/base/regmap/regmap-spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/base/regmap/regmap-spi.c:31:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/base/regmap/regmap-spi.c:31:47: sparse: expected struct spi_device *spi
drivers/base/regmap/regmap-spi.c:31:47: sparse: got struct spi_device const *
drivers/base/regmap/regmap-spi.c:41:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/base/regmap/regmap-spi.c:41:47: sparse: expected struct spi_device *spi
drivers/base/regmap/regmap-spi.c:41:47: sparse: got struct spi_device const *
drivers/base/regmap/regmap-spi.c:62:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/base/regmap/regmap-spi.c:62:47: sparse: expected struct spi_device *spi
drivers/base/regmap/regmap-spi.c:62:47: sparse: got struct spi_device const *
drivers/base/regmap/regmap-spi.c:96:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/base/regmap/regmap-spi.c:96:47: sparse: expected struct spi_device *spi
drivers/base/regmap/regmap-spi.c:96:47: sparse: got struct spi_device const *
--
drivers/iio/dac/ad5686-spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/iio/dac/ad5686-spi.c:95:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/dac/ad5686-spi.c:95:47: sparse: expected struct spi_device *spi
drivers/iio/dac/ad5686-spi.c:95:47: sparse: got struct spi_device const *
drivers/iio/dac/ad5686-spi.c:104:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/dac/ad5686-spi.c:104:47: sparse: expected struct spi_device *spi
drivers/iio/dac/ad5686-spi.c:104:47: sparse: got struct spi_device const *
--
drivers/iio/adc/ad7768.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/iio/adc/ad7768.c:1278:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/adc/ad7768.c:1278:47: sparse: expected struct spi_device *spi
drivers/iio/adc/ad7768.c:1278:47: sparse: got struct spi_device const *
--
drivers/iio/adc/ad7606_spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/iio/adc/ad7606_spi.c:57:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/adc/ad7606_spi.c:57:47: sparse: expected struct spi_device *spi
drivers/iio/adc/ad7606_spi.c:57:47: sparse: got struct spi_device const *
drivers/iio/adc/ad7606_spi.c:77:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/adc/ad7606_spi.c:77:47: sparse: expected struct spi_device *spi
drivers/iio/adc/ad7606_spi.c:77:47: sparse: got struct spi_device const *
drivers/iio/adc/ad7606_spi.c:90:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/adc/ad7606_spi.c:90:47: sparse: expected struct spi_device *spi
drivers/iio/adc/ad7606_spi.c:90:47: sparse: got struct spi_device const *
drivers/iio/adc/ad7606_spi.c:102:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/adc/ad7606_spi.c:102:47: sparse: expected struct spi_device *spi
drivers/iio/adc/ad7606_spi.c:102:47: sparse: got struct spi_device const *
drivers/iio/adc/ad7606_spi.c:128:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/adc/ad7606_spi.c:128:47: sparse: expected struct spi_device *spi
drivers/iio/adc/ad7606_spi.c:128:47: sparse: got struct spi_device const *
drivers/iio/adc/ad7606_spi.c:156:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/adc/ad7606_spi.c:156:47: sparse: expected struct spi_device *spi
drivers/iio/adc/ad7606_spi.c:156:47: sparse: got struct spi_device const *
drivers/iio/adc/ad7606_spi.c:277:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/adc/ad7606_spi.c:277:47: sparse: expected struct spi_device *spi
drivers/iio/adc/ad7606_spi.c:277:47: sparse: got struct spi_device const *
--
drivers/iio/pressure/mpl115_spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/iio/pressure/mpl115_spi.c:25:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/pressure/mpl115_spi.c:25:47: sparse: expected struct spi_device *spi
drivers/iio/pressure/mpl115_spi.c:25:47: sparse: got struct spi_device const *
drivers/iio/pressure/mpl115_spi.c:39:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/pressure/mpl115_spi.c:39:47: sparse: expected struct spi_device *spi
drivers/iio/pressure/mpl115_spi.c:39:47: sparse: got struct spi_device const *
drivers/iio/pressure/mpl115_spi.c:60:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/pressure/mpl115_spi.c:60:47: sparse: expected struct spi_device *spi
drivers/iio/pressure/mpl115_spi.c:60:47: sparse: got struct spi_device const *
--
drivers/iio/pressure/abp2030pa_spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/iio/pressure/abp2030pa_spi.c:17:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/pressure/abp2030pa_spi.c:17:47: sparse: expected struct spi_device *spi
drivers/iio/pressure/abp2030pa_spi.c:17:47: sparse: got struct spi_device const *
--
drivers/iio/pressure/bmp280-spi.c: note: in included file:
include/linux/spi/spi.h:290:33: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:284:33: sparse: the previous one is here
include/linux/spi/spi.h:296:39: sparse: sparse: multiple definitions for function 'to_spi_device'
include/linux/spi/spi.h:290:33: sparse: the previous one is here
>> drivers/iio/pressure/bmp280-spi.c:18:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/pressure/bmp280-spi.c:18:47: sparse: expected struct spi_device *spi
drivers/iio/pressure/bmp280-spi.c:18:47: sparse: got struct spi_device const *
drivers/iio/pressure/bmp280-spi.c:34:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/pressure/bmp280-spi.c:34:47: sparse: expected struct spi_device *spi
drivers/iio/pressure/bmp280-spi.c:34:47: sparse: got struct spi_device const *
drivers/iio/pressure/bmp280-spi.c:42:47: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct spi_device *spi @@ got struct spi_device const * @@
drivers/iio/pressure/bmp280-spi.c:42:47: sparse: expected struct spi_device *spi
drivers/iio/pressure/bmp280-spi.c:42:47: sparse: got struct spi_device const *
vim +29 drivers/pinctrl/pinctrl-mcp23s08_spi.c
0f04a81784fe3d Andy Shevchenko 2020-04-07 25
0f04a81784fe3d Andy Shevchenko 2020-04-07 26 static int mcp23sxx_spi_write(void *context, const void *data, size_t count)
0f04a81784fe3d Andy Shevchenko 2020-04-07 27 {
0f04a81784fe3d Andy Shevchenko 2020-04-07 28 struct mcp23s08 *mcp = context;
0f04a81784fe3d Andy Shevchenko 2020-04-07 @29 struct spi_device *spi = to_spi_device(mcp->dev);
0f04a81784fe3d Andy Shevchenko 2020-04-07 30 struct spi_message m;
0f04a81784fe3d Andy Shevchenko 2020-04-07 31 struct spi_transfer t[2] = { { .tx_buf = &mcp->addr, .len = 1, },
0f04a81784fe3d Andy Shevchenko 2020-04-07 32 { .tx_buf = data, .len = count, }, };
0f04a81784fe3d Andy Shevchenko 2020-04-07 33
0f04a81784fe3d Andy Shevchenko 2020-04-07 34 spi_message_init(&m);
0f04a81784fe3d Andy Shevchenko 2020-04-07 35 spi_message_add_tail(&t[0], &m);
0f04a81784fe3d Andy Shevchenko 2020-04-07 36 spi_message_add_tail(&t[1], &m);
0f04a81784fe3d Andy Shevchenko 2020-04-07 37
0f04a81784fe3d Andy Shevchenko 2020-04-07 38 return spi_sync(spi, &m);
0f04a81784fe3d Andy Shevchenko 2020-04-07 39 }
0f04a81784fe3d Andy Shevchenko 2020-04-07 40
:::::: The code at line 29 was first introduced by commit
:::::: 0f04a81784fe3ddc00cae74c517265b3ddb8825c pinctrl: mcp23s08: Split to three parts: core, I²C, SPI
:::::: TO: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-11-19 3:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261119042019.mC2MbUZ2-lkp@intel.com \
--to=lkp@intel.com \
--cc=bvanassche@acm.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.