diff options
author | Li Zhijian <lizhijian@cn.fujitsu.com> | 2021-11-08 09:28:49 +0800 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2021-11-15 14:27:38 +0100 |
commit | 92a59d7f381d2caf69385bfa00590028e32eea26 (patch) | |
tree | ba08b28a95b3d61cab9c382a400c8791a2d391fa | |
parent | f7715b3a349900e3741d9029d02cd1e91b4fc588 (diff) |
selftests: gpio: fix gpio compiling error
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>
-rw-r--r-- | tools/testing/selftests/gpio/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/gpio/Makefile b/tools/testing/selftests/gpio/Makefile index 39f2bbe8dd3d..42ea7d2aa844 100644 --- a/tools/testing/selftests/gpio/Makefile +++ b/tools/testing/selftests/gpio/Makefile @@ -3,5 +3,6 @@ TEST_PROGS := gpio-mockup.sh TEST_FILES := gpio-mockup-sysfs.sh TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev +CFLAGS += -I../../../../usr/include include ../lib.mk |