Linux Power Management development
 help / color / mirror / Atom feed
* [rafael-pm:linux-next 15/16] drivers/pnp/isapnp/core.c:392:31: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2026-06-24 10:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-24 10:19 UTC (permalink / raw)
  To: Ben Dooks; +Cc: oe-kbuild-all, linux-acpi, linux-pm, Rafael J. Wysocki

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
head:   7b8d80921156c54cf7fcc35a830342686958aeea
commit: efc2cb1d5a32de297e45525c43dc4d1bda50a528 [15/16] PNP: make pnp_eisa_id_to_string() take __be32 id
config: loongarch-randconfig-r134-20260624 (https://download.01.org/0day-ci/archive/20260624/202606241828.hRy0jZOE-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project a9b492db3d50683e446cd1a5c9ffaf4e92cb77a7)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260624/202606241828.hRy0jZOE-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/202606241828.hRy0jZOE-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/pnp/isapnp/core.c:392:31: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 [usertype] id @@     got unsigned int [assigned] [usertype] eisa_id @@
   drivers/pnp/isapnp/core.c:392:31: sparse:     expected restricted __be32 [usertype] id
   drivers/pnp/isapnp/core.c:392:31: sparse:     got unsigned int [assigned] [usertype] eisa_id
   drivers/pnp/isapnp/core.c:605:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 [usertype] id @@     got unsigned int [assigned] [usertype] eisa_id @@
   drivers/pnp/isapnp/core.c:605:55: sparse:     expected restricted __be32 [usertype] id
   drivers/pnp/isapnp/core.c:605:55: sparse:     got unsigned int [assigned] [usertype] eisa_id
   drivers/pnp/isapnp/core.c:768:39: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 [usertype] id @@     got unsigned int [assigned] [usertype] eisa_id @@
   drivers/pnp/isapnp/core.c:768:39: sparse:     expected restricted __be32 [usertype] id
   drivers/pnp/isapnp/core.c:768:39: sparse:     got unsigned int [assigned] [usertype] eisa_id

vim +392 drivers/pnp/isapnp/core.c

^1da177e4c3f415 Linus Torvalds 2005-04-16  378  
^1da177e4c3f415 Linus Torvalds 2005-04-16  379  /*
^1da177e4c3f415 Linus Torvalds 2005-04-16  380   *  Parse logical device tag.
^1da177e4c3f415 Linus Torvalds 2005-04-16  381   */
9dd78466c956ac4 Bjorn Helgaas  2007-07-26  382  static struct pnp_dev *__init isapnp_parse_device(struct pnp_card *card,
9dd78466c956ac4 Bjorn Helgaas  2007-07-26  383  						  int size, int number)
^1da177e4c3f415 Linus Torvalds 2005-04-16  384  {
^1da177e4c3f415 Linus Torvalds 2005-04-16  385  	unsigned char tmp[6];
^1da177e4c3f415 Linus Torvalds 2005-04-16  386  	struct pnp_dev *dev;
25eb846189d20db Bjorn Helgaas  2008-04-28  387  	u32 eisa_id;
25eb846189d20db Bjorn Helgaas  2008-04-28  388  	char id[8];
^1da177e4c3f415 Linus Torvalds 2005-04-16  389  
^1da177e4c3f415 Linus Torvalds 2005-04-16  390  	isapnp_peek(tmp, size);
25eb846189d20db Bjorn Helgaas  2008-04-28  391  	eisa_id = tmp[0] | tmp[1] << 8 | tmp[2] << 16 | tmp[3] << 24;
25eb846189d20db Bjorn Helgaas  2008-04-28 @392  	pnp_eisa_id_to_string(eisa_id, id);
bda1e4e5a3d9760 Bjorn Helgaas  2008-04-28  393  
bda1e4e5a3d9760 Bjorn Helgaas  2008-04-28  394  	dev = pnp_alloc_dev(&isapnp_protocol, number, id);
bda1e4e5a3d9760 Bjorn Helgaas  2008-04-28  395  	if (!dev)
bda1e4e5a3d9760 Bjorn Helgaas  2008-04-28  396  		return NULL;
bda1e4e5a3d9760 Bjorn Helgaas  2008-04-28  397  
^1da177e4c3f415 Linus Torvalds 2005-04-16  398  	dev->card = card;
^1da177e4c3f415 Linus Torvalds 2005-04-16  399  	dev->capabilities |= PNP_CONFIGURABLE;
^1da177e4c3f415 Linus Torvalds 2005-04-16  400  	dev->capabilities |= PNP_READ;
^1da177e4c3f415 Linus Torvalds 2005-04-16  401  	dev->capabilities |= PNP_WRITE;
^1da177e4c3f415 Linus Torvalds 2005-04-16  402  	dev->capabilities |= PNP_DISABLE;
f44900020926b2c Bjorn Helgaas  2008-04-28  403  	pnp_init_resources(dev);
^1da177e4c3f415 Linus Torvalds 2005-04-16  404  	return dev;
^1da177e4c3f415 Linus Torvalds 2005-04-16  405  }
^1da177e4c3f415 Linus Torvalds 2005-04-16  406  

:::::: The code at line 392 was first introduced by commit
:::::: 25eb846189d20db4114cebf14fee96d69bef4667 PNP: add pnp_eisa_id_to_string()

:::::: TO: Bjorn Helgaas <bjorn.helgaas@hp.com>
:::::: CC: Len Brown <len.brown@intel.com>

--
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:[~2026-06-24 10:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-24 10:19 [rafael-pm:linux-next 15/16] drivers/pnp/isapnp/core.c:392:31: sparse: sparse: incorrect type in argument 1 (different base types) 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