Skip to content

Commit 9dd6e1d

Browse files
xen0nliu-song-6
authored andcommitted
raid6: guard the tables.c include of <linux/export.h> with __KERNEL__
The export directives for the tables are already emitted with __KERNEL__ guards, but the <linux/export.h> include is not, causing errors when building the raid6test program. Guard this include too to fix the raid6test build. Signed-off-by: WANG Xuerui <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Song Liu <[email protected]>
1 parent 5afcf28 commit 9dd6e1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/raid6/mktables.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ int main(int argc, char *argv[])
5656
uint8_t v;
5757
uint8_t exptbl[256], invtbl[256];
5858

59+
printf("#ifdef __KERNEL__\n");
5960
printf("#include <linux/export.h>\n");
61+
printf("#endif\n");
6062
printf("#include <linux/raid/pq.h>\n");
6163

6264
/* Compute multiplication table */

0 commit comments

Comments
 (0)