diff options
author | NeilBrown <neilb@suse.de> | 2010-08-12 00:38:24 +0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-08-12 00:38:24 +0400 |
commit | d5302fe41ffb28d0a48be6a71becba36d3453ae0 (patch) | |
tree | 02414f0dc4ad18b6a6a096efb69046281248dd2b | |
parent | cc4589ebfae6f8dbb5cf880a0a67eedab3416492 (diff) | |
download | linux-d5302fe41ffb28d0a48be6a71becba36d3453ae0.tar.xz |
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]; #define disable_kernel_altivec() #define EXPORT_SYMBOL(sym) +#define EXPORT_SYMBOL_GPL(sym) #define MODULE_LICENSE(licence) +#define MODULE_DESCRIPTION(desc) #define subsys_initcall(x) #define module_exit(x) #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 @@ */ #include <linux/raid/pq.h> -#include <linux/gfp.h> #ifndef __KERNEL__ #include <sys/mman.h> #include <stdio.h> #else +#include <linux/gfp.h> #if !RAID6_USE_EMPTY_ZERO_PAGE /* In .bss so it's zeroed */ const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(256))); |