All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chipang Kao <chipang_kao@asus.com>
Cc: oe-kbuild-all@lists.linux.dev,
	"Ilpo Järvinen " <ilpo.jarvinen@linux.intel.com>,
	"Denis Benato" <denis.benato@linux.dev>
Subject: [linux-next:master 5449/7428] drivers/platform/asus/asus-wmi.c:2887:33: sparse: sparse: incorrect type in argument 3 (different base types)
Date: Sat, 14 Nov 2026 04:16:33 +0100	[thread overview]
Message-ID: <202611140423.DcT56YPN-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   84abb955b1015477aa11a96e2f3ac1b938b77f48
commit: ef696e89f836c31825b754abe181b490b82fbee7 [5449/7428] platform/asus: Move ASUS platform drivers out of drivers/platform/x86
config: loongarch-randconfig-r2303-20261113 (https://download.01.org/0day-ci/archive/20261114/202611140423.DcT56YPN-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 16.2.0
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261114/202611140423.DcT56YPN-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/202611140423.DcT56YPN-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/platform/asus/asus-wmi.c:2887:33: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] val @@     got restricted __le32 [usertype] @@
   drivers/platform/asus/asus-wmi.c:2887:33: sparse:     expected unsigned int [usertype] val
   drivers/platform/asus/asus-wmi.c:2887:33: sparse:     got restricted __le32 [usertype]

vim +2887 drivers/platform/asus/asus-wmi.c

54a3121f00dad32 drivers/platform/x86/asus-wmi.c Yurii Pavlovskyi 2019-05-14  2869  
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2870  static void asus_wmi_set_xusb2pr(struct asus_wmi *asus)
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2871  {
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2872  	struct pci_dev *xhci_pdev;
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2873  	u32 orig_ports_available;
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2874  	u32 ports_available = asus->driver->quirks->xusb2pr;
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2875  
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2876  	xhci_pdev = pci_get_device(PCI_VENDOR_ID_INTEL,
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2877  			PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI,
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2878  			NULL);
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2879  
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2880  	if (!xhci_pdev)
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2881  		return;
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2882  
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2883  	pci_read_config_dword(xhci_pdev, USB_INTEL_XUSB2PR,
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2884  				&orig_ports_available);
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2885  
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2886  	pci_write_config_dword(xhci_pdev, USB_INTEL_XUSB2PR,
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01 @2887  				cpu_to_le32(ports_available));
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2888  
d0cdd85046b1508 drivers/platform/x86/asus-wmi.c Xiongfeng Wang   2022-11-11  2889  	pci_dev_put(xhci_pdev);
d0cdd85046b1508 drivers/platform/x86/asus-wmi.c Xiongfeng Wang   2022-11-11  2890  
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2891  	pr_info("set USB_INTEL_XUSB2PR old: 0x%04x, new: 0x%04x\n",
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2892  			orig_ports_available, ports_available);
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2893  }
8023eff10e7b032 drivers/platform/x86/asus-wmi.c Kai-Chuan Hsieh  2016-09-01  2894  

:::::: The code at line 2887 was first introduced by commit
:::::: 8023eff10e7b0327898f17f0b553d2e45c71cef3 platform/x86: asus-wmi: Set specified XUSB2PR value for X550LB

:::::: TO: Kai-Chuan Hsieh <kai.chiuan@gmail.com>
:::::: CC: Darren Hart <dvhart@linux.intel.com>

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

                 reply	other threads:[~2026-11-14  3:17 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=202611140423.DcT56YPN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chipang_kao@asus.com \
    --cc=denis.benato@linux.dev \
    --cc=ilpo.jarvinen@linux.intel.com \
    --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.