Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1160406pxu; Fri, 27 Nov 2020 00:50:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxpTIZr0MvPUVLr+FGKce8f2Kn+kt91WnH+ccNscl9lzs2/KS54DEoW/jzBEWYC86TwSZB X-Received: by 2002:a17:906:a182:: with SMTP id s2mr6386527ejy.249.1606467010855; Fri, 27 Nov 2020 00:50:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606467010; cv=none; d=google.com; s=arc-20160816; b=Qill51+hVwop9F9CGMSCU2XAO+BtT/+k5M9mXvi1mwLIuyU3aTJqXWxc5qXuIVHlm1 1txQJ9JolW6tqTeS0IwK8VhQzFkfBgAbp6cnvV6IdPqRf3WR4JRPozCudVYKvkb0rL3C KDFWNBynFUkfALTi2UndWiPbZfdBEvs0BBgiX7tB8SSCjdVgBzPDteR4g+1JA/9aZRHM rQdLicPyWLsPl7va6sbT5Ln4WgocL/7WLk+g8Pb30zYhCLrLPoDXY920aDHJKEMhBSm9 uk2NssTUmLlMYUR4KuDzxZELi4b8KizGIG1XG+W9yWLTDf1i+VjKdzQxsgr21w726fmZ 2lZA== 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=w8vnzPmIF9GP6qq9n7qD+b4xYK8LSksy/BEZVgo8LGA=; b=pyCamYoTcC69asGGdl6ORG6p+GKaSG+ng3xX3aTxOI4FjCxFKPRo27z68HkIVlX6AW KRT9zJmMpVovkcQZE44FCvFqNqmM0Gh0iVgjcxSHlPC9Ik2tM0DBeZdKUkLnZSJFXWs1 fUjOlMNyGKrjqdgGaX0bcjg0LKZoyicXQlcNKpcJpd2Sm1pFHvo04HgcsAOX+qC7VprU DT4y/dw7+WfACk4pV1cfdvPYZoOLMLp1gxMCgG6+K8GhytukBSXCafbHyp0OpZrGWn8e /a+8TxiyZkaniSm1xWaGj0rDhBiuTJTm6gqt9iDYG8HTWOWxeu+lHs6723D8PqjxEO5Q bQ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lCtGEG1J; 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 rn17si5425493ejb.292.2020.11.27.00.49.48; Fri, 27 Nov 2020 00:50:10 -0800 (PST) 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=lCtGEG1J; 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 S2392160AbgK0B4L (ORCPT + 99 others); Thu, 26 Nov 2020 20:56:11 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:38561 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2392146AbgK0B4K (ORCPT ); Thu, 26 Nov 2020 20:56:10 -0500 X-UUID: 0f62a53ab5004a49a1ee2d9318ed2892-20201127 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=w8vnzPmIF9GP6qq9n7qD+b4xYK8LSksy/BEZVgo8LGA=; b=lCtGEG1J6mQZdDPK9dH8MNUW8ZsiUsM+7eiY+F5nK91J/n0Wcwm+hEtdzLHW/DycWaIvbIZTAqhNX93MZWo/jQ8Sqg5YiHJ7YiXO4NyNU5NFvzr7LX9qeqZCwRu2uVQCmlnt/itC32z7hvJCZiBvJk2mELlmxaUH9Y4MV0kSb88=; X-UUID: 0f62a53ab5004a49a1ee2d9318ed2892-20201127 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 194068124; Fri, 27 Nov 2020 09:55:59 +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; Fri, 27 Nov 2020 09:55:28 +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; Fri, 27 Nov 2020 09:55:30 +0800 Message-ID: <1606442130.8845.2.camel@mtkswgap22> Subject: Re: [RESEND PATCH v1] proc: use untagged_addr() for pagemap_read addresses From: Miles Chen To: "Eric W. Biederman" CC: Alexey Dobriyan , Andrew Morton , , , , Date: Fri, 27 Nov 2020 09:55:30 +0800 In-Reply-To: <87lfeqsizr.fsf@x220.int.ebiederm.org> References: <20201123063835.18981-1-miles.chen@mediatek.com> <87lfeqsizr.fsf@x220.int.ebiederm.org> 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 T24gVHVlLCAyMDIwLTExLTI0IGF0IDEyOjMyIC0wNjAwLCBFcmljIFcuIEJpZWRlcm1hbiB3cm90 ZToNCj4gTWlsZXMgQ2hlbiA8bWlsZXMuY2hlbkBtZWRpYXRlay5jb20+IHdyaXRlczoNCj4gDQo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