Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216Ab2B0HaI (ORCPT ); Mon, 27 Feb 2012 02:30:08 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:54622 "EHLO e06smtp11.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750961Ab2B0HaD (ORCPT ); Mon, 27 Feb 2012 02:30:03 -0500 Message-ID: <4F4B30D5.6050305@de.ibm.com> Date: Mon, 27 Feb 2012 08:29:25 +0100 From: Christian Borntraeger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Lightning/1.0b2 Thunderbird/3.1.16 MIME-Version: 1.0 To: Linus Torvalds CC: Andreas Schwab , Ian Kent , David Miller , linux-kernel@vger.kernel.org, "H. Peter Anvin" , autofs@vger.kernel.org, Thomas Meyer , Al Viro , Heiko Carstens , Martin Schwidefsky Subject: Re: [PATCH] autofs4: fix compilation without CONFIG_COMPAT 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit x-cbid: 12022707-5024-0000-0000-000001CEE881 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1089 Lines: 43 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. This macro then destroys the definition of the function making static inline int is_compat_task(void) { return 0; } into static inline int 0 { return 0; } e.g. In file included from arch/s390/mm/fault.c:39:0: /home/autobuild/BUILD/linux-3.3.0-rc5.00060.g203738e.49.x.20120227/arch/s390/include/asm/compat.h:177:38: error: macro "is_compat_task" passed 1 arguments, but takes just 0 /home/autobuild/BUILD/linux-3.3.0-rc5.00060.g203738e.49.x.20120227/arch/s390/include/asm/compat.h:178:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token CC arch/s390/kernel/time.o Christian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/