Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2875191ioo; Tue, 24 May 2022 07:54:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweIGvZAcChZFR1NZFLUpm3aagWEZ5EonbAVlSWW21+IJe9f6WRyLN3cd9ZsJNK9/2Wq7d+ X-Received: by 2002:a17:902:d2c8:b0:161:bc97:2805 with SMTP id n8-20020a170902d2c800b00161bc972805mr28604088plc.4.1653404058224; Tue, 24 May 2022 07:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653404058; cv=none; d=google.com; s=arc-20160816; b=v/dXD4ymnGSmhAebXe/iVRqG2urXIfxyBomZv+Yj6KisNY+Wrb1E86LWrGC1xoBqqB aYM7OMMwQcg7csXrPGg+jE7fTwPB4dREi+hS3WkdOkTxvxXIP+dcB26VpAbKw7nLuCb1 hXgCNpGj1E3PB2qZQmw/qNYWrMikIpPOqpnf9Yjr5xxhgy182GLzAKT/3w/y1kwLzu91 5QcYaT43K62peWppyDxS6xFFppIRSiVnNfvEap5G8bKTZnjID3ZM5rVVj1G+qls3f2+C FnndJb9bdw0XTIlCp/A1YGRwh3NfmURPcQfma+4iXNV6kz0GHawv3vIbKYcASEn5NNYx pzxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6efBYlzqz4VGOTnIIPVPzabqhVeUCS0NBD6g8Qeq8pU=; b=D7zUUiR0BlvKCg/VMbyt7biM7mnU6g7i/AXzJrIuOnZXay2OTEvm+aBO4bTPqJZHeG A1QSEvGjYMlLI2NT025LaeyWBNmrD/gXLekrPniEfbJwlk4wiY0172U0qELbpaX1BWz6 Q7NQeAsypF8V3fzYbjZUiBIc8niARzMQR7xSXU4g9CukJL7fx/EY+QKojXePVAT0P7gs hxNk40XshBPE37SVlcU6m2sAeDSZZ6OVEX04JE8GhTOJejfGgEszVJjyPvfvIRhv48Uo 8HOUErSx1vJHJebtE2aOemB7jZMOOF7qDn8uPdP4BWtr9IogmNLIb+vz2TpDV5kwgZvY r/5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a17090a7d0600b001e0176df727si598518pjl.39.2022.05.24.07.54.04; Tue, 24 May 2022 07:54:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235880AbiEXJtH (ORCPT + 99 others); Tue, 24 May 2022 05:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235875AbiEXJtE (ORCPT ); Tue, 24 May 2022 05:49:04 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20F4A6D1AB for ; Tue, 24 May 2022 02:49:02 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4L6qBV5BpFzjX79; Tue, 24 May 2022 17:48:02 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 24 May 2022 17:49:00 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 24 May 2022 17:49:00 +0800 Message-ID: Date: Tue, 24 May 2022 17:48:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v3 4/6] mm: ioremap: Add arch_ioremap/iounmap() Content-Language: en-US To: kernel test robot , , , , , CC: , , , , References: <20220519082552.117736-5-wangkefeng.wang@huawei.com> <202205240657.BXxrhbgp-lkp@intel.com> From: Kefeng Wang In-Reply-To: <202205240657.BXxrhbgp-lkp@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/5/24 6:17, kernel test robot wrote: > 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 arnd-asm-generic/master akpm-mm/mm-everything linus/master v5.18 next-20220523] > [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/20220519-161853 > base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core > config: csky-randconfig-s032-20220522 (https://download.01.org/0day-ci/archive/20220524/202205240657.BXxrhbgp-lkp@intel.com/config) > compiler: csky-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/eb83d30756d3b279ca58791d343dc821291818d0 > 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/20220519-161853 > git checkout eb83d30756d3b279ca58791d343dc821291818d0 > # 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=csky SHELL=/bin/bash > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > > sparse warnings: (new ones prefixed by >>) >>> mm/ioremap.c:59:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *addr @@ got void [noderef] __iomem *vaddr @@ > mm/ioremap.c:59:16: sparse: expected void const *addr > mm/ioremap.c:59:16: sparse: got void [noderef] __iomem *vaddr > > vim +59 mm/ioremap.c > > 51 > 52 void iounmap(volatile void __iomem *addr) > 53 { > 54 void __iomem *vaddr = (void __iomem *)((unsigned long)addr & PAGE_MASK); > 55 > 56 if (arch_iounmap(vaddr)) > 57 return; > 58 > > 59 vunmap(vaddr); 1) Will add generic "arch_ioremap/arch_iounmap define" 2) and change this to vunmap((void *)vaddr); >