From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH] autofs4: fix compilation without CONFIG_COMPAT Date: Mon, 27 Feb 2012 08:22:42 -0800 Message-ID: <4F4BADD2.5020908@zytor.com> References: <20120221.221609.218135609185671883.davem@davemloft.net> <1329889428.2193.45.camel@perseus.themaw.net> <1329890027.2193.48.camel@perseus.themaw.net> <1329890251.2193.50.camel@perseus.themaw.net> <4F4B30D5.6050305@de.ibm.com> <20120227090951.GA2681@osiris.boeblingen.de.ibm.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120227090951.GA2681@osiris.boeblingen.de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Heiko Carstens Cc: Christian Borntraeger , Linus Torvalds , Andreas Schwab , Ian Kent , David Miller , linux-kernel@vger.kernel.org, autofs@vger.kernel.org, Thomas Meyer , Al Viro , Martin Schwidefsky On 02/27/2012 01:09 AM, Heiko Carstens wrote: > On Mon, Feb 27, 2012 at 08:29:25AM +0100, Christian Borntraeger wrote: >> On 26/02/12 02:31, Linus Torvalds wrote: >>> >>> +#else >>> + >>> +#define is_compat_task() (0) >>> + >> >> Linus, >> >> this breaks 32bit builds of s390 (and maybe others), since several platforms already >> define a is_compat_task. > > It breaks only !COMPAT builds on s390, since only we have the is_compat_task() > function defined for !COMPAT. The reason for that was simply to get rid of a > couple of ugly #ifdefs. > Note, that we still need to include asm/compat.h in some file since we need the > compat_ptr typedef. > That might be ugly, but I preferred including that header file so we could get > rid of the #ifdefs. > Anyway... the patch below fixes the build issues: > This patch would seem to be The Right Thing; the combination of this really takes what s390 has done in arch space and globalizes it. -hpa