Skip to content

Commit d5302fe

Browse files
committed
Make lib/raid6/test build correctly.
Some bit-rot needs to be cleaned out. Signed-off-by: NeilBrown <neilb@suse.de>
1 parent cc4589e commit d5302fe

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎include/linux/raid/pq.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ extern const char raid6_empty_zero_page[PAGE_SIZE];
6262
#define disable_kernel_altivec()
6363

6464
#define EXPORT_SYMBOL(sym)
65+
#define EXPORT_SYMBOL_GPL(sym)
6566
#define MODULE_LICENSE(licence)
67+
#define MODULE_DESCRIPTION(desc)
6668
#define subsys_initcall(x)
6769
#define module_exit(x)
6870
#endif /* __KERNEL__ */

‎lib/raid6/algos.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
*/
1818

1919
#include <linux/raid/pq.h>
20-
#include <linux/gfp.h>
2120
#ifndef __KERNEL__
2221
#include <sys/mman.h>
2322
#include <stdio.h>
2423
#else
24+
#include <linux/gfp.h>
2525
#if !RAID6_USE_EMPTY_ZERO_PAGE
2626
/* In .bss so it's zeroed */
2727
const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(256)));

0 commit comments

Comments
 (0)