/[linux-patches]/genpatches-2.6/trunk/2.6.14/1467_15.6_mempolicy-compile-fix.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1467_15.6_mempolicy-compile-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 7 months ago) by johnm
File MIME type: text/x-diff
File size: 1089 byte(s)
2.6.14-11, rebase against local tree
1 From davej@redhat.com Wed Mar 1 20:21:09 2006
2 Date: Wed, 1 Mar 2006 23:10:31 -0500
3 From: Dave Jones <davej@redhat.com>
4 To: Chris Wright <chrisw@sous-sol.org>
5 Cc: stable@kernel.org
6 Subject: [PATCH] mempolicy.c compile fix, make sure BITS_PER_BYTE is defined
7
8 Gar..
9
10 mm/mempolicy.c: In function 'get_nodes':
11 mm/mempolicy.c:527: error: 'BITS_PER_BYTE' undeclared (first use in this function)
12 mm/mempolicy.c:527: error: (Each undeclared identifier is reported only once
13 mm/mempolicy.c:527: error: for each function it appears in.)
14
15 About to retry a build with the below patch which should do the trick.
16 (How did this *ever* build?)
17
18 Signed-off-by: Dave Jones <davej@redhat.com>
19 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
20 ---
21
22 include/linux/types.h | 1 +
23 1 files changed, 1 insertion(+)
24
25 --- linux-2.6.15.5.orig/include/linux/types.h
26 +++ linux-2.6.15.5/include/linux/types.h
27 @@ -8,6 +8,7 @@
28 (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
29 #define DECLARE_BITMAP(name,bits) \
30 unsigned long name[BITS_TO_LONGS(bits)]
31 +#define BITS_PER_BYTE 8
32 #endif
33
34 #include <linux/posix_types.h>

  ViewVC Help
Powered by ViewVC 1.1.20