diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2024-03-05 13:56:44 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-03-05 19:29:15 +0100 |
commit | 3fe1eb4dd2e4b872ffb7b9b081b34ffcfa934ba7 (patch) | |
tree | a2ed80fab231e8e3a3705cd1103a75156543e121 | |
parent | string: Convert helpers selftest to KUnit (diff) | |
download | linux-3fe1eb4dd2e4b872ffb7b9b081b34ffcfa934ba7.tar.xz linux-3fe1eb4dd2e4b872ffb7b9b081b34ffcfa934ba7.zip |
selftests/powerpc: Fix load_unaligned_zeropad build failure
This test is userspace code, but uses some kernel headers via symlinks,
and mocks other headers, in order to test load_unaligned_zeropad().
Currently the test fails to build with:
In file included from load_unaligned_zeropad.c:26:
word-at-a-time.h:7:10: fatal error: linux/bitops.h: No such file or directory
7 | #include <linux/bitops.h>
This is due to the recent changes to the kernel headers.
Fix it by symlinking the new wordpart.h, and creating an empty stub for
bitops.h which is all that's needed.
Reported-by: Sachin Sant <sachinp@linux.ibm.com>
Tested-by: Sachin Sant <sachinp@linux.ibm.com>
Fixes: 66a5c40f60f5 ("kernel.h: removed REPEAT_BYTE from kernel.h")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20240305125644.3315910-1-mpe@ellerman.id.au
Signed-off-by: Kees Cook <keescook@chromium.org>
-rw-r--r-- | tools/testing/selftests/powerpc/primitives/linux/bitops.h | 0 | ||||
l--------- | tools/testing/selftests/powerpc/primitives/linux/wordpart.h | 1 |
2 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/primitives/linux/bitops.h b/tools/testing/selftests/powerpc/primitives/linux/bitops.h new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/tools/testing/selftests/powerpc/primitives/linux/bitops.h diff --git a/tools/testing/selftests/powerpc/primitives/linux/wordpart.h b/tools/testing/selftests/powerpc/primitives/linux/wordpart.h new file mode 120000 index 000000000000..4a74d2cbbc9b --- /dev/null +++ b/tools/testing/selftests/powerpc/primitives/linux/wordpart.h @@ -0,0 +1 @@ +../../../../../../include/linux/wordpart.h
\ No newline at end of file |