Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932638AbeAHVBa (ORCPT + 1 other); Mon, 8 Jan 2018 16:01:30 -0500 Received: from ozlabs.org ([103.22.144.67]:38183 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932287AbeAHVB3 (ORCPT ); Mon, 8 Jan 2018 16:01:29 -0500 Date: Tue, 9 Jan 2018 08:01:23 +1100 From: Paul Mackerras To: Peter Zijlstra Cc: Michael Ellerman , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, npiggin@gmail.com, anton@samba.org, mikey@neuling.org, oohall@gmail.com Subject: Re: [PATCH 03/11] powerpc/64s: Simple RFI macro conversions Message-ID: <20180108210123.GA9895@fergus.ozlabs.ibm.com> References: <20180108165453.26066-1-mpe@ellerman.id.au> <20180108165453.26066-3-mpe@ellerman.id.au> <20180108170951.GB6176@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180108170951.GB6176@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 08, 2018 at 06:09:51PM +0100, Peter Zijlstra wrote: > On Tue, Jan 09, 2018 at 03:54:45AM +1100, Michael Ellerman wrote: > > diff --git a/arch/powerpc/kvm/book3s_rmhandlers.S b/arch/powerpc/kvm/book3s_rmhandlers.S > > index 42a4b237df5f..34a5adeff084 100644 > > --- a/arch/powerpc/kvm/book3s_rmhandlers.S > > +++ b/arch/powerpc/kvm/book3s_rmhandlers.S > > @@ -46,6 +46,9 @@ > > > > #define FUNC(name) name > > > > +#define RFI_TO_KERNEL RFI > > +#define RFI_TO_GUEST RFI > > + > > .macro INTERRUPT_TRAMPOLINE intno > > > > .global kvmppc_trampoline_\intno > > Leftovers? The previous patch seems to define all that in common > headers, why redefine here again? Not leftovers - this is for the sake of 32-bit compiles. There is code in this file and in book3s_segment.S which gets used both for 32-bit and 64-bit kernels, and this is supplying a definition on 32-bit platforms. Without this, 32-bit builds that have PR KVM configured will fail. Paul.