From: Dave Jones Date: Thu, 2 Mar 2006 04:10:31 +0000 (-0500) Subject: [PATCH] mempolicy.c compile fix, make sure BITS_PER_BYTE is defined X-Git-Tag: v2.6.15.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b74ed9233e914d8b76216168e475a9df62c28ac2;p=thirdparty%2Fkernel%2Fstable.git [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 Signed-off-by: Chris Wright --- diff --git a/include/linux/types.h b/include/linux/types.h index 21b9ce8036442..f5a4572edcdbc 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