[PATCH 2/2] selftests: Replace relative includes with non-relative for kselftest.h and kselftest_harness.h
Bala-Vignesh-Reddy
reddybalavignesh9979 at gmail.com
Fri Aug 29 10:53:06 UTC 2025
>+ifeq ($(KSFT_INCLUDES),)
>+KSFT_INCLUDES := -I../
>+endif
>+
This makes sense, but if we do it for mm/ then we have to
follow this for all subdirectories in selftests.. that might
cause problems if subdirectories are nested ones likes filesystems/.
Duplicating this across all subdir Makefile adds churn and can
lead to errors.
Another way, is adding `CFLAGS += -I../` as is done in net/Makefile,
but this also doesn't solve the problem completely as this also
remain to relative addressing.
But, if preferred we can add this snippet in Makefile to
resolve the error temporarily.
Thanks,
Bala Vignesh
More information about the Linux-security-module-archive
mailing list