[PATCH] s390 need definitions for pagefault_disable and pagefault_enable

From: Andy Whitcroft
Date: Mon Nov 06 2006 - 13:35:58 EST


s390: need definitions for pagefault_disable and pagefault_enable

Seems that when the changes for user futex's went into 2.6.19-rc4-mm2
s390 was missed. Leading to the following compile failure:

arch/s390/lib/lib.a(uaccess_std.o)(.text+0x37c): In function
`futex_atomic_op':
: undefined reference to `pagefault_disable'
arch/s390/lib/lib.a(uaccess_std.o)(.text+0x3cc): In function
`futex_atomic_op':
: undefined reference to `pagefault_enable'
[...]

This seems to be enough to get testing working again.

Signed-off-by: Andy Whitcroft <apw@xxxxxxxxxxxx>
---
diff --git a/arch/s390/lib/uaccess_std.c b/arch/s390/lib/uaccess_std.c
index 9bbeaa0..ad296dc 100644
--- a/arch/s390/lib/uaccess_std.c
+++ b/arch/s390/lib/uaccess_std.c
@@ -11,6 +11,8 @@

#include <linux/errno.h>
#include <linux/mm.h>
+#include <linux/uaccess.h>
+
#include <asm/uaccess.h>
#include <asm/futex.h>

-
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/