* [PATCH] Define BITS_PER_BYTE to fix compilation error in 2.6.15.5
@ 2006-03-02 8:41 Anush Elangovan
0 siblings, 0 replies; 2+ messages in thread
From: Anush Elangovan @ 2006-03-02 8:41 UTC (permalink / raw)
To: linux-kernel; +Cc: chrisw, gregkh
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Define BITS_PER_BYTE to fix compilation error in 2.6.15.5
[not found] <425BE87409B6BA49954C7D375C69F9ED025071B6@ms09.mse4.exchange.ms>
@ 2006-03-02 18:20 ` Chris Wright
0 siblings, 0 replies; 2+ messages in thread
From: Chris Wright @ 2006-03-02 18:20 UTC (permalink / raw)
To: Elangovan, Anush; +Cc: linux-kernel, chrisw, gregkh
* Elangovan, Anush (anush@fireeye.com) wrote:
>
> 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
Yes, thanks, similar patch is queued.
-chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-02 18:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-02 8:41 [PATCH] Define BITS_PER_BYTE to fix compilation error in 2.6.15.5 Anush Elangovan
[not found] <425BE87409B6BA49954C7D375C69F9ED025071B6@ms09.mse4.exchange.ms>
2006-03-02 18:20 ` Chris Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®