Linux Power Management development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ben Dooks <ben.dooks@codethink.co.uk>
Cc: oe-kbuild-all@lists.linux.dev, linux-acpi@vger.kernel.org,
	linux-pm@vger.kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>
Subject: [rafael-pm:linux-next 15/16] drivers/pnp/isapnp/core.c:392:31: sparse: sparse: incorrect type in argument 1 (different base types)
Date: Wed, 24 Jun 2026 18:19:06 +0800	[thread overview]
Message-ID: <202606241828.hRy0jZOE-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-06-24 10:19 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=202606241828.hRy0jZOE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ben.dooks@codethink.co.uk \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rjw@rjwysocki.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox