From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752147AbeBZH1H (ORCPT ); Mon, 26 Feb 2018 02:27:07 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:42474 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752053AbeBZH1E (ORCPT ); Mon, 26 Feb 2018 02:27:04 -0500 Date: Sun, 25 Feb 2018 23:26:45 -0800 From: Ram Pai To: "Aneesh Kumar K.V" Cc: kbuild test robot , kbuild-all@01.org, mpe@ellerman.id.au, mingo@redhat.com, akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, corbet@lwn.net, arnd@arndb.de, fweimer@redhat.com, msuchanek@suse.com Subject: Re: [PATCH v12 1/3] mm, powerpc, x86: define VM_PKEY_BITx bits if CONFIG_ARCH_HAS_PKEYS is enabled Reply-To: Ram Pai References: <1519257138-23797-2-git-send-email-linuxram@us.ibm.com> <201802231528.snWZIspR%fengguang.wu@intel.com> <20180224010511.GK5559@ram.oc3035372033.ibm.com> <43082fe4-a6e4-2468-0069-4fbc53418c79@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43082fe4-a6e4-2468-0069-4fbc53418c79@linux.vnet.ibm.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-GCONF: 00 x-cbid: 18022607-0008-0000-0000-000004D472B8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022607-0009-0000-0000-00001E678B7D Message-Id: <20180226072645.GA1060@ram.oc3035372033.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-26_02:,, 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-1802260101 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 25, 2018 at 05:27:11PM +0530, Aneesh Kumar K.V wrote: > > > On 02/24/2018 06:35 AM, Ram Pai wrote: > >On Fri, Feb 23, 2018 at 03:11:45PM +0800, kbuild test robot wrote: > >>Hi Ram, > >> > >>Thank you for the patch! Yet something to improve: > >> > >>[auto build test ERROR on linus/master] > >>[also build test ERROR on v4.16-rc2 next-20180222] > >>[if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > >> > >> chmod +x ~/bin/make.cross > >...snip.. > >> # save the attached .config to linux build tree > >> make.cross ARCH=powerpc > >> > >>Note: the linux-review/Ram-Pai/mm-x86-powerpc-Enhancements-to-Memory-Protection-Keys/20180223-042743 HEAD c5692bca45543c242ffca15c811923e4c548ed19 builds fine. > >> It only hurts bisectibility. > > > >oops, it broke git-bisect on powerpc :-( > >The following change will fix it. This should nail it down. > > > >diff --git a/arch/powerpc/include/asm/pkeys.h > >b/arch/powerpc/include/asm/pkeys.h > >index 0409c80..0b3b669 100644 > >--- a/arch/powerpc/include/asm/pkeys.h > >+++ b/arch/powerpc/include/asm/pkeys.h > >@@ -25,6 +25,7 @@ > > # 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 > > > > Why don't you remove this powerpc definition completely in this > patch? That was my thought too, but refrained from sneaking in the changes into the patch, to maintain the integrity of all the reviewed-by. Was planning on sending a seperate patch to remove the powerpc definition entirely. RP