From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3AF97E for ; Thu, 13 Apr 2023 15:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681399158; x=1712935158; h=date:from:to:cc:subject:message-id:mime-version; bh=w2FFtpO5DEBChuRt+TW37OBBKHgn5gXrtnZG1SijWfM=; b=hmKtytRxfbTVPSCZkndo6cfWZ3h5Xff3aPUXs5pcKgGXCF+OGxqvRT3t 6H++21LmntJ7vbf1+3f9xsKjoQreJQGM2/LKZX+3D1Lg6s4mH7Ggm1nmT ns3LBIqJxQ+tecgQhVGhutdR/6JdasmqEwWDy8+XD4AAzhdMoa0BOch8W GzL0uw2+eLrYJiDK9TF+bLZVz3py9j8Eo5wkyI4Aod/A4YpwV8IedxMuy f+Dg3GDZP4F8hoEPpmgwk6fo9iTxNSaDMAvo5H80Ld6m8ZlgiTBACDZxk ohP44WzyO5nRuz8mukq05TpWt8qyZUiKpi8gLil7A9sXUSgyq1MrTOw5w w==; X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="324564501" X-IronPort-AV: E=Sophos;i="5.99,194,1677571200"; d="scan'208";a="324564501" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 08:18:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="719891682" X-IronPort-AV: E=Sophos;i="5.99,194,1677571200"; d="scan'208";a="719891682" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 13 Apr 2023 08:18:53 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pmyiq-000Ylp-1a; Thu, 13 Apr 2023 15:18:52 +0000 Date: Thu, 13 Apr 2023 23:18:34 +0800 From: kernel test robot To: Tanmay Shah Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Mathieu Poirier , Ben Levinsky Subject: drivers/remoteproc/xlnx_r5_remoteproc.c:209:20: sparse: sparse: cast removes address space '__iomem' of expression Message-ID: <202304132306.utSmesDI-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: de4664485abbc0529b1eec44d0061bbfe58a28fb commit: 6b291e8020a8bd90e94ee13d61f251040425c90d drivers: remoteproc: Add Xilinx r5 remoteproc driver date: 5 months ago config: arm64-randconfig-s052-20230413 (https://download.01.org/0day-ci/archive/20230413/202304132306.utSmesDI-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6b291e8020a8bd90e94ee13d61f251040425c90d git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 6b291e8020a8bd90e94ee13d61f251040425c90d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/remoteproc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304132306.utSmesDI-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/remoteproc/xlnx_r5_remoteproc.c:209:20: sparse: sparse: cast removes address space '__iomem' of expression drivers/remoteproc/xlnx_r5_remoteproc.c:315:20: sparse: sparse: cast removes address space '__iomem' of expression vim +/__iomem +209 drivers/remoteproc/xlnx_r5_remoteproc.c 190 191 /* 192 * zynqmp_r5_mem_region_map() 193 * @rproc: single R5 core's corresponding rproc instance 194 * @mem: mem descriptor to map reserved memory-regions 195 * 196 * Callback to map va for memory-region's carveout. 197 * 198 * return 0 on success, otherwise non-zero value on failure 199 */ 200 static int zynqmp_r5_mem_region_map(struct rproc *rproc, 201 struct rproc_mem_entry *mem) 202 { 203 void __iomem *va; 204 205 va = ioremap_wc(mem->dma, mem->len); 206 if (IS_ERR_OR_NULL(va)) 207 return -ENOMEM; 208 > 209 mem->va = (void *)va; 210 211 return 0; 212 } 213 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests