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 7ECAAC4332F for ; Thu, 14 Dec 2023 16:42:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbjLNQmW (ORCPT ); Thu, 14 Dec 2023 11:42:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbjLNQmT (ORCPT ); Thu, 14 Dec 2023 11:42:19 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7657112 for ; Thu, 14 Dec 2023 08:42:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702572146; x=1734108146; h=date:from:to:cc:subject:message-id:mime-version; bh=5D6wabx9SXPUrarTCyURTiJCLmk4V+ewGJuOuk1VE+E=; b=WfKQyM1OvGi73xsmhxt253NS3pPjXGW1XDY/iZAlfEYgnj2aiUXi4hv2 lJDx1/hIZ2Z/xZO9IPtylQHrrSgTvVcvu1Cgdfgi4l4jG3U8uXVc2opOc kWaQMOEQzvld4tVwwWy85iG7hCdzUap+73kNfsDfZiuD+QWlrAltr3B81 rteRHrSNiZGMXWpfnPpj8aXSepqjiUylJiDibkckePVZUhn30MQZjaU/h VqemrmHykomlyCUVbgRoGyOWIPiGoPtlAkcKWufDq6NtFUe9ghzYS+oxX VWnuk7vOMJLofh1NSUBsw/PMYHinkZIGZTfiZhL2lrvM77frgoioIwc/G w==; X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="2302799" X-IronPort-AV: E=Sophos;i="6.04,276,1695711600"; d="scan'208";a="2302799" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 08:42:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="767661625" X-IronPort-AV: E=Sophos;i="6.04,276,1695711600"; d="scan'208";a="767661625" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 14 Dec 2023 08:42:24 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rDomz-000MKn-0B; Thu, 14 Dec 2023 16:42:21 +0000 Date: Fri, 15 Dec 2023 00:40:58 +0800 From: kernel test robot To: Arnd Bergmann Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Arnaud Pouliquen Subject: drivers/remoteproc/stm32_rproc.c:139:20: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202312150052.HCiNKlqB-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 Hi Arnd, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5bd7ef53ffe5ca580e93e74eb8c81ed191ddc4bd commit: 03bd158e1535e68bcd2b1e095b0ebcad7c84bd20 remoteproc: stm32: use correct format strings on 64-bit date: 6 months ago config: mips-randconfig-r122-20231108 (https://download.01.org/0day-ci/archive/20231215/202312150052.HCiNKlqB-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231215/202312150052.HCiNKlqB-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/202312150052.HCiNKlqB-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/remoteproc/stm32_rproc.c:122:12: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@ drivers/remoteproc/stm32_rproc.c:122:12: sparse: expected void *va drivers/remoteproc/stm32_rproc.c:122:12: sparse: got void [noderef] __iomem * >> drivers/remoteproc/stm32_rproc.c:139:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *va @@ drivers/remoteproc/stm32_rproc.c:139:20: sparse: expected void const volatile [noderef] __iomem *addr drivers/remoteproc/stm32_rproc.c:139:20: sparse: got void *va drivers/remoteproc/stm32_rproc.c:644:17: sparse: sparse: cast removes address space '__iomem' of expression vim +139 drivers/remoteproc/stm32_rproc.c 13140de09cc2dd Fabien Dessenne 2019-05-14 134 13140de09cc2dd Fabien Dessenne 2019-05-14 135 static int stm32_rproc_mem_release(struct rproc *rproc, 13140de09cc2dd Fabien Dessenne 2019-05-14 136 struct rproc_mem_entry *mem) 13140de09cc2dd Fabien Dessenne 2019-05-14 137 { 13140de09cc2dd Fabien Dessenne 2019-05-14 138 dev_dbg(rproc->dev.parent, "unmap memory: %pa\n", &mem->dma); 13140de09cc2dd Fabien Dessenne 2019-05-14 @139 iounmap(mem->va); 13140de09cc2dd Fabien Dessenne 2019-05-14 140 13140de09cc2dd Fabien Dessenne 2019-05-14 141 return 0; 13140de09cc2dd Fabien Dessenne 2019-05-14 142 } 13140de09cc2dd Fabien Dessenne 2019-05-14 143 :::::: The code at line 139 was first introduced by commit :::::: 13140de09cc2dd5e5166ad42292bb82af4e23cef remoteproc: stm32: add an ST stm32_rproc driver :::::: TO: Fabien Dessenne :::::: CC: Bjorn Andersson -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki