Received: by 10.192.165.148 with SMTP id m20csp4506272imm; Tue, 8 May 2018 09:28:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq0g19kgJkzT3RPlePXXoqRCWQyRLjecmNtGAF4ypKitLFrs/3zUCyPoWtDr+WE4xpYOOUo X-Received: by 2002:a17:902:70c4:: with SMTP id l4-v6mr39664567plt.174.1525796939861; Tue, 08 May 2018 09:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525796939; cv=none; d=google.com; s=arc-20160816; b=bjS9vUV8HYMw40g2Xt5QLcxeJlOrpUus8r65eyLqAGKzPTxAyV32p+TJnXsPaLbhEm 4ymWW58GMHG7oq5EWWebEgoqQDy5tzJsWVYpzeKcJmYYG9bE6yDDzP9DBUd8Py7tLmNl Bj8+ayxz+I0gt/dE3LoCfTwStRSKOFkA1JM0WY7gqNxZWaky90ZSQ6o+Ue5CGD0ZPFeo N+7xtfNI6LTqBSP2cl/JKdYPnIfi2zHOBdgDzttm3bY8+6Reg39miVvEZH5XoxFKb/VW s7FPOx+Vm41t20iTKvSUlcZMD8ydyCRjOdrn39dQxHgfaKS0yJfjqqEWPPfZ3fxnFt9h cxDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=MBAU6RJilXOpJhUHP5SqsK4sRLCoZfLfjAXKvtdlQ5Q=; b=yi1bqD9yL6t0hkHBQ0lWDMdBctoGt6b651ckdIsRJDA3CSIPCTwc7/bb1u+0hbjHyo PPMPmy3zqhNeMce9s9dsxM9h590CNYPCuBqPRsFqJXfsnrMU/kFtIVk7/fDsVa9ubPNV Bo5qaVFl3f4lQ06o+gpscke7PlFmphN81bC0wD3PynrNQ89jEPBUicaMuuEMmlYBIaAk aFBq2rfMmZejApzr+lBQyc6NcOOhchJdPmFSi4kfK8oOOy7879g4fOWW6VpPeUiDkyjd yPZnqgkFriVJPPpL8EtmgOqM8ZL1VTDhz/+9ze5ZpRSg8KI/8DbLoVQynK3Hc3AiUGBz FFNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f75si25933845pfh.90.2018.05.08.09.28.44; Tue, 08 May 2018 09:28:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755474AbeEHQ11 (ORCPT + 99 others); Tue, 8 May 2018 12:27:27 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51160 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755349AbeEHQ10 (ORCPT ); Tue, 8 May 2018 12:27:26 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w48GOuAM007284 for ; Tue, 8 May 2018 12:27:26 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hud1gr5eh-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 08 May 2018 12:27:25 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 8 May 2018 17:27:23 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 8 May 2018 17:27:20 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w48GRJWK54394998; Tue, 8 May 2018 16:27:19 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CFEB54C052; Tue, 8 May 2018 17:19:20 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 590A34C04A; Tue, 8 May 2018 17:19:19 +0100 (BST) Received: from ram.oc3035372033.ibm.com (unknown [9.85.137.7]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 8 May 2018 17:19:19 +0100 (BST) Date: Tue, 8 May 2018 09:27:15 -0700 From: Ram Pai To: Michael Ellerman Cc: mingo@redhat.com, linuxppc-dev@ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com Subject: Re: [PATCH 4/8] mm/pkeys, powerpc, x86: Provide an empty vma_pkey() in linux/pkeys.h Reply-To: Ram Pai References: <20180508145948.9492-1-mpe@ellerman.id.au> <20180508145948.9492-5-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508145948.9492-5-mpe@ellerman.id.au> User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-GCONF: 00 x-cbid: 18050816-0008-0000-0000-000004F47248 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050816-0009-0000-0000-00001E88B4F6 Message-Id: <20180508162715.GB5474@ram.oc3035372033.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-08_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805080158 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 12:59:44AM +1000, Michael Ellerman wrote: > Consolidate the pkey handling by providing a common empty definition > of vma_pkey() in pkeys.h when CONFIG_ARCH_HAS_PKEYS=n. > > This also removes another entanglement of pkeys.h and > asm/mmu_context.h. > Reviewed-by: Ram Pai > Signed-off-by: Michael Ellerman > --- > arch/powerpc/include/asm/mmu_context.h | 5 ----- > arch/x86/include/asm/mmu_context.h | 5 ----- > include/linux/pkeys.h | 5 +++++ > 3 files changed, 5 insertions(+), 10 deletions(-) RP