From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.13 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796556601; b=qB1YHeZtKIjWiSHi6txhhN7c9NeFf6T6d05kqbduOIIUWDlmVXcwlAL0s+Nw9NSvL2s/ gn+qsTj1D+oSL6p/ZjeXUPRDM1Z4HL8zg5kaYcW2I5hBTY3D586sRug6yLVASL4oVZg1m NAL5micw//e6OJUSROq1J6GULHgH8JHFWztdhMlKhzY2ZUaRSdK5nohnGI9V1TG/SCB5g 3Yy/vSOD90SGZ4fktM3H87+NmhSbBN1j3fJLI7FcZ+hRcDYyBo0ppp5GhkQHwTmmy8gMr cpnUtyFOgyCa9wvijaqK7EY/B5g6OzrESBssMjXmdjtSVr0FikbIHN9u5P0DObCCyrw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796556601; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=8uiIt6vR/qTUzoOAWPfXoG3Sm+fBSL3xF4FBuQ/AsV4=; b=qlYChp31obuk6TwDHN8MAzoDg82oKa5uhmdZokgF68LxK1EeKaB6T3pXH/+FH5ZKuard 15OZxXqxSNzKPTwSQQKJ+WXlJ3i43yZXCyCl6NZNIG+S9gkPpNNfLuLGb5zr9deLqo9PY 7OVjByPomrA99K0Gwm+EE3YbzEeoRLqZY5RVe9V7zxvsnN1R5UccH0GV/43XJkdcfy36l aaqjJBUyFHMBoOTLuZ+fn2lWpk2uU1C/8Zxa9sfDbDm+47Sz1vMNJHn+TvOXKf3jK6O9A 5h1zMEswPn7j4wZks+Aotj4AlUw8ruBL8mCKX2+LiLoU9I95mCnvfqW/ZyFu0pE4vFA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=f8XYfRK7; arc=none smtp.remote-ip=192.198.163.13 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 587FE606A684 for ; Sun, 6 Dec 2026 11:30:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 587FE606A684 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=f8XYfRK7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796556600; x=1828092600; h=date:from:to:cc:subject:message-id; bh=8uiIt6vR/qTUzoOAWPfXoG3Sm+fBSL3xF4FBuQ/AsV4=; b=f8XYfRK7vXLKpg1BBtjZX1qSaYulzbKtIXeCez7aU3VxlpvbF7in5JpV uAcEyvCQgfYzxVTfeYpnNWiGYvPft/3BQ9x+OJbkQHQHCRIoHODLxYpBw YdLJlInPI8aTtmyP3p7CvKZUESK9jgxlYtTtMqjpo2vtdrBx2H/qyzA79 mux/wYEgrUxnWfRwiGomlWmkmNLxTWr/1aLojqu5lAEnhivh40+G9lcag SpGo665M3MQX3ZA1w1aTO0R1ZUwE4yVfZXrMiBxgPzRz2eWy5sNKCx7lK PIPUFmccXWiOxpODjOf1NoI6dJEFz20b0cxFf6S2335DecWHKXgupxTPo A==; X-CSE-ConnectionGUID: ZwO8g5zaQF6+2o9uCi88Ew== X-CSE-MsgGUID: BqS4Dpu8T+2yuxixPsp05A== X-IronPort-AV: E=McAfee;i="6800,10657,11988"; a="5455629" X-IronPort-AV: E=Sophos;i="6.29,81,1794902400"; d="scan'208";a="5455629" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2026 03:29:59 -0800 X-CSE-ConnectionGUID: ztdPxDxnT0CkHjupbobAug== X-CSE-MsgGUID: pd/3JF4rRYyBUmQrfnn21w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,81,1794902400"; d="scan'208";a="14693678" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by fmviesa003.fm.intel.com with ESMTP; 06 Dec 2026 03:29:57 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xaARH-000000004zy-1vtX; Sun, 06 Dec 2026 11:29:55 +0000 Date: Sun, 06 Dec 2026 12:28:51 +0100 From: kernel test robot To: Johan Hovold Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: drivers/usb/phy/phy-fsl-usb.c:110:9: sparse: sparse: incorrect type in argument 2 (different address spaces) Message-ID: <20261205113546.YyWCgPW4-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 | 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 :::::: CC: Greg Kroah-Hartman -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki