]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Compile fix for sys_mbind fix
authorChris Wright <chrisw@sous-sol.org>
Thu, 2 Mar 2006 07:46:23 +0000 (23:46 -0800)
committerChris Wright <chrisw@sous-sol.org>
Thu, 2 Mar 2006 07:46:23 +0000 (23:46 -0800)
queue/compile-fix-make-sure-bits_per_byte-is-defined.patch [new file with mode: 0644]
queue/series

diff --git a/queue/compile-fix-make-sure-bits_per_byte-is-defined.patch b/queue/compile-fix-make-sure-bits_per_byte-is-defined.patch
new file mode 100644 (file)
index 0000000..40a024c
--- /dev/null
@@ -0,0 +1,34 @@
+From davej@redhat.com  Wed Mar  1 20:21:09 2006
+Date: Wed, 1 Mar 2006 23:10:31 -0500
+From: Dave Jones <davej@redhat.com>
+To: Chris Wright <chrisw@sous-sol.org>
+Cc: stable@kernel.org
+Subject: [PATCH] compile fix, make sure BITS_PER_BYTE is defined
+
+Gar..
+
+mm/mempolicy.c: In function 'get_nodes':
+mm/mempolicy.c:527: error: 'BITS_PER_BYTE' undeclared (first use in this function)
+mm/mempolicy.c:527: error: (Each undeclared identifier is reported only once
+mm/mempolicy.c:527: error: for each function it appears in.)
+
+About to retry a build with the below patch which should do the trick.
+(How did this *ever* build?)
+
+Signed-off-by: Dave Jones <davej@redhat.com>
+Signed-off-by: Chris Wright <chrisw@sous-sol.org>
+---
+
+ include/linux/types.h |    1 +
+ 1 files changed, 1 insertion(+)
+
+--- linux-2.6.15.5.orig/include/linux/types.h
++++ linux-2.6.15.5/include/linux/types.h
+@@ -8,6 +8,7 @@
+       (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
+ #define DECLARE_BITMAP(name,bits) \
+       unsigned long name[BITS_TO_LONGS(bits)]
++#define BITS_PER_BYTE 8
+ #endif
+ #include <linux/posix_types.h>
index 0eb201ecf1ce229229612b118cac50f0dbdbd5b6..ef17d556d875bf053ce9ab087b27d6d2a68b43a1 100644 (file)
@@ -1,3 +1,4 @@
 don-t-reset-rskq_defer_accept-in-reqsk_queue_alloc.patch
 die_if_kernel-can-return.patch
 normal-user-can-panic-nfs-client-with-direct-i-o-fix.patch
+compile-fix-make-sure-bits_per_byte-is-defined.patch