selftests: mm: remove wrong kernel header inclusion
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Mon, 12 Jun 2023 09:53:46 +0000 (14:53 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:25 +0000 (16:19 -0700)
commit1e6d1e3645603bc9c9985dd6a437f22d06960b2d
tree4262e1bfeb09632a7a9209f2cc6040f63916d818
parentc33c794828f21217f72ce6fc140e0d34e0d56bff
selftests: mm: remove wrong kernel header inclusion

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.

Link: https://lkml.kernel.org/r/20230612095347.996335-1-usama.anjum@collabora.com
Fixes: 07115fcc15b4 ("selftests/mm: add new selftests for KSM")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Stefan Roesch <shr@devkernel.io>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/Makefile