lkml.org 
[lkml]   [2006]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/
\
 
 \ /
  Last update: 2006-03-02 09:44    [W:0.059 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site