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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A385C433F5 for ; Fri, 29 Apr 2022 23:16:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4D2A66B0071; Fri, 29 Apr 2022 19:16:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4832E6B0072; Fri, 29 Apr 2022 19:16:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 322E26B0074; Fri, 29 Apr 2022 19:16:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 21C326B0072 for ; Fri, 29 Apr 2022 19:16:31 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 0512728882 for ; Fri, 29 Apr 2022 23:16:30 +0000 (UTC) X-FDA: 79411477782.02.BB08FFD Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf29.hostedemail.com (Postfix) with ESMTP id 8D1AC12003F for ; Fri, 29 Apr 2022 23:16:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651274190; x=1682810190; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sHpYr19nxBH5UfvW1LQhyFMHjbMcdeIKQbNSYUgapl8=; b=UqfsZFWd7qb59fRKmGUCFVt/z9Bj8sDnaSqLBNTuZ9ATRs8wfnob6fM0 Cc2iOEZNgiQU84sEW+JVusWtp+HYJV3YF+A/zAbR0YtJEkc+Rc8d2wd91 X0siCiHDrhe7SK4BtxPBeuSNRdwJSwFuvwucCV+K3vFrUn/44wwfvZbXy nqsEtxWi9HSSS87lvfFZtcnFYgL3ag4rSQwQFxtGe8Wu+s4Gk3PaKdzFJ 49cU9Cr8XzqjI/LLF2QK/c4ABrwdqhNqAuXZFBnnXDzO6ZMYmEX5vER2X KOKV7nkNiq4ededAJr6CPvJJ81n5mtcbl4iZk9Hg0ep90GSC2psL9cwvR A==; X-IronPort-AV: E=McAfee;i="6400,9594,10332"; a="247351904" X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="247351904" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 16:16:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,186,1647327600"; d="scan'208";a="630275595" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 29 Apr 2022 16:16:26 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nkZqb-0006g5-Hi; Fri, 29 Apr 2022 23:16:25 +0000 Date: Sat, 30 Apr 2022 07:15:33 +0800 From: kernel test robot To: Kefeng Wang , catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, linux-mm@kvack.org, hch@infradead.org, arnd@arndb.de, Kefeng Wang Subject: Re: [PATCH v2 4/5] arm64: mm: Convert to GENERIC_IOREMAP Message-ID: <202204300706.lSqtHOzz-lkp@intel.com> References: <20220429103225.75121-5-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429103225.75121-5-wangkefeng.wang@huawei.com> Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UqfsZFWd; spf=none (imf29.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.151) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 8D1AC12003F X-Stat-Signature: bykrn3coffwbuq5hikegw9bemb97zhmw X-HE-Tag: 1651274186-882153 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Kefeng, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on hnaz-mm/master arnd-asm-generic/master v5.18-rc4 next-20220429] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Kefeng-Wang/arm64-Cleanup-ioremap-and-support-ioremap_prot/20220429-182215 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core config: arm64-randconfig-s032-20220429 (https://download.01.org/0day-ci/archive/20220430/202204300706.lSqtHOzz-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.3.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-dirty # https://github.com/intel-lab-lkp/linux/commit/77442d1fe8ed26b996b2b7d4464443a63097c434 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Kefeng-Wang/arm64-Cleanup-ioremap-and-support-ioremap_prot/20220429-182215 git checkout 77442d1fe8ed26b996b2b7d4464443a63097c434 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/mm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> arch/arm64/mm/ioremap.c:14:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@ arch/arm64/mm/ioremap.c:14:31: sparse: expected void [noderef] __iomem * arch/arm64/mm/ioremap.c:14:31: sparse: got void * arch/arm64/mm/ioremap.c:18:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@ arch/arm64/mm/ioremap.c:18:31: sparse: expected void [noderef] __iomem * arch/arm64/mm/ioremap.c:18:31: sparse: got void * arch/arm64/mm/ioremap.c:29:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *x @@ got void [noderef] __iomem *addr @@ arch/arm64/mm/ioremap.c:29:32: sparse: expected void const *x arch/arm64/mm/ioremap.c:29:32: sparse: got void [noderef] __iomem *addr vim +14 arch/arm64/mm/ioremap.c 6 7 void __iomem *arch_ioremap(phys_addr_t phys_addr, size_t size, unsigned long prot) 8 { 9 unsigned long last_addr = phys_addr + size - 1; 10 int ret = -EINVAL; 11 12 /* Don't allow outside PHYS_MASK */ 13 if (last_addr & ~PHYS_MASK) > 14 return ERR_PTR(ret); 15 16 /* Don't allow RAM to be mapped. */ 17 if (WARN_ON(pfn_is_map_memory(__phys_to_pfn(phys_addr)))) 18 return ERR_PTR(ret); 19 20 return NULL; 21 } 22 -- 0-DAY CI Kernel Test Service https://01.org/lkp