Received: by 10.192.165.148 with SMTP id m20csp1604468imm; Thu, 10 May 2018 13:25:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpxsjUXRNfED6zQ1/EQKnuXuSjt0/0wqIE8HFAoYPjy8XRq68g7XX2S/nlt3ebUZ+Fr7N1v X-Received: by 2002:a62:859a:: with SMTP id m26-v6mr2656356pfk.247.1525983915415; Thu, 10 May 2018 13:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525983915; cv=none; d=google.com; s=arc-20160816; b=Rv63hfcF6r9UIWgS9LJH3FWS+zlaaJOS3dMHZuo9NbS9Kv3IJEmWlvVtHoQ9CBBvTn i/Pz/9zoOwLvqkbVjtTAxqBWE2PzF+2ByGNA2B/eRbh/rM1R0NJlqyd1uIGsW4SUkIJu xeOEh3hfgxLIppg51OYsYs5cNy7eh36eDTQA3Gn4FQdHn4cC2jmhT6qKJeJO8NCp9k8O g91OFqZVOF4XLS2o5ofJ7CN2i8Ye0FiZicVsqIPwnWIW6Yyly52ckvp7hj5POyb0TMuF gCCnUWuxxI8E3dcQcuk4mbO487ys0YO+o+TY6ndpgeAU94TUgXkoShE6G3uLYuyoi29o CyBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:message-id:user-agent:in-reply-to :mime-version:references:reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Z4aMKqt/1XTuMfmSZqehl4FpFLF/vGRHIqgCqEOvb2I=; b=V765/+wglBlZ1WWcfORV8iP4QiTLwjpvr8kyXAkrqJR4YCB82YYMPhHOnIe3Qh1Rty ff3HkiI2T9fTzCowWC4ZKT/ncX5nDavFK8bZLOgR+XC4bats+cYMNLmojLjp3TV8t6aE IPJCBF60Yz5EPcEBKb2TaNsysDfju9VmXZ743WxrbtzZnCkBIAsrRQlNbnrLpJXhbwC+ SIFaFff7FgQIHBHf0hkzad7MLOs/8VcI0f1X2k8BX4lvUoctNqm5LzEbIRx0yC6s+Tvr mje+RXfpCjDOC9Ao0Bo4zkbEQHYwnVQehSCnIPaVDU/58wz0brM6aV/mPCEXLH+yuaJq SOmw== 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 p15-v6si1194175pgc.463.2018.05.10.13.25.00; Thu, 10 May 2018 13:25:15 -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 S1752137AbeEJUYs (ORCPT + 99 others); Thu, 10 May 2018 16:24:48 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35286 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751438AbeEJUYr (ORCPT ); Thu, 10 May 2018 16:24:47 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4AKOBKm050502 for ; Thu, 10 May 2018 16:24:46 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hvvauj04p-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 May 2018 16:24:46 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 May 2018 21:24:45 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 10 May 2018 21:24:41 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4AKOfOk4653544; Thu, 10 May 2018 20:24:41 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A2BADA4040; Thu, 10 May 2018 21:16:18 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 240F4A404D; Thu, 10 May 2018 21:16:17 +0100 (BST) Received: from ram.oc3035372033.ibm.com (unknown [9.85.204.29]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 10 May 2018 21:16:16 +0100 (BST) Date: Thu, 10 May 2018 13:24:36 -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 9/8] powerpc/pkeys: Drop private VM_PKEY definitions Reply-To: Ram Pai References: <20180508145948.9492-9-mpe@ellerman.id.au> <20180510135422.6585-1-mpe@ellerman.id.au> MIME-Version: 1.0 In-Reply-To: <20180510135422.6585-1-mpe@ellerman.id.au> User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-GCONF: 00 x-cbid: 18051020-0040-0000-0000-0000043852CF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051020-0041-0000-0000-0000263C98A5 Message-Id: <20180510202435.GB6257@ram.oc3035372033.ibm.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-10_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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805100188 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Agree. Was going to send that the moment the other patches landed upstream. Glad I dont have to do it :-) Reviewed-by: Ram Pai On Thu, May 10, 2018 at 11:54:22PM +1000, Michael Ellerman wrote: > Now that we've updated the generic headers to support 5 PKEY bits for > powerpc we don't need our own #defines in arch code. > > Signed-off-by: Michael Ellerman > --- > arch/powerpc/include/asm/pkeys.h | 15 --------------- > 1 file changed, 15 deletions(-) > > One additional patch to finish cleaning things up. > > I've added this to my branch. > > cheers > > diff --git a/arch/powerpc/include/asm/pkeys.h b/arch/powerpc/include/asm/pkeys.h > index 18ef59a9886d..5ba80cffb505 100644 > --- a/arch/powerpc/include/asm/pkeys.h > +++ b/arch/powerpc/include/asm/pkeys.h > @@ -15,21 +15,6 @@ DECLARE_STATIC_KEY_TRUE(pkey_disabled); > extern int pkeys_total; /* total pkeys as per device tree */ > extern u32 initial_allocation_mask; /* bits set for reserved keys */ > > -/* > - * Define these here temporarily so we're not dependent on patching linux/mm.h. > - * Once it's updated we can drop these. > - */ > -#ifndef VM_PKEY_BIT0 > -# define VM_PKEY_SHIFT VM_HIGH_ARCH_BIT_0 > -# define VM_PKEY_BIT0 VM_HIGH_ARCH_0 > -# define VM_PKEY_BIT1 VM_HIGH_ARCH_1 > -# define VM_PKEY_BIT2 VM_HIGH_ARCH_2 > -# define VM_PKEY_BIT3 VM_HIGH_ARCH_3 > -# define VM_PKEY_BIT4 VM_HIGH_ARCH_4 > -#elif !defined(VM_PKEY_BIT4) > -# define VM_PKEY_BIT4 VM_HIGH_ARCH_4 > -#endif > - > #define ARCH_VM_PKEY_FLAGS (VM_PKEY_BIT0 | VM_PKEY_BIT1 | VM_PKEY_BIT2 | \ > VM_PKEY_BIT3 | VM_PKEY_BIT4) > > -- > 2.14.1 -- Ram Pai