diff options
author | NeilBrown <neilb@suse.de> | 2010-08-11 16:38:24 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-08-11 16:38:24 -0400 |
commit | d5302fe41ffb28d0a48be6a71becba36d3453ae0 (patch) | |
tree | 02414f0dc4ad18b6a6a096efb69046281248dd2b | |
parent | cc4589ebfae6f8dbb5cf880a0a67eedab3416492 (diff) |
Make lib/raid6/test build correctly.
Some bit-rot needs to be cleaned out.
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | include/linux/raid/pq.h | 2 | ||||
-rw-r--r-- | lib/raid6/algos.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/raid/pq.h b/include/linux/raid/pq.h index 1cbbd2c11aa9..2b59cc824395 100644 --- a/include/linux/raid/pq.h +++ b/include/linux/raid/pq.h | |||
@@ -62,7 +62,9 @@ extern const char raid6_empty_zero_page[PAGE_SIZE]; | |||
62 | #define disable_kernel_altivec() | 62 | #define disable_kernel_altivec() |
63 | 63 | ||
64 | #define EXPORT_SYMBOL(sym) | 64 | #define EXPORT_SYMBOL(sym) |
65 | #define EXPORT_SYMBOL_GPL(sym) | ||
65 | #define MODULE_LICENSE(licence) | 66 | #define MODULE_LICENSE(licence) |
67 | #define MODULE_DESCRIPTION(desc) | ||
66 | #define subsys_initcall(x) | 68 | #define subsys_initcall(x) |
67 | #define module_exit(x) | 69 | #define module_exit(x) |
68 | #endif /* __KERNEL__ */ | 70 | #endif /* __KERNEL__ */ |
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c index 1f8784bfd44d..df7ff72777b8 100644 --- a/lib/raid6/algos.c +++ b/lib/raid6/algos.c | |||
@@ -17,11 +17,11 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/raid/pq.h> | 19 | #include <linux/raid/pq.h> |
20 | #include <linux/gfp.h> | ||
21 | #ifndef __KERNEL__ | 20 | #ifndef __KERNEL__ |
22 | #include <sys/mman.h> | 21 | #include <sys/mman.h> |
23 | #include <stdio.h> | 22 | #include <stdio.h> |
24 | #else | 23 | #else |
24 | #include <linux/gfp.h> | ||
25 | #if !RAID6_USE_EMPTY_ZERO_PAGE | 25 | #if !RAID6_USE_EMPTY_ZERO_PAGE |
26 | /* In .bss so it's zeroed */ | 26 | /* In .bss so it's zeroed */ |
27 | const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(256))); | 27 | const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(256))); |