The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: drivers/usb/dwc3/core.c:796:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Fri, 15 May 2026 05:25:11 +0800	[thread overview]
Message-ID: <202605150540.X43iAYqH-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   66182ca873a4e87b3496eca79d57f86b76d7f52d
commit: de6c925db978004703944585e9dd57d58aba0fac Merge 7.0-rc4 into usb-next
date:   8 weeks ago
config: i386-randconfig-063 (https://download.01.org/0day-ci/archive/20260515/202605150540.X43iAYqH-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260515/202605150540.X43iAYqH-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
| Fixes: de6c925db978 ("Merge 7.0-rc4 into usb-next")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605150540.X43iAYqH-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/usb/dwc3/core.c:796:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct dwc3 *dwc @@     got void [noderef] __iomem *regs @@
   drivers/usb/dwc3/core.c:796:45: sparse:     expected struct dwc3 *dwc
   drivers/usb/dwc3/core.c:796:45: sparse:     got void [noderef] __iomem *regs
   drivers/usb/dwc3/core.c:798:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct dwc3 *dwc @@     got void [noderef] __iomem *regs @@
   drivers/usb/dwc3/core.c:798:40: sparse:     expected struct dwc3 *dwc
   drivers/usb/dwc3/core.c:798:40: sparse:     got void [noderef] __iomem *regs

vim +796 drivers/usb/dwc3/core.c

30a46746ca5a1ef Krishna Kurapati 2024-04-20  784  
a28de6335657561 Ingo Rohloff     2026-03-05  785  static void dwc3_ulpi_setup(struct dwc3 *dwc)
a28de6335657561 Ingo Rohloff     2026-03-05  786  {
a28de6335657561 Ingo Rohloff     2026-03-05  787  	int index;
a28de6335657561 Ingo Rohloff     2026-03-05  788  	u32 reg;
a28de6335657561 Ingo Rohloff     2026-03-05  789  
a28de6335657561 Ingo Rohloff     2026-03-05  790  	/* Don't do anything if there is no ULPI PHY */
a28de6335657561 Ingo Rohloff     2026-03-05  791  	if (!dwc->ulpi)
a28de6335657561 Ingo Rohloff     2026-03-05  792  		return;
a28de6335657561 Ingo Rohloff     2026-03-05  793  
a28de6335657561 Ingo Rohloff     2026-03-05  794  	if (dwc->enable_usb2_transceiver_delay) {
a28de6335657561 Ingo Rohloff     2026-03-05  795  		for (index = 0; index < dwc->num_usb2_ports; index++) {
a28de6335657561 Ingo Rohloff     2026-03-05 @796  			reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(index));
a28de6335657561 Ingo Rohloff     2026-03-05  797  			reg |= DWC3_GUSB2PHYCFG_XCVRDLY;
a28de6335657561 Ingo Rohloff     2026-03-05  798  			dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(index), reg);
a28de6335657561 Ingo Rohloff     2026-03-05  799  		}
a28de6335657561 Ingo Rohloff     2026-03-05  800  	}
a28de6335657561 Ingo Rohloff     2026-03-05  801  }
a28de6335657561 Ingo Rohloff     2026-03-05  802  

:::::: The code at line 796 was first introduced by commit
:::::: a28de63356575612954d4e5d5f48a2488f50e16d usb: dwc3: Support USB3340x ULPI PHY high-speed negotiation.

:::::: TO: Ingo Rohloff <ingo.rohloff@lauterbach.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

                 reply	other threads:[~2026-05-14 21:37 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=202605150540.X43iAYqH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox