]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: gpio: fix include path to kernel headers for out of tree builds
authorKent Gibson <warthog618@gmail.com>
Tue, 19 Jul 2022 11:06:01 +0000 (19:06 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 20 Jul 2022 12:35:18 +0000 (14:35 +0200)
commit8be46e4151d1bf9e884b214d11e0d1eee3885293
tree191ead30c8fed09ed104ad54a7187fe07fc79ad9
parent6302b58a9000ace1634612f4d4abafdc5eb2abc8
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: bb2929d158dd ("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>
tools/testing/selftests/gpio/Makefile