[PATCH 0/5] raid6: raid6test build fixes and cleanups

From: WANG Xuerui
Date: Mon Jul 31 2023 - 06:50:14 EST


From: WANG Xuerui <git@xxxxxxxxxx>

Hi,

While working on porting the RAID6 math to the LoongArch SIMD
extensions, I found out the raid6test tool build is broken for some
time (seemingly on all arches), so I took some time to fix it and did
some cleanups while at it.

Before the fix:

> In file included from ../../../include/linux/export.h:5,
> from recov.c:16:
> ../../../include/linux/compiler.h:246:10: fatal error: asm/rwonce.h: No such file or directory
> 246 | #include <asm/rwonce.h>
> | ^~~~~~~~~~~~~~
> compilation terminated.
> make: *** [Makefile:58: recov.o] Error 1

After the fix I was able to build and test it on x86_64 and loongarch64,
with clean `git status` output after building.

WANG Xuerui (5):
raid6: remove the <linux/export.h> include from recov.c
raid6: guard the tables.c include of <linux/export.h> with __KERNEL__
raid6: test: cosmetic cleanups for the test Makefile
raid6: test: make sure all intermediate and artifact files are
.gitignored
raid6: test: only check for Altivec if building on powerpc hosts

lib/raid6/mktables.c | 2 ++
lib/raid6/recov.c | 1 -
lib/raid6/test/.gitignore | 2 ++
lib/raid6/test/Makefile | 50 ++++++++++++++++++++-------------------
4 files changed, 30 insertions(+), 25 deletions(-)
create mode 100644 lib/raid6/test/.gitignore

--
2.40.0