linux/tools/testing/selftests/gpio
Kent Gibson f63731e18e selftests: gpio: fix include path to kernel headers for out of tree builds
When building selftests out of the kernel tree the gpio.h the include
path is incorrect and the build falls back to the system includes
which may be outdated.

Add the KHDR_INCLUDES to the CFLAGS to include the gpio.h from the
build tree.

Fixes: 4f4d0af7b2 ("selftests: gpio: restore CFLAGS options")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
2022-07-20 14:35:18 +02:00
..
.gitignore selftests: gpio: add a helper for reading GPIO line names 2021-12-17 12:26:13 +01:00
config selftests: gpio: add test cases for gpio-sim 2021-12-17 12:26:13 +01:00
gpio-chip-info.c selftests: gpio: provide a helper for reading chip info 2021-12-17 12:26:13 +01:00
gpio-line-name.c selftests: gpio: add a helper for reading GPIO line names 2021-12-17 12:26:13 +01:00
gpio-mockup-cdev.c selftests: gpio: fix uninitialised variable warning 2021-11-15 14:27:50 +01:00
gpio-mockup-sysfs.sh selftests: gpio: rework and simplify test implementation 2021-02-15 11:43:28 +01:00
gpio-mockup.sh selftests: gpio: port to GPIO uAPI v2 2021-02-15 11:43:28 +01:00
gpio-sim.sh selftests: gpio: gpio-sim: avoid forking test twice 2021-12-17 12:26:13 +01:00
Makefile selftests: gpio: fix include path to kernel headers for out of tree builds 2022-07-20 14:35:18 +02:00