mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
We don't need to specify an explicit rule in the Makefile, the implicit one will do the same. The "__EXPORTED_HEADERS__" define is not needed, because we build the test against the installed kernel headers, not the in-tree kernel headers. Re-use "$(TEST_PROGS)" in the clean target rather than spelling the executable name twice. Include <unistd.h> rather than the rather specific <asm-generic/unistd.h>. Include <syscall.h> rather than <sys/syscall.h>. In both cases, the former header is located in a standard location and includes the latter. Signed-off-by: Mathieu Desnoyers <[email protected]> Acked-by: Michael Ellerman <[email protected]> Cc: Pranith Kumar <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
11 lines
139 B
Makefile
11 lines
139 B
Makefile
CFLAGS += -g -I../../../../usr/include/
|
|
|
|
TEST_PROGS := membarrier_test
|
|
|
|
all: $(TEST_PROGS)
|
|
|
|
include ../lib.mk
|
|
|
|
clean:
|
|
$(RM) $(TEST_PROGS)
|