Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp440323pxu; Thu, 26 Nov 2020 02:39:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLQZEJpaAD0zOkLprTpKOPugPr3LnHzYBpZlwb2EBHMsJXgcom1HlH9jFe44VCF1kj4tgu X-Received: by 2002:a05:6402:31b6:: with SMTP id dj22mr1878464edb.348.1606387180797; Thu, 26 Nov 2020 02:39:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606387180; cv=none; d=google.com; s=arc-20160816; b=FW/DjdCGqPh6tsgei3FmFOQvrYu2HSy6vWKkceTyft+V6DgBr5HvLPpOn9VlYkG+2q 8FbR2ytuCeU9GrhxDBZGR8NtlOT63t4hu0C81dsSX+T3rD3gwgQi8AMakJ40ZXtYy+mh j0gEYY+6H5xBfzUBAmJW6g646F6AMW/5WJapK4kNoVGLzo5N1X/dRZI0oCuRLswgSY2G ZguEAsDFgfJFF1CZoMrXBGZVL1ZLME5GfxesaG4LbfbAezOKsKJxGioq4RUCdvtW3kuJ 2h2Wfm/r8hrkYhBEwPEetbm5b1a8GiRByxUv1qqjDDHEns8pZfth7RfToQNvVK/O3oo1 3GTg== 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=TvfCgI01pTRpVVGjtW+F66wwpBJPrTQJILPgC/5kpgU=; b=tbE1U8xL3igWYMdquB7JkrDFSWP6VbNvE0Ngfq8G9WFe6q+xGSfOwy/lccRB7aQ7AR Kj0TqBn6TQkn40ipHWIMpuQEBlG5roAhurL6JQWuIVjzi3OPSNemNI8fa+lRsj8AlMI5 DNT2SnKaJ9i8naHWmqN3aqQFQN1TBtBxmibE0pjYLB6y4ryeNzScjUVPvN/CYI2P28pa NZbdwIpJjmNT5Jl6U4pjnHivDrobwCs8DGDvacw3iUspc+dFvtjXj9YTLSOw0CYNIDYq 2xi7QnPbHatmX4vJqJfEViv9mXE5SBiNInaDWoA1VtZRvCTEpTSTU/oKnFldspBpMZ8N FKxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=s2XTWUkO; 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 i17si439336ejk.401.2020.11.26.02.39.17; Thu, 26 Nov 2020 02:39:40 -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=s2XTWUkO; 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 S1731367AbgKZHtO (ORCPT + 99 others); Thu, 26 Nov 2020 02:49:14 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:50030 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730206AbgKZHtO (ORCPT ); Thu, 26 Nov 2020 02:49:14 -0500 X-UUID: b1a84e8f7f9d4d01a426ffe35c212c20-20201126 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=TvfCgI01pTRpVVGjtW+F66wwpBJPrTQJILPgC/5kpgU=; b=s2XTWUkO+059dPW/cJpgM0MHAX5kYGqnwlq47Bcdppf7tWgRnBCRGR5OOJwpZNA6A/vwmuo7odeDdF+M/Qq3P8q8YxnD9o1oMV1Led2eGZDNRW+mUI84q4OWm9Slegf3QROQwyJecqFNTQOufsWYiSVH4Mq+l4y6CqxDk73JTrs=; X-UUID: b1a84e8f7f9d4d01a426ffe35c212c20-20201126 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 1648478386; Thu, 26 Nov 2020 15:49:09 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 26 Nov 2020 15:49:06 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 26 Nov 2020 15:49:06 +0800 Message-ID: <1606376946.17565.6.camel@mtkswgap22> Subject: RE: [RESEND PATCH v1] proc: use untagged_addr() for pagemap_read addresses From: Miles Chen To: "Song Bao Hua (Barry Song)" CC: Alexey Dobriyan , Andrew Morton , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "wsd_upstream@mediatek.com" Date: Thu, 26 Nov 2020 15:49:06 +0800 In-Reply-To: <24d32889abb1412abcd4e868a36783f9@hisilicon.com> References: <20201123063835.18981-1-miles.chen@mediatek.com> <24d32889abb1412abcd4e868a36783f9@hisilicon.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 81E83192E13862002142DEB72FECB66C2F007FF6FF26CBB6A2E8207C46CF8A942000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyM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