lkml.org 
[lkml]   [2021]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 116/279] selftests: gpio: fix gpio compiling error
    Date
    From: Li Zhijian <lizhijian@cn.fujitsu.com>

    [ 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 | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/tools/testing/selftests/gpio/Makefile b/tools/testing/selftests/gpio/Makefile
    index 39f2bbe8dd3df..42ea7d2aa8440 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
    --
    2.33.0


    \
     
     \ /
      Last update: 2021-11-24 14:52    [W:3.433 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site