Make lib/raid6/test build correctly.
NeilBrown [Wed, 11 Aug 2010 20:38:24 +0000 (06:38 +1000)]
Some bit-rot needs to be cleaned out.

Signed-off-by: NeilBrown <neilb@suse.de>

include/linux/raid/pq.h
lib/raid6/algos.c

index 1cbbd2c..2b59cc8 100644 (file)
@@ -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__ */
index 1f8784b..df7ff72 100644 (file)
  */
 
 #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)));