Messages in this thread Patch in this message | | | Date | Thu, 2 Mar 2006 00:41:40 -0800 | From | "Anush Elangovan" <> | Subject | [PATCH] Define BITS_PER_BYTE to fix compilation error in 2.6.15.5 |
| |
Looks like mm/mempolicy.c requires BITS_PER_BYTE, which is not defined in 2.6.15.5. Patch below fixes the issue. 2.6.16rc5 seems to have the #define
Signed-off-by: Anush Elangovan (anush.e@gmail.com)
diff -rup linux-2.6.15.5/include/linux/types.h linux-2.6.15.5_fix/include/linux/types.h --- linux-2.6.15.5/include/linux/types.h 2006-03-01 14:37:27.000000000 -0800 +++ linux-2.6.15.5_fix/include/linux/types.h 2006-03-01 23:39:43.000000000 -0800 @@ -8,6 +8,8 @@ (((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> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |