selftests: gpio: fix gpio compiling error
authorLi Zhijian <lizhijian@cn.fujitsu.com>
Mon, 8 Nov 2021 01:28:49 +0000 (09:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:34 +0000 (09:48 +0100)
commitaa67407ebb6d4aa034fd89572e28d503e5b6edcf
tree72c9ab1d77835a8bdd3662f2484e7b7f360b59ee
parent05a48cba24593c683e2514914f36bbd14df410b5
selftests: gpio: fix gpio compiling error

[ Upstream commit 92a59d7f381d2caf69385bfa00590028e32eea26 ]

The gpio selftests build against the system includes rather than the
headers from the linux tree.  This results in the compile failing if
the system includes are outdated.

Prefer the headers from the linux tree, as per other selftests.

Fixes: 8bc395a6a2e2 ("selftests: gpio: rework and simplify test implementation")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
[Kent: reworded commit comment and added Fixes:]
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/gpio/Makefile