aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-03-01 23:10:31 -0500
committerChris Wright <chrisw@sous-sol.org>2006-03-05 11:07:18 -0800
commitb74ed9233e914d8b76216168e475a9df62c28ac2 (patch)
tree187ad3413bad4b256c409f289bceff766081545a
parent166f00bf649517bb377b23e668b3fd52497f63d0 (diff)
[PATCH] mempolicy.c 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>
-rw-r--r--include/linux/types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index 21b9ce80364..f5a4572edcd 100644
--- a/include/linux/types.h
+++ b/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>