From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 3BA387FBD3 for ; Wed, 13 Dec 2023 23:14:15 +0000 (UTC) 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.b="LloksCR/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702509256; x=1734045256; h=date:from:to:cc:subject:message-id:mime-version; bh=2HhgxzypDa5gBJlL3fVXaMJ/guTw/6vPdE6mdWuZ2Og=; b=LloksCR/GLhUutsFmHEhiWLMR4mrAg1zHBSB41L1dh/2Dqx8WVjPPgad yuEMceYm6U/7PP41UHdiP+6CeFZN7Iypw4ntzYvq84dgPj2NbyhCtHDaf ni3o9LhKWbjAf0lp+ocMyU+sX2Lh19j4+2xLU/9I0PH3FHRjxj/1Pbk3y ON80mN/CMssmBxm8IhIWrcDJVwZAsZTAX+7isWxEf66X0TmbkEOMQM816 nBTlTnXX9eHGiTgFd97HfoDWEHuA6rvTmmnXSReWM8oriXv8SRyoEPbPo gd9Z1eZj5gbEa0LPcxqZSdYc8amIYIq+2tz+EHxXlUfEw/1m8FT8nfWWi w==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="1861555" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="1861555" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 15:14:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="844496106" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="844496106" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 13 Dec 2023 15:14:14 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rDYQe-000LGx-0I; Wed, 13 Dec 2023 23:14:12 +0000 Date: Thu, 14 Dec 2023 07:13:58 +0800 From: kernel test robot To: Arun Kumar Neelakantam Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Bjorn Andersson Subject: drivers/rpmsg/qcom_glink_smem.c:93:17: sparse: sparse: incorrect type in argument 2 (different address spaces) Message-ID: <202312140746.AMlosG0F-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: 5bd7ef53ffe5ca580e93e74eb8c81ed191ddc4bd commit: 928002a5e9dab2ddc1a0fe3e00739e89be30dc6b rpmsg: glink: smem: Support rx peak for size less than 4 bytes date: 5 years ago config: arm-randconfig-r131-20231117 (https://download.01.org/0day-ci/archive/20231214/202312140746.AMlosG0F-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231214/202312140746.AMlosG0F-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202312140746.AMlosG0F-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/rpmsg/qcom_glink_smem.c:93:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *from @@ got void * @@ drivers/rpmsg/qcom_glink_smem.c:93:17: sparse: expected void const volatile [noderef] __iomem *from drivers/rpmsg/qcom_glink_smem.c:93:17: sparse: got void * >> drivers/rpmsg/qcom_glink_smem.c:96:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *from @@ got void *fifo @@ drivers/rpmsg/qcom_glink_smem.c:96:17: sparse: expected void const volatile [noderef] __iomem *from drivers/rpmsg/qcom_glink_smem.c:96:17: sparse: got void *fifo vim +93 drivers/rpmsg/qcom_glink_smem.c 78 79 static void glink_smem_rx_peak(struct qcom_glink_pipe *np, 80 void *data, unsigned int offset, size_t count) 81 { 82 struct glink_smem_pipe *pipe = to_smem_pipe(np); 83 size_t len; 84 u32 tail; 85 86 tail = le32_to_cpu(*pipe->tail); 87 tail += offset; 88 if (tail >= pipe->native.length) 89 tail -= pipe->native.length; 90 91 len = min_t(size_t, count, pipe->native.length - tail); 92 if (len) > 93 memcpy_fromio(data, pipe->fifo + tail, len); 94 95 if (len != count) > 96 memcpy_fromio(data + len, pipe->fifo, (count - len)); 97 } 98 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki