Skip to content

Commit 8bc7c5e

Browse files
committed
selftests: vDSO: don't include generated headers for chacha test
It's not correct to use $(top_srcdir) for generated header files, for builds that are done out of tree via O=, and $(objtree) isn't valid in the selftests context. Instead, just obviate the need for these generated header files by defining empty stubs in tools/include, which is the same thing that's done for rwlock.h. Reviewed-by: Adhemerval Zanella <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 712676e commit 8bc7c5e

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

tools/include/generated/asm-offsets.h

Whitespace-only changes.

tools/include/generated/asm/cpucap-defs.h

Whitespace-only changes.

tools/include/generated/asm/sysreg-defs.h

Whitespace-only changes.

tools/testing/selftests/vDSO/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $(OUTPUT)/vdso_test_getrandom: CFLAGS += -isystem $(top_srcdir)/tools/include \
3939

4040
$(OUTPUT)/vdso_test_chacha: $(top_srcdir)/tools/arch/$(SRCARCH)/vdso/vgetrandom-chacha.S
4141
$(OUTPUT)/vdso_test_chacha: CFLAGS += -idirafter $(top_srcdir)/tools/include \
42+
-idirafter $(top_srcdir)/tools/include/generated \
4243
-idirafter $(top_srcdir)/arch/$(SRCARCH)/include \
43-
-idirafter $(top_srcdir)/arch/$(SRCARCH)/include/generated \
4444
-idirafter $(top_srcdir)/include \
4545
-D__ASSEMBLY__ -Wa,--noexecstack

0 commit comments

Comments
 (0)