Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1721781pxj; Wed, 19 May 2021 12:19:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4eKJRRTEDL4C9czlQqdL2U4OWR8ijwoav/upDjt6ocNfqZot9Ib8S/G1mAtdULU9jo27e X-Received: by 2002:a6b:5c18:: with SMTP id z24mr1064863ioh.127.1621451951841; Wed, 19 May 2021 12:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451951; cv=none; d=google.com; s=arc-20160816; b=TM/pbMrs/SRTlQ8gFzzCUqJfYg0153Oy5gIRLSSGwwObz6xd4tMVg+rS0e0XnG/JL3 FsnPk5ZnVnuCXR0Z4P+Vlfzx0Jvs8Z8xgcz3FRKeLw6xCzyz/XLDlX0/xygu/usZ5qaK P+iNmr/rw3p33zSdOumFT+QPah816kRWM93IYDhSgWHK0GtZS91Z2IICakrsOs+vXiPi 2y2IZb0VqUoUw72giF76bTqoIklwwOH/KdvSvWNmRpjo7SSUflX7Bu+0hTAgiVlQuOc3 kw8DERhHY4+MQyNGj3BxLXW8AlU0cSPtcE0OekKUH/hDq79TSV1/jHH+JYAP81+Bgo22 Tlhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=7uTMyP8kzD/uP+FGo4KtbE5DwPBm28qGLTSFWKP3PPE=; b=yXFzEvE26tfStSgcyUUx3Baga7KjOqB1U40v/v5vQ5+eL6VYWxAPR+BaXF4lpACiF3 SW8pQ2oTIYyc6JZYWZ2vNo2CWJCYX2xWg64lWBwAZTGEOodBGyoURV4hBEo9BZwNGRzA oyJNo66xrT4e/1zYMWtjv+WRZTGeVDsDoPKdGorEwr0a5V2jWEPWV9jGbYAOItasdl/W FCt/5VPMWKFBiygNsVCH+bJ9SWf1OeazulU8/THXOOboKzqbxKFm78WA9Uigl/WNeFf4 QPRBKnxn0BJ9W5Tdx3vv6Jq5keG/LgLVSWL1IaDps6C4sgA7PFxp7CpwcnMfHkZ/fwek Le+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PzPHYG0j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si189862jat.35.2021.05.19.12.18.58; Wed, 19 May 2021 12:19:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PzPHYG0j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237941AbhESHUe (ORCPT + 99 others); Wed, 19 May 2021 03:20:34 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53647 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S236024AbhESHUd (ORCPT ); Wed, 19 May 2021 03:20:33 -0400 X-UUID: 8d6442a4730a4f42b1b522fb45af3148-20210519 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=7uTMyP8kzD/uP+FGo4KtbE5DwPBm28qGLTSFWKP3PPE=; b=PzPHYG0jDCF9ib3YsGkdiYRDhMxUclaOqLI6rUzU7n+5tl2v7pzOQmyGpK0Jucb2NroO8vjCkbYndFyIwmrYQI6Y9QvlqBsUov5SX82W9PVw4ZDSoi1Ha3dtUHVJSflBNUsXKv1lyUJX2NCWcJZ+rG0ak6BqNHF0yXuwrCIh5yM=; X-UUID: 8d6442a4730a4f42b1b522fb45af3148-20210519 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1245937702; Wed, 19 May 2021 15:19:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 19 May 2021 15:18:49 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 19 May 2021 15:18:49 +0800 Message-ID: <1621408729.12301.34.camel@mtkswgap22> Subject: Re: [PATCH] mm/sparse: fix check_usemap_section_nr warnings From: Miles Chen To: Mike Rapoport CC: Andrew Morton , , , , , Catalin Marinas , "Will Deacon" , Mark Rutland Date: Wed, 19 May 2021 15:18:49 +0800 In-Reply-To: References: <20210511093114.15123-1-miles.chen@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIxLTA1LTE5IGF0IDA4OjMwICswMzAwLCBNaWtlIFJhcG9wb3J0IHdyb3RlOg0K PiAoYWRkIGFybTY0IHBlb3BsZSkNCj4gDQo+IE9uIFR1ZSwgTWF5IDExLCAyMDIxIGF0IDA1OjMx OjE0UE0gKzA4MDAsIE1pbGVzIENoZW4gd3JvdGU6DQo+ID4gSW4gY3VycmVudCBpbXBsZW1lbnRh dGlvbi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