linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] selftests: mm: remove wrong kernel header inclusion
@ 2023-06-12  9:53 Muhammad Usama Anjum
  2023-06-12  9:53 ` [PATCH 2/2] selftests: mm: remove duplicate unneeded defines Muhammad Usama Anjum
  2023-06-12  9:56 ` [PATCH 1/2] selftests: mm: remove wrong kernel header inclusion David Hildenbrand
  0 siblings, 2 replies; 3+ messages in thread
From: Muhammad Usama Anjum @ 2023-06-12  9:53 UTC (permalink / raw)
  To: Andrew Morton, Shuah Khan, David Hildenbrand, Stefan Roesch
  Cc: Muhammad Usama Anjum, kernel, linux-mm, linux-kselftest, linux-kernel

It is wrong to include unprocessed user header files directly. They are
processed to "<source_tree>/usr/include" by running "make headers" and
they are included in selftests by kselftest makefiles automatically with
help of KHDR_INCLUDES variable. These headers should always bulilt
first before building kselftests.

Fixes: 07115fcc15b4 ("selftests/mm: add new selftests for KSM")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
---
 tools/testing/selftests/mm/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
index 95acb099315e..e6cd60ca9e48 100644
--- a/tools/testing/selftests/mm/Makefile
+++ b/tools/testing/selftests/mm/Makefile
@@ -29,7 +29,7 @@ MACHINE ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/p
 # LDLIBS.
 MAKEFLAGS += --no-builtin-rules
 
-CFLAGS = -Wall -I $(top_srcdir) -I $(top_srcdir)/tools/include/uapi $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
+CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
 LDLIBS = -lrt -lpthread
 
 TEST_GEN_PROGS = cow
-- 
2.39.2



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

end of thread, other threads:[~2023-06-12  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12  9:53 [PATCH 1/2] selftests: mm: remove wrong kernel header inclusion Muhammad Usama Anjum
2023-06-12  9:53 ` [PATCH 2/2] selftests: mm: remove duplicate unneeded defines Muhammad Usama Anjum
2023-06-12  9:56 ` [PATCH 1/2] selftests: mm: remove wrong kernel header inclusion David Hildenbrand

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