Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3650040pxv; Mon, 5 Jul 2021 02:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBYHE4oW+xEpXQfcoYxXPnGRbyOF3VD7BiQbbKe8R0YPwpeXeCSNqLYsT0bPR1kCMbNNFw X-Received: by 2002:a17:906:d553:: with SMTP id cr19mr10625515ejc.233.1625477304647; Mon, 05 Jul 2021 02:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625477304; cv=none; d=google.com; s=arc-20160816; b=lJwMJIl/ogNIHF5PAS1F6cnKcDXg1KiBfgT4VApKeltABDA8VP0nFYJb3ZxsJMVOnw T3oIcDARtUGtyA8PCr2O2w+EJvpGrkM842SMpOlaNw+sGCoKswyfGoNS58YMc4bfFs4o OE15wTYqb48Vbx+JScqW2is6+/U5t1BZjDOIkEttC4oWTl2JJdyY7TxR4ABuRIRYTjOm tC9XV2DGj332EbO3bQQbZzK7MaGcMBN5+MRw32v8v1o6WL5FDIidRrjiagHPbdJDy5zx aGx9X54zxhKEg94we9AvxW9D7Uk/WdikzLMSz10HAfQ7zvOmt61REFCdwqWZaMa7Bq3m /3Yg== 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=dV2vuesOizqkAALaltoauNH3MR2oZFb5XVp6WIEb1T8=; b=ULTx8/3nuMQis0BtwLUpji6d4Mo04Ai/5u8qd1aGkc/gPFOtDoDxpRBC3LR1PGW3fT sWsFLGSIL1MPDfTN6cc69+MX9T0tgIPHF1iySiHsmVDU/HvxjZX1oL9gKYSCsdtwPbc1 mkFGPIwx/pXDSfVa1e1q2LFnueNwOeS2Vm1Fphns4frF3ahMHnV7jKkAbefPuki/hx4Q DFXBVJBaHB+h/Pwnw2EbTh7oMP0zU4Dlr5fFZfYkGlAGp3e+vdtd5jLg6lpD19Rj/j0Z lScow6vBRmgF3vQkh1P8Ix78xYJeUFqhJ9PVUoOVT/uEqBm7osp7KYjE5sqrlaWvCvai 392A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="J/sFiNrM"; 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 g20si12814472ejm.455.2021.07.05.02.28.00; Mon, 05 Jul 2021 02:28:24 -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="J/sFiNrM"; 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 S230327AbhGEJ1W (ORCPT + 99 others); Mon, 5 Jul 2021 05:27:22 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53537 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230149AbhGEJ1V (ORCPT ); Mon, 5 Jul 2021 05:27:21 -0400 X-UUID: 53d9613721654e0f9ba8796b85c37edf-20210705 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=dV2vuesOizqkAALaltoauNH3MR2oZFb5XVp6WIEb1T8=; b=J/sFiNrMNP88Q7E7MLAaDcE0P5jADYaIOXFeUdieVC4nbKqr924Y+9Kvw+GwqDKtpuH7HRzKCN5TFm/1Ox8QXNXpMJ1xUqtY/eWuCeazVxZAu7n3wjL6D1Py476eb6TISxYnV9BERAq8QeIZLC9k2td3snWQ9GqvnwdswCJSRbU=; X-UUID: 53d9613721654e0f9ba8796b85c37edf-20210705 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1395625169; Mon, 05 Jul 2021 17:24:43 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 5 Jul 2021 17:24:41 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 5 Jul 2021 17:24:41 +0800 Message-ID: <1625477081.856.5.camel@mtkswgap22> Subject: Re: [PATCH] mm/sparse: clarify pgdat_to_phys From: Miles Chen To: Mike Rapoport CC: Andrew Morton , Mark Rutland , , , , Date: Mon, 5 Jul 2021 17:24:41 +0800 In-Reply-To: References: <20210630092309.17654-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 T24gRnJpLCAyMDIxLTA3LTAyIGF0IDE2OjExICswMzAwLCBNaWtlIFJhcG9wb3J0IHdyb3RlOg0K PiBPbiBXZWQsIEp1biAzMCwgMjAyMSBhdCAwNToyMzowOVBNICswODAwLCBNaWxlcyBDaGVuIHdy b3RlOg0KPiA+IGNsYXJpZnkgcGdkYXRfdG9fcGh5cygpIGJ5IHdyYXBwaW5nIHBnZGF0X3RvX3Bo eXMNCj4gPiB3aXRoIENPTkZJ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