Skip to content
Commit ea857726 authored by Kent Gibson's avatar Kent Gibson Committed by Greg Kroah-Hartman
Browse files

selftests: gpio: fix include path to kernel headers for out of tree builds

[ Upstream commit f63731e1 ]

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: 4f4d0af7

 ("selftests: gpio: restore CFLAGS options")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarKent Gibson <warthog618@gmail.com>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b47ade56
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment