mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
vfio: selftests: only build tests on arm64 and x86_64
Only build vfio self-tests on arm64 and x86_64; these are the only architectures where the vfio self-tests are run. Addresses compiler warnings for format and conversions on i386. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Ted Logan <[email protected]> Reviewed-by: David Matlack <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
This commit is contained in:
committed by
Alex Williamson
parent
c3cbc276c2
commit
a55d4bbbe6
@@ -1,3 +1,10 @@
|
||||
ARCH ?= $(shell uname -m)
|
||||
|
||||
ifeq (,$(filter $(ARCH),arm64 x86_64))
|
||||
# Do nothing on unsupported architectures
|
||||
include ../lib.mk
|
||||
else
|
||||
|
||||
CFLAGS = $(KHDR_INCLUDES)
|
||||
TEST_GEN_PROGS += vfio_dma_mapping_test
|
||||
TEST_GEN_PROGS += vfio_dma_mapping_mmio_test
|
||||
@@ -28,3 +35,5 @@ TEST_DEP_FILES = $(patsubst %.o, %.d, $(TEST_GEN_PROGS_O) $(LIBVFIO_O))
|
||||
-include $(TEST_DEP_FILES)
|
||||
|
||||
EXTRA_CLEAN += $(TEST_GEN_PROGS_O) $(TEST_DEP_FILES)
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user