mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/usb/phy/phy-fsl-usb.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces)
@ 2026-12-06 11:28 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-12-06 11:28 UTC (permalink / raw)
  To: Johan Hovold; +Cc: oe-kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   28a23309c8e40d651faf4cc3cc9b71458a11b987
commit: a71f5aef1be98fb10f00e66a0ac4ef23ba9c877f USB: gadget: fsl-udc: enable compile testing
date:   5 months ago
config: arm-randconfig-r2303-20261205 (https://download.01.org/0day-ci/archive/20261205/20261205113546.YyWCgPW4-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project c99f32ca9e5361a2006927ca6839a4eb93832d0e)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261205/20261205113546.YyWCgPW4-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: a71f5aef1be9 ("USB: gadget: fsl-udc: enable compile testing")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261205113546.YyWCgPW4-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/usb/phy/phy-fsl-usb.c:49:20: sparse: sparse: symbol 'otg_suspend_state' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:22: sparse: sparse: symbol 'a_wait_vrise_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:41: sparse: sparse: symbol 'a_wait_bcon_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:59: sparse: sparse: symbol 'a_aidl_bdis_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:61:9: sparse: sparse: symbol 'b_ase0_brst_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:61:27: sparse: sparse: symbol 'b_se0_srp_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:22: sparse: sparse: symbol 'b_data_pulse_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:41: sparse: sparse: symbol 'b_vbus_pulse_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:60: sparse: sparse: symbol 'b_srp_fail_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:65:9: sparse: sparse: symbol 'b_srp_wait_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:65:26: sparse: sparse: symbol 'a_wait_enum_tmr' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:110:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:110:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:105:5: sparse: sparse: symbol 'write_ulpi' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:122:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:122:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:122:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:118:6: sparse: sparse: symbol 'fsl_otg_chrg_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:136:6: sparse: sparse: symbol 'fsl_otg_dischrg_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:154:6: sparse: sparse: symbol 'fsl_otg_drv_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:172:6: sparse: sparse: symbol 'fsl_otg_loc_conn' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:191:6: sparse: sparse: symbol 'fsl_otg_loc_sof' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:206:6: sparse: sparse: symbol 'fsl_otg_start_pulse' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:222:6: sparse: sparse: symbol 'b_data_pulse_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:241:6: sparse: sparse: symbol 'b_vbus_pulse_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:254:6: sparse: sparse: symbol 'b_srp_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:269:6: sparse: sparse: symbol 'a_wait_enum' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:279:6: sparse: sparse: symbol 'set_tmout' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:285:5: sparse: sparse: symbol 'fsl_otg_init_timers' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:342:6: sparse: sparse: symbol 'fsl_otg_uninit_timers' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:446:6: sparse: sparse: symbol 'otg_reset_controller' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:458:5: sparse: sparse: symbol 'fsl_otg_start_host' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:525:5: sparse: sparse: symbol 'fsl_otg_start_gadget' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse:     got unsigned int *
>> drivers/usb/phy/phy-fsl-usb.c:618:31: sparse: sparse: Using plain integer as NULL pointer
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:707:13: sparse: sparse: symbol 'fsl_otg_isr' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:858:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct usb_dr_mmap *static [toplevel] usb_dr_regs @@     got void [noderef] __iomem * @@
   drivers/usb/phy/phy-fsl-usb.c:858:21: sparse:     expected struct usb_dr_mmap *static [toplevel] usb_dr_regs
   drivers/usb/phy/phy-fsl-usb.c:858:21: sparse:     got void [noderef] __iomem *
>> drivers/usb/phy/phy-fsl-usb.c:860:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *regs @@     got void * @@
   drivers/usb/phy/phy-fsl-usb.c:860:21: sparse:     expected void [noderef] __iomem *regs
   drivers/usb/phy/phy-fsl-usb.c:860:21: sparse:     got void *
   drivers/usb/phy/phy-fsl-usb.c:884:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *io_addr @@     got struct usb_dr_mmap *dr_mem_map @@
   drivers/usb/phy/phy-fsl-usb.c:884:30: sparse:     expected void volatile [noderef] __iomem *io_addr
   drivers/usb/phy/phy-fsl-usb.c:884:30: sparse:     got struct usb_dr_mmap *dr_mem_map
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:833:5: sparse: sparse: symbol 'usb_otg_start' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:995:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *io_addr @@     got void * @@
   drivers/usb/phy/phy-fsl-usb.c:995:18: sparse:     expected void volatile [noderef] __iomem *io_addr
   drivers/usb/phy/phy-fsl-usb.c:995:18: sparse:     got void *
   drivers/usb/phy/phy-fsl-usb.c:1005:24: sparse: sparse: symbol 'fsl_otg_driver' was not declared. Should it be static?

vim +110 drivers/usb/phy/phy-fsl-usb.c

0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   58  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   59  /* FSM timers */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  @60  struct fsl_otg_timer *a_wait_vrise_tmr, *a_wait_bcon_tmr, *a_aidl_bdis_tmr,
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   61  	*b_ase0_brst_tmr, *b_se0_srp_tmr;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   62  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   63  /* Driver specific timers */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  @64  struct fsl_otg_timer *b_data_pulse_tmr, *b_vbus_pulse_tmr, *b_srp_fail_tmr,
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   65  	*b_srp_wait_tmr, *a_wait_enum_tmr;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   66  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   67  static struct list_head active_timers;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   68  
f1b19006f4c9e8 drivers/usb/phy/phy-fsl-usb.c Nishka Dasgupta  2019-08-19   69  static const struct fsl_otg_config fsl_otg_initdata = {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   70  	.otg_port = 1,
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   71  };
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   72  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   73  #ifdef CONFIG_PPC32
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   74  static u32 _fsl_readl_be(const unsigned __iomem *p)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   75  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   76  	return in_be32(p);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   77  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   78  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   79  static u32 _fsl_readl_le(const unsigned __iomem *p)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   80  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   81  	return in_le32(p);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   82  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   83  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   84  static void _fsl_writel_be(u32 v, unsigned __iomem *p)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   85  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   86  	out_be32(p, v);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   87  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   88  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   89  static void _fsl_writel_le(u32 v, unsigned __iomem *p)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   90  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   91  	out_le32(p, v);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   92  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   93  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   94  static u32 (*_fsl_readl)(const unsigned __iomem *p);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   95  static void (*_fsl_writel)(u32 v, unsigned __iomem *p);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   96  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   97  #define fsl_readl(p)		(*_fsl_readl)((p))
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   98  #define fsl_writel(v, p)	(*_fsl_writel)((v), (p))
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18   99  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  100  #else
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  101  #define fsl_readl(addr)		readl(addr)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  102  #define fsl_writel(val, addr)	writel(val, addr)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  103  #endif /* CONFIG_PPC32 */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  104  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  105  int write_ulpi(u8 addr, u8 data)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  106  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  107  	u32 temp;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  108  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  109  	temp = 0x60000000 | (addr << 16) | data;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18 @110  	fsl_writel(temp, &usb_dr_regs->ulpiview);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  111  	return 0;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  112  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  113  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  114  /* -------------------------------------------------------------*/
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  115  /* Operations that will be called from OTG Finite State Machine */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  116  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  117  /* Charge vbus for vbus pulsing in SRP */
da8cc16724da29 drivers/usb/phy/phy-fsl-usb.c Anton Tikhomirov 2013-10-03  118  void fsl_otg_chrg_vbus(struct otg_fsm *fsm, int on)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  119  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  120  	u32 tmp;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  121  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18 @122  	tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  123  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  124  	if (on)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  125  		/* stop discharging, start charging */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  126  		tmp = (tmp & ~OTGSC_CTRL_VBUS_DISCHARGE) |
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  127  			OTGSC_CTRL_VBUS_CHARGE;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  128  	else
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  129  		/* stop charging */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  130  		tmp &= ~OTGSC_CTRL_VBUS_CHARGE;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  131  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  132  	fsl_writel(tmp, &usb_dr_regs->otgsc);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  133  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  134  

:::::: The code at line 110 was first introduced by commit
:::::: 0807c500a1a6d7fa20cbd7bbe7fea14a66112463 USB: add Freescale USB OTG Transceiver driver

:::::: TO: Li Yang <leoli@freescale.com>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* drivers/usb/phy/phy-fsl-usb.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces)
@ 2026-09-28 17:15 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-09-28 17:15 UTC (permalink / raw)
  To: Johan Hovold; +Cc: oe-kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   72d3fcf802c45d00b300f25b848a93c3a2bd7c7e
commit: a71f5aef1be98fb10f00e66a0ac4ef23ba9c877f USB: gadget: fsl-udc: enable compile testing
date:   3 months ago
config: mips-randconfig-r2301-20260928 (https://download.01.org/0day-ci/archive/20260928/202609281938.kuwyhhWS-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260928/202609281938.kuwyhhWS-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: a71f5aef1be9 ("USB: gadget: fsl-udc: enable compile testing")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609281938.kuwyhhWS-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/usb/phy/phy-fsl-usb.c:49:20: sparse: sparse: symbol 'otg_suspend_state' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:22: sparse: sparse: symbol 'a_wait_vrise_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:41: sparse: sparse: symbol 'a_wait_bcon_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:60:59: sparse: sparse: symbol 'a_aidl_bdis_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:61:9: sparse: sparse: symbol 'b_ase0_brst_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:61:27: sparse: sparse: symbol 'b_se0_srp_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:22: sparse: sparse: symbol 'b_data_pulse_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:41: sparse: sparse: symbol 'b_vbus_pulse_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:64:60: sparse: sparse: symbol 'b_srp_fail_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:65:9: sparse: sparse: symbol 'b_srp_wait_tmr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:65:26: sparse: sparse: symbol 'a_wait_enum_tmr' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:110:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:110:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:105:5: sparse: sparse: symbol 'write_ulpi' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:122:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:122:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:122:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:132:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:118:6: sparse: sparse: symbol 'fsl_otg_chrg_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:140:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:150:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:136:6: sparse: sparse: symbol 'fsl_otg_dischrg_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:159:23: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:160:17: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:162:23: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:164:17: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:154:6: sparse: sparse: symbol 'fsl_otg_drv_vbus' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:176:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:183:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:172:6: sparse: sparse: symbol 'fsl_otg_loc_conn' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:195:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:201:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:191:6: sparse: sparse: symbol 'fsl_otg_loc_sof' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:212:15: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:214:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:206:6: sparse: sparse: symbol 'fsl_otg_start_pulse' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:222:6: sparse: sparse: symbol 'b_data_pulse_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:241:6: sparse: sparse: symbol 'b_vbus_pulse_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:254:6: sparse: sparse: symbol 'b_srp_end' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:269:6: sparse: sparse: symbol 'a_wait_enum' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:279:6: sparse: sparse: symbol 'set_tmout' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:285:5: sparse: sparse: symbol 'fsl_otg_init_timers' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:342:6: sparse: sparse: symbol 'fsl_otg_uninit_timers' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:450:19: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:452:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:453:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:446:6: sparse: sparse: symbol 'otg_reset_controller' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:475:20: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:458:5: sparse: sparse: symbol 'fsl_otg_start_host' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:525:5: sparse: sparse: symbol 'fsl_otg_start_gadget' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:582:23: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:618:31: sparse: sparse: Using plain integer as NULL pointer
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:713:18: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:717:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:707:13: sparse: sparse: symbol 'fsl_otg_isr' was not declared. Should it be static?
   drivers/usb/phy/phy-fsl-usb.c:858:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct usb_dr_mmap *static [toplevel] usb_dr_regs @@     got void [noderef] __iomem * @@
   drivers/usb/phy/phy-fsl-usb.c:858:21: sparse:     expected struct usb_dr_mmap *static [toplevel] usb_dr_regs
   drivers/usb/phy/phy-fsl-usb.c:858:21: sparse:     got void [noderef] __iomem *
   drivers/usb/phy/phy-fsl-usb.c:860:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *regs @@     got void * @@
   drivers/usb/phy/phy-fsl-usb.c:860:21: sparse:     expected void [noderef] __iomem *regs
   drivers/usb/phy/phy-fsl-usb.c:860:21: sparse:     got void *
>> drivers/usb/phy/phy-fsl-usb.c:884:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got struct usb_dr_mmap *dr_mem_map @@
   drivers/usb/phy/phy-fsl-usb.c:884:30: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:884:30: sparse:     got struct usb_dr_mmap *dr_mem_map
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:891:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:893:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:896:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:898:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:901:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:906:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:909:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:924:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:928:42: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:930:42: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:934:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:937:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:944:13: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse:     expected void const volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:955:16: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *mem @@     got unsigned int * @@
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse:     expected void volatile [noderef] __iomem *mem
   drivers/usb/phy/phy-fsl-usb.c:958:9: sparse:     got unsigned int *
   drivers/usb/phy/phy-fsl-usb.c:833:5: sparse: sparse: symbol 'usb_otg_start' was not declared. Should it be static?
>> drivers/usb/phy/phy-fsl-usb.c:995:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/usb/phy/phy-fsl-usb.c:995:18: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/usb/phy/phy-fsl-usb.c:995:18: sparse:     got void *
   drivers/usb/phy/phy-fsl-usb.c:1005:24: sparse: sparse: symbol 'fsl_otg_driver' was not declared. Should it be static?

vim +110 drivers/usb/phy/phy-fsl-usb.c

0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  104  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  105  int write_ulpi(u8 addr, u8 data)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  106  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  107  	u32 temp;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  108  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  109  	temp = 0x60000000 | (addr << 16) | data;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18 @110  	fsl_writel(temp, &usb_dr_regs->ulpiview);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  111  	return 0;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  112  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  113  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  114  /* -------------------------------------------------------------*/
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  115  /* Operations that will be called from OTG Finite State Machine */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  116  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  117  /* Charge vbus for vbus pulsing in SRP */
da8cc16724da29 drivers/usb/phy/phy-fsl-usb.c Anton Tikhomirov 2013-10-03  118  void fsl_otg_chrg_vbus(struct otg_fsm *fsm, int on)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  119  {
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  120  	u32 tmp;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  121  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18 @122  	tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  123  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  124  	if (on)
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  125  		/* stop discharging, start charging */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  126  		tmp = (tmp & ~OTGSC_CTRL_VBUS_DISCHARGE) |
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  127  			OTGSC_CTRL_VBUS_CHARGE;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  128  	else
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  129  		/* stop charging */
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  130  		tmp &= ~OTGSC_CTRL_VBUS_CHARGE;
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  131  
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  132  	fsl_writel(tmp, &usb_dr_regs->otgsc);
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  133  }
0807c500a1a6d7 drivers/usb/otg/fsl_otg.c     Li Yang          2011-04-18  134  

:::::: The code at line 110 was first introduced by commit
:::::: 0807c500a1a6d7fa20cbd7bbe7fea14a66112463 USB: add Freescale USB OTG Transceiver driver

:::::: TO: Li Yang <leoli@freescale.com>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-06 11:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-06 11:28 drivers/usb/phy/phy-fsl-usb.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-09-28 17:15 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

all inboxes | Powered by JetHome®