linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6479/7353] drivers/pinctrl/sophgo/pinctrl-cv18xx.c:142:23: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-08-28  9:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-08-28  9:20 UTC (permalink / raw)
  To: Linus Walleij; +Cc: oe-kbuild-all, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6f923748057a4f6aa187e0d5b22990d633a48d12
commit: 9b82ec85ebb326d20553220945bad1cc203b8805 [6479/7353] Merge branch 'ib-sophgo-pintrl' into devel
config: sparc64-randconfig-r123-20240828 (https://download.01.org/0day-ci/archive/20240828/202408281749.gNRV7S8v-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240828/202408281749.gNRV7S8v-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/202408281749.gNRV7S8v-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:141:13: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *reg @@     got void [noderef] __iomem * @@
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:141:13: sparse:     expected void *reg
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:141:13: sparse:     got void [noderef] __iomem *
>> drivers/pinctrl/sophgo/pinctrl-cv18xx.c:142:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void *reg @@
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:142:23: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:142:23: sparse:     got void *reg
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:146:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *reg @@     got void [noderef] __iomem * @@
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:146:21: sparse:     expected void *reg
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:146:21: sparse:     got void [noderef] __iomem *
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:147:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void *reg @@
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:147:31: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:147:31: sparse:     got void *reg
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:152:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *reg @@     got void [noderef] __iomem * @@
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:152:21: sparse:     expected void *reg
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:152:21: sparse:     got void [noderef] __iomem *
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:153:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void *reg @@
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:153:31: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/pinctrl/sophgo/pinctrl-cv18xx.c:153:31: sparse:     got void *reg

vim +142 drivers/pinctrl/sophgo/pinctrl-cv18xx.c

a29d8e93e710e9 Inochi Amaoto 2024-08-02  120  
a29d8e93e710e9 Inochi Amaoto 2024-08-02  121  static void cv1800_pctrl_dbg_show(struct pinctrl_dev *pctldev,
a29d8e93e710e9 Inochi Amaoto 2024-08-02  122  				  struct seq_file *seq, unsigned int pin_id)
a29d8e93e710e9 Inochi Amaoto 2024-08-02  123  {
a29d8e93e710e9 Inochi Amaoto 2024-08-02  124  	struct cv1800_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  125  	struct cv1800_pin *pin = cv1800_get_pin(pctrl, pin_id);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  126  	enum cv1800_pin_io_type type = cv1800_pin_io_type(pin);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  127  	u32 value;
a29d8e93e710e9 Inochi Amaoto 2024-08-02  128  	void *reg;
a29d8e93e710e9 Inochi Amaoto 2024-08-02  129  
a29d8e93e710e9 Inochi Amaoto 2024-08-02  130  	if (pin->pin >> PIN_BGA_ID_OFFSET)
a29d8e93e710e9 Inochi Amaoto 2024-08-02  131  		seq_printf(seq, "pos: %c%u ",
a29d8e93e710e9 Inochi Amaoto 2024-08-02  132  			   'A' + (pin->pin >> PIN_BGA_ID_OFFSET) - 1,
a29d8e93e710e9 Inochi Amaoto 2024-08-02  133  			   pin->pin & PIN_BGA_ID_MASK);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  134  	else
a29d8e93e710e9 Inochi Amaoto 2024-08-02  135  		seq_printf(seq, "pos: %u ", pin->pin);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  136  
a29d8e93e710e9 Inochi Amaoto 2024-08-02  137  	seq_printf(seq, "power-domain: %s ",
a29d8e93e710e9 Inochi Amaoto 2024-08-02  138  		   cv1800_get_power_cfg_desc(pctrl, pin->power_domain));
a29d8e93e710e9 Inochi Amaoto 2024-08-02  139  	seq_printf(seq, "type: %s ", io_type_desc[type]);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  140  
a29d8e93e710e9 Inochi Amaoto 2024-08-02  141  	reg = cv1800_pinctrl_get_component_addr(pctrl, &pin->mux);
a29d8e93e710e9 Inochi Amaoto 2024-08-02 @142  	value = readl(reg);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  143  	seq_printf(seq, "mux: 0x%08x ", value);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  144  
a29d8e93e710e9 Inochi Amaoto 2024-08-02  145  	if (pin->flags & CV1800_PIN_HAVE_MUX2) {
a29d8e93e710e9 Inochi Amaoto 2024-08-02  146  		reg = cv1800_pinctrl_get_component_addr(pctrl, &pin->mux2);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  147  		value = readl(reg);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  148  		seq_printf(seq, "mux2: 0x%08x ", value);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  149  	}
a29d8e93e710e9 Inochi Amaoto 2024-08-02  150  
a29d8e93e710e9 Inochi Amaoto 2024-08-02  151  	if (type == IO_TYPE_1V8_ONLY || type == IO_TYPE_1V8_OR_3V3) {
a29d8e93e710e9 Inochi Amaoto 2024-08-02  152  		reg = cv1800_pinctrl_get_component_addr(pctrl, &pin->conf);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  153  		value = readl(reg);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  154  		seq_printf(seq, "conf: 0x%08x ", value);
a29d8e93e710e9 Inochi Amaoto 2024-08-02  155  	}
a29d8e93e710e9 Inochi Amaoto 2024-08-02  156  }
a29d8e93e710e9 Inochi Amaoto 2024-08-02  157  

:::::: The code at line 142 was first introduced by commit
:::::: a29d8e93e710e97863d5bb4e4b6079d6c7daab81 pinctrl: sophgo: add support for CV1800B SoC

:::::: TO: Inochi Amaoto <inochiama@outlook.com>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>

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


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

only message in thread, other threads:[~2024-08-28  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-28  9:20 [linux-next:master 6479/7353] drivers/pinctrl/sophgo/pinctrl-cv18xx.c:142:23: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot

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