lkml.org 
[lkml]   [2022]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/5] selftests: openat2: Add missing dependency in Makefile
    Date
    Add a dependency on header helpers.h to the main target; while at that add
    to helpers.h also a missing include for bool types.

    Cc: Aleksa Sarai <cyphar@cyphar.com>
    Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
    ---
    tools/testing/selftests/openat2/Makefile | 2 +-
    tools/testing/selftests/openat2/helpers.h | 1 +
    2 files changed, 2 insertions(+), 1 deletion(-)

    diff --git a/tools/testing/selftests/openat2/Makefile b/tools/testing/selftests/openat2/Makefile
    index 4b93b1417b86..843ba56d8e49 100644
    --- a/tools/testing/selftests/openat2/Makefile
    +++ b/tools/testing/selftests/openat2/Makefile
    @@ -5,4 +5,4 @@ TEST_GEN_PROGS := openat2_test resolve_test rename_attack_test

    include ../lib.mk

    -$(TEST_GEN_PROGS): helpers.c
    +$(TEST_GEN_PROGS): helpers.c helpers.h
    diff --git a/tools/testing/selftests/openat2/helpers.h b/tools/testing/selftests/openat2/helpers.h
    index ad5d0ba5b6ce..7056340b9339 100644
    --- a/tools/testing/selftests/openat2/helpers.h
    +++ b/tools/testing/selftests/openat2/helpers.h
    @@ -9,6 +9,7 @@

    #define _GNU_SOURCE
    #include <stdint.h>
    +#include <stdbool.h>
    #include <errno.h>
    #include <linux/types.h>
    #include "../kselftest.h"
    --
    2.17.1
    \
     
     \ /
      Last update: 2022-01-26 11:28    [W:4.712 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site