Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1180261pxv; Fri, 23 Jul 2021 01:41:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdRUu40e0W9B5e4jAtXvqQneSH7bHJlaBDmkQQgx22n+ehLNAQTqrE6eyw6o2v4EOfzdi+ X-Received: by 2002:a05:6638:379c:: with SMTP id w28mr3169789jal.23.1627029701590; Fri, 23 Jul 2021 01:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627029701; cv=none; d=google.com; s=arc-20160816; b=lAp7gCAvJbAuEjUf50C8eddTRTFqfuwJ5PhcrPTa9gUKwng7O8Jesr3J9+fqpP5kEQ TeDnubUPdeRcu7PyZ/w5AawV8qMWEtEU9JG3W9Vf4uZtZ21uEZ57SYOPcUCmB/pJf36m rWT0w2fPKabmb2OaBCw9+XAFWqcazP0+c/yhkc4bpIygbHzhJ/YQ4Xu8u85qX7qW3/Ph 8NWa4A0a+ryWl3Fzq4zi7sfq6viPZocAUPyflBxUu1L+Ge5EgzEhlk8Euos7DLnNCUjK PYs/oKgXdXiI42Yij8WbXwWpveySUn9yXI4hjDPhEVR7hA8fTvjBUZtkgh69hlp8Zz6a 3t+g== 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=6eFxbfXU1aGruy1a6KsbRzQX11yjS2zTUljrzlkeqUU=; b=clKBuRxkLdbR2vroA0eqm15NBF8yYY2BTOW5siUvsKIhn72cFD9q1navHlcFNvxA3J k8MkA+XiSFW4AHskYbgQfxV/CyBzcuAEPlYyuvS0D92xMJbF4sDApKATByluHXHz+oEe DH/8JXMxcJxc+96Rv8PT1JwLGvTeYmYV/E9ghyAnLKFEd16TJLcwZiRwPndDgWN0ndbu LZJPInLKYtCrHUncQSWSXLCxx1DACj1H+Bm6p40NlfY4vwD2zhdChMEb68IjAQRtC1xf qTL1rVPaKk/Snq/AGrrb26ODfIT+KF9ouIu0UiDtKIFTIx3QvPRx1zTiINPfVdUjyD/D BmZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hr79QuZ3; 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 z14si26650876ilu.89.2021.07.23.01.41.30; Fri, 23 Jul 2021 01:41:41 -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=hr79QuZ3; 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 S234591AbhGWH7d (ORCPT + 99 others); Fri, 23 Jul 2021 03:59:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:35594 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234586AbhGWH7d (ORCPT ); Fri, 23 Jul 2021 03:59:33 -0400 X-UUID: 99d6bfe353d04a4ebba226ceb58f3499-20210723 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=6eFxbfXU1aGruy1a6KsbRzQX11yjS2zTUljrzlkeqUU=; b=hr79QuZ31l8PtsKCPcPzv+oHGdsHt3MktK/1aYXM1h48h69CZQE+srWopEqrpXsCDNP7kFKkDmvDtBcD/BXYF9MzhwtiJVU90NHMPqzPg/Ha79sUlv/2uTjrqYtEutODQmvZvcxZxyADoVplg9WSQFMkYuTzXhYnJKPHXlJL2M4=; X-UUID: 99d6bfe353d04a4ebba226ceb58f3499-20210723 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 1807898697; Fri, 23 Jul 2021 16:40:03 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 23 Jul 2021 16:40:02 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 23 Jul 2021 16:40:01 +0800 Message-ID: <1627029602.14347.6.camel@mtkswgap22> Subject: Re: [RESEND PATCH v2] mm/sparse: clarify pgdat_to_phys From: Miles Chen To: David Hildenbrand CC: Andrew Morton , Mike Rapoport , Mark Rutland , , , , Date: Fri, 23 Jul 2021 16:40:02 +0800 In-Reply-To: References: <20210723070137.23321-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 T24gRnJpLCAyMDIxLTA3LTIzIGF0IDA5OjEwICswMjAwLCBEYXZpZCBIaWxkZW5icmFuZCB3cm90 ZToNCj4gT24gMjMuMDcuMjEgMDk6MDEsIE1pbGVzIENoZW4gd3JvdGU6DQo+ID4gQ2xhcmlmeSBw Z2RhdF90b19waHlzKCkgYnkgdGVzdGluZyBpZg0KPiA+IHBnZGF0ID09ICZjb250aWdfcGFnZV9k YXRhIHd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