Re: [PATCH] autofs4: fix compilation without CONFIG_COMPAT

From: H. Peter Anvin
Date: Mon Feb 27 2012 - 11:23:28 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/