]> www.infradead.org Git - users/willy/xarray.git/commitdiff
selftests/bpf: Fix the ASSERT_ERR_PTR macro
authorFlorent Revest <revest@chromium.org>
Wed, 14 Apr 2021 15:56:32 +0000 (17:56 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 15 Apr 2021 00:24:22 +0000 (17:24 -0700)
It is just missing a ';'. This macro is not used by any test yet.

Fixes: 22ba36351631 ("selftests/bpf: Move and extend ASSERT_xxx() testing macros")
Signed-off-by: Florent Revest <revest@chromium.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210414155632.737866-1-revest@chromium.org
tools/testing/selftests/bpf/test_progs.h

index e87c8546230e34580c859c211f50a088bdd0c358..ee7e3b45182a1714f37262414a16639f15fbb548 100644 (file)
@@ -210,7 +210,7 @@ extern int test__join_cgroup(const char *path);
 #define ASSERT_ERR_PTR(ptr, name) ({                                   \
        static int duration = 0;                                        \
        const void *___res = (ptr);                                     \
-       bool ___ok = IS_ERR(___res)                                     \
+       bool ___ok = IS_ERR(___res);                                    \
        CHECK(!___ok, (name), "unexpected pointer: %p\n", ___res);      \
        ___ok;                                                          \
 })