From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DCDEC77B7A for ; Sat, 10 Jun 2023 23:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232300AbjFJXFs (ORCPT ); Sat, 10 Jun 2023 19:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjFJXFp (ORCPT ); Sat, 10 Jun 2023 19:05:45 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 738C135B6 for ; Sat, 10 Jun 2023 16:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686438344; x=1717974344; h=date:from:to:cc:subject:message-id:mime-version; bh=pVaCBxi9PB8CZgJioF9IgxhZN3gyEr12Uzdkju1rZsA=; b=jhVliPQPZg29oACUWSlAiap/hIOu2nDqGtR7iplko+dRKrrwRrKx0NKx mLPoCtC9BoJ0mewH+81biEmq7A/5n9Zt/1OsDStC7rMSBT4ZT44FfzfId 6wWlhL/PlibWS35s0ZtGPfkrjPaKFHfGs5/G4OkcmysF1HdG6usrTuI79 8BXucE3iVdwcsDTQFzYQJ65Q3h9+WE5QZ4JSKZfsYhBHRtb1FNdibPAad GONsYLeufrxrqR3ptUkL7cqj64kVGKNrVGTRfyo+Dqx8+9IubNS9cMdzW PHJjK5g8DKZtS8LhDL8gbd8FGlKqqj17fDqvBh5cs8AuIq2M7Dmz/o3k9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10737"; a="361174275" X-IronPort-AV: E=Sophos;i="6.00,233,1681196400"; d="scan'208";a="361174275" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2023 16:05:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10737"; a="688153800" X-IronPort-AV: E=Sophos;i="6.00,233,1681196400"; d="scan'208";a="688153800" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 10 Jun 2023 16:05:42 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q87eP-000AU0-1s; Sat, 10 Jun 2023 23:05:41 +0000 Date: Sun, 11 Jun 2023 07:04:46 +0800 From: kernel test robot To: Yogesh Lal Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Bjorn Andersson , Sibi Sankar Subject: drivers/remoteproc/qcom_q6v5_pas.c:123:9: sparse: sparse: incorrect type in argument 2 (different address spaces) Message-ID: <202306110724.CdrAc9vo-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 022ce8862dff83c859089cd14bc4dca0733e2f90 commit: a376c10d45a8e6ee5ea55791193f90625b35e156 remoteproc: qcom: pas: Adjust the phys addr wrt the mem region date: 4 months ago config: arm64-randconfig-s052-20230611 (https://download.01.org/0day-ci/archive/20230611/202306110724.CdrAc9vo-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.3.0 reproduce: mkdir -p ~/bin 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=a376c10d45a8e6ee5ea55791193f90625b35e156 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout a376c10d45a8e6ee5ea55791193f90625b35e156 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/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 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/202306110724.CdrAc9vo-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/remoteproc/qcom_q6v5_pas.c:123:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got void * @@ drivers/remoteproc/qcom_q6v5_pas.c:123:9: sparse: expected void const volatile [noderef] __iomem * drivers/remoteproc/qcom_q6v5_pas.c:123:9: sparse: got void * >> drivers/remoteproc/qcom_q6v5_pas.c:108:6: sparse: sparse: symbol 'adsp_segment_dump' was not declared. Should it be static? drivers/remoteproc/qcom_q6v5_pas.c:553:26: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *mem_region @@ got void [noderef] __iomem * @@ drivers/remoteproc/qcom_q6v5_pas.c:553:26: sparse: expected void *mem_region drivers/remoteproc/qcom_q6v5_pas.c:553:26: sparse: got void [noderef] __iomem * drivers/remoteproc/qcom_q6v5_pas.c:575:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *dtb_mem_region @@ got void [noderef] __iomem * @@ drivers/remoteproc/qcom_q6v5_pas.c:575:30: sparse: expected void *dtb_mem_region drivers/remoteproc/qcom_q6v5_pas.c:575:30: sparse: got void [noderef] __iomem * vim +123 drivers/remoteproc/qcom_q6v5_pas.c 107 > 108 void adsp_segment_dump(struct rproc *rproc, struct rproc_dump_segment *segment, 109 void *dest, size_t offset, size_t size) 110 { 111 struct qcom_adsp *adsp = rproc->priv; 112 int total_offset; 113 114 total_offset = segment->da + segment->offset + offset - adsp->mem_phys; 115 if (total_offset < 0 || total_offset + size > adsp->mem_size) { 116 dev_err(adsp->dev, 117 "invalid copy request for segment %pad with offset %zu and size %zu)\n", 118 &segment->da, offset, size); 119 memset(dest, 0xff, size); 120 return; 121 } 122 > 123 memcpy_fromio(dest, adsp->mem_region + total_offset, size); 124 } 125 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki