public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests: vDSO: don't include generated headers for chacha test
@ 2024-09-04 15:58 Jason A. Donenfeld
  2024-09-04 16:19 ` Adhemerval Zanella Netto
  2024-09-10 22:52 ` Aishwarya TCV
  0 siblings, 2 replies; 11+ messages in thread
From: Jason A. Donenfeld @ 2024-09-04 15:58 UTC (permalink / raw)
  To: adhemerval.zanella, linux-kernel; +Cc: Jason A. Donenfeld

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/asm,
which is the same thing that's done for rwlock.h.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
---
 tools/include/asm/asm-offsets.h       | 0
 tools/include/asm/cpucap-defs.h       | 0
 tools/include/asm/sysreg-defs.h       | 0
 tools/testing/selftests/vDSO/Makefile | 1 -
 4 files changed, 1 deletion(-)
 create mode 100644 tools/include/asm/asm-offsets.h
 create mode 100644 tools/include/asm/cpucap-defs.h
 create mode 100644 tools/include/asm/sysreg-defs.h

diff --git a/tools/include/asm/asm-offsets.h b/tools/include/asm/asm-offsets.h
new file mode 100644
index 000000000000..e69de29bb2d1
diff --git a/tools/include/asm/cpucap-defs.h b/tools/include/asm/cpucap-defs.h
new file mode 100644
index 000000000000..e69de29bb2d1
diff --git a/tools/include/asm/sysreg-defs.h b/tools/include/asm/sysreg-defs.h
new file mode 100644
index 000000000000..e69de29bb2d1
diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftests/vDSO/Makefile
index 3c6fafbd83a6..55038a65fa61 100644
--- a/tools/testing/selftests/vDSO/Makefile
+++ b/tools/testing/selftests/vDSO/Makefile
@@ -40,6 +40,5 @@ $(OUTPUT)/vdso_test_getrandom: CFLAGS += -isystem $(top_srcdir)/tools/include \
 $(OUTPUT)/vdso_test_chacha: $(top_srcdir)/tools/arch/$(SRCARCH)/vdso/vgetrandom-chacha.S
 $(OUTPUT)/vdso_test_chacha: CFLAGS += -idirafter $(top_srcdir)/tools/include \
                                       -idirafter $(top_srcdir)/arch/$(SRCARCH)/include \
-                                      -idirafter $(top_srcdir)/arch/$(SRCARCH)/include/generated \
                                       -idirafter $(top_srcdir)/include \
                                       -D__ASSEMBLY__ -Wa,--noexecstack
-- 
2.46.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-09-11 14:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 15:58 [PATCH] selftests: vDSO: don't include generated headers for chacha test Jason A. Donenfeld
2024-09-04 16:19 ` Adhemerval Zanella Netto
2024-09-10 22:52 ` Aishwarya TCV
2024-09-11  2:44   ` Jason A. Donenfeld
2024-09-11 10:14     ` Mark Brown
2024-09-11 12:47       ` Jason A. Donenfeld
2024-09-11 13:01         ` Jason A. Donenfeld
2024-09-11 13:33           ` Jason A. Donenfeld
2024-09-11 13:36             ` [PATCH v2] " Jason A. Donenfeld
2024-09-11 14:12               ` Mark Brown
2024-09-11 14:40                 ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox