From: WANG Xuerui Date: Mon, 31 Jul 2023 10:49:08 +0000 (+0800) Subject: raid6: guard the tables.c include of with __KERNEL__ X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9dd6e1da811ffad95a79b2690110ef1bbaf4dda4;p=users%2Fjedix%2Flinux-maple.git raid6: guard the tables.c include of with __KERNEL__ The export directives for the tables are already emitted with __KERNEL__ guards, but the include is not, causing errors when building the raid6test program. Guard this include too to fix the raid6test build. Signed-off-by: WANG Xuerui Link: https://lore.kernel.org/r/20230731104911.411964-3-kernel@xen0n.name Signed-off-by: Song Liu --- diff --git a/lib/raid6/mktables.c b/lib/raid6/mktables.c index f02e10fa6238..3be03793237c 100644 --- a/lib/raid6/mktables.c +++ b/lib/raid6/mktables.c @@ -56,7 +56,9 @@ int main(int argc, char *argv[]) uint8_t v; uint8_t exptbl[256], invtbl[256]; + printf("#ifdef __KERNEL__\n"); printf("#include \n"); + printf("#endif\n"); printf("#include \n"); /* Compute multiplication table */