The test-list-all-mounts sample includes pidfd.h from selftests,
which now uses the centralized kselftest.h include after the
previous change. Add the selftests directory to the include path
so the build can find kselftest.h

This fixes a build error reported by the kernel test robot.

Reported-by: kernel test robot <[email protected]>
Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

Signed-off-by: Bala-Vignesh-Reddy <[email protected]>
---
 samples/vfs/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/samples/vfs/Makefile b/samples/vfs/Makefile
index 6554b73a75c8..9256ca5d762b 100644
--- a/samples/vfs/Makefile
+++ b/samples/vfs/Makefile
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
 userprogs-always-y += test-fsmount test-statx mountinfo test-list-all-mounts
 
+userccflags += -I $(srctree)/tools/testing/selftests/
 userccflags += -I usr/include
-- 
2.43.0


Reply via email to