| From: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com> |
| Subject: samples/vfs: add selftests include path for kselftest.h |
| Date: Fri, 17 Oct 2025 14:32:01 +0530 |
| |
| 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. |
| |
| Link: https://lkml.kernel.org/r/20251017090201.317521-1-reddybalavignesh9979@gmail.com |
| Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com> |
| Reported-by: kernel test robot <lkp@intel.com> |
| Closes: https://lore.kernel.org/oe-kbuild-all/202510171513.6IWk005g-lkp@intel.com/ |
| Reported-by: Mark Brown <broonie@kernel.org> |
| Closes: https://lkml.kernel.org/r/aPJD4ANRWUDVDqKc@sirena.org.uk |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| samples/vfs/Makefile | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| --- a/samples/vfs/Makefile~selftests-complete-kselftest-include-centralization-fix |
| +++ a/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 |
| _ |