]> git.hungrycats.org Git - linux/commitdiff
[PATCH] mempolicy.c compile fix, make sure BITS_PER_BYTE is defined
authorDave Jones <davej@redhat.com>
Thu, 2 Mar 2006 04:10:31 +0000 (23:10 -0500)
committerChris Wright <chrisw@sous-sol.org>
Sun, 5 Mar 2006 19:07:18 +0000 (11:07 -0800)
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

index 21b9ce80364429abd04e9ef718834d0a6427eb15..f5a4572edcdbcb05402e28cf795535590d844641 100644 (file)
@@ -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>