* [linux-next:master 5449/7428] drivers/platform/asus/asus-wmi.c:2887:33: sparse: sparse: incorrect type in argument 3 (different base types)
@ 2026-11-14 3:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-14 3:16 UTC (permalink / raw)
To: Chipang Kao; +Cc: oe-kbuild-all, Ilpo Järvinen , Denis Benato
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-14 3:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-14 3:16 [linux-next:master 5449/7428] drivers/platform/asus/asus-wmi.c:2887:33: sparse: sparse: incorrect type in argument 3 (different base types) kernel test robot
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.