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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 679A7C43334 for ; Tue, 14 Jun 2022 05:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VOtkiAOubK+C7jCcRkaVeL3GX7A5OkBczBYFAVFK6+k=; b=yjS2p4t0VfJaIZ uXTaQr++Y1iPzcYqB3JgsXNAVaITybdGieT+/3P5otwMY197RQ+YDviPA3oERuFH93k6YB+bQpLz8 ksg29U5AeEmTG0N+ybOxcBm5CYi+psZL5hqsMxQ2vQJ83egWLKd0nXvMfTqpiSyS0825PSTknWgoP NlvkOHy9OkMBAEhcxaFZ45N8g8/8D1OJfpmE/mgI0uUSF1paB6Q+gxIiyeZilKuEFvPJupvlE9myO 3et9jsn+utGAhuJQ5oImZghfHk/wPuqwYz1wYG2b1ufc9QqX3JaNyKt8AsEkftDKYI4Dn9zo6qBc9 H+Nws2R+3VrXU2n36FtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0zPe-0078uz-1A; Tue, 14 Jun 2022 05:48:26 +0000 Received: from mga09.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0zPa-0078tH-P6 for linux-arm-kernel@lists.infradead.org; Tue, 14 Jun 2022 05:48:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655185702; x=1686721702; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CyNdySx2uZ8GAydrwC4cw3saRTDAOCcj/o2UPnfrqlw=; b=F4VmXnOlIZNQOWpG9B1PsK895zFl9TvXsEuGNOYLW9dF1ptyarZmPGpq PiwnhSYpAbC3OeGabtMjMGZbqGJgfg+Bo6vl4gq6zO3q70oIfqZ/oM8D3 3DsTbZLyV8su0Hy4c6hS703u1aMKMbnV9sXlQhKazdyoku89uUEKPuAc9 Hp6hGQCktz4zkTo67mDSicfG/tEqbNi7VDsmXy76hmG8pHJoKFKQSfjAR BY0pOQ2usL8y9NsVHJ7Xn+jLwg2V2buhXNiX/w8bP03zx//pPEgrhNfhD 4Xr6HlCegNUUGguIiQDZxioZGyp1+OC69ToJ5vQ/QvPSOnzbIG0xlhD7F A==; X-IronPort-AV: E=McAfee;i="6400,9594,10377"; a="279231909" X-IronPort-AV: E=Sophos;i="5.91,299,1647327600"; d="scan'208";a="279231909" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 22:48:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,299,1647327600"; d="scan'208";a="535422880" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 13 Jun 2022 22:48:16 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o0zPT-000LXQ-BG; Tue, 14 Jun 2022 05:48:15 +0000 Date: Tue, 14 Jun 2022 13:47: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, anshuman.khandual@arm.com, Kefeng Wang , Russell King , Christoph Hellwig Subject: Re: [PATCH v5 1/6] ARM: mm: kill unused runtime hook arch_iounmap() Message-ID: <202206141355.p1aTShLo-lkp@intel.com> References: <20220607125027.44946-2-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220607125027.44946-2-wangkefeng.wang@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_224822_913060_F1D8608B X-CRM114-Status: GOOD ( 15.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Kefeng, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.19-rc2 next-20220610] [cannot apply to arm64/for-next/core arnd-asm-generic/master akpm-mm/mm-everything] [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/20220607-204345 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e71e60cd74df9386c3f684c54888f2367050b831 config: arm-randconfig-s031-20220613 (https://download.01.org/0day-ci/archive/20220614/202206141355.p1aTShLo-lkp@intel.com/config) compiler: arm-linux-gnueabi-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-30-g92122700-dirty # https://github.com/intel-lab-lkp/linux/commit/5a6f8121572d1f82b599d118e9070ef4ba16183b 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/20220607-204345 git checkout 5a6f8121572d1f82b599d118e9070ef4ba16183b # 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=arm SHELL=/bin/bash fs/pstore/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) fs/pstore/ram_core.c:278:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *to @@ got unsigned char * @@ fs/pstore/ram_core.c:278:9: sparse: expected void volatile [noderef] __iomem *to fs/pstore/ram_core.c:278:9: sparse: got unsigned char * fs/pstore/ram_core.c:311:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *from @@ got unsigned char * @@ fs/pstore/ram_core.c:311:9: sparse: expected void const volatile [noderef] __iomem *from fs/pstore/ram_core.c:311:9: sparse: got unsigned char * fs/pstore/ram_core.c:312:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *from @@ got unsigned char * @@ fs/pstore/ram_core.c:312:9: sparse: expected void const volatile [noderef] __iomem *from fs/pstore/ram_core.c:312:9: sparse: got unsigned char * fs/pstore/ram_core.c:466:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@ fs/pstore/ram_core.c:466:20: sparse: expected void *va fs/pstore/ram_core.c:466:20: sparse: got void [noderef] __iomem * fs/pstore/ram_core.c:468:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@ fs/pstore/ram_core.c:468:20: sparse: expected void *va fs/pstore/ram_core.c:468:20: sparse: got void [noderef] __iomem * >> fs/pstore/ram_core.c:556:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *io_addr @@ got void *vaddr @@ fs/pstore/ram_core.c:556:36: sparse: expected void volatile [noderef] __iomem *io_addr fs/pstore/ram_core.c:556:36: sparse: got void *vaddr fs/pstore/ram_core.c:69:17: sparse: sparse: context imbalance in 'buffer_start_add' - unexpected unlock fs/pstore/ram_core.c:95:17: sparse: sparse: context imbalance in 'buffer_size_add' - unexpected unlock vim +556 fs/pstore/ram_core.c bb4206f2042d95 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 545 d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 546 void persistent_ram_free(struct persistent_ram_zone *prz) d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 547 { beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 548 if (!prz) beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 549 return; beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 550 beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 551 if (prz->vaddr) { d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 552 if (pfn_valid(prz->paddr >> PAGE_SHIFT)) { 831b624df1b420 fs/pstore/ram_core.c Bin Yang 2018-09-12 553 /* We must vunmap() at page-granularity. */ 831b624df1b420 fs/pstore/ram_core.c Bin Yang 2018-09-12 554 vunmap(prz->vaddr - offset_in_page(prz->paddr)); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 555 } else { d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 @556 iounmap(prz->vaddr); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 557 release_mem_region(prz->paddr, prz->size); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 558 } beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 559 prz->vaddr = NULL; beeb94321a7a6d fs/pstore/ram_core.c Anton Vorontsov 2012-06-18 560 } f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 561 if (prz->rs_decoder) { f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 562 free_rs(prz->rs_decoder); f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 563 prz->rs_decoder = NULL; f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 564 } f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 565 kfree(prz->ecc_info.par); f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 566 prz->ecc_info.par = NULL; f2531f1976d98a fs/pstore/ram_core.c Kees Cook 2018-03-07 567 d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 568 persistent_ram_free_old(prz); 1227daa43bce13 fs/pstore/ram_core.c Kees Cook 2018-10-17 569 kfree(prz->label); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 570 kfree(prz); d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 571 } d3b487695120b5 drivers/staging/android/persistent_ram.c Anton Vorontsov 2012-05-11 572 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel