diff mbox series

selftests/bpf: Fix the ASSERT_ERR_PTR macro

Message ID 20210414155632.737866-1-revest@chromium.org (mailing list archive)
State Accepted
Delegated to: BPF
Headers show
Series selftests/bpf: Fix the ASSERT_ERR_PTR macro | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Florent Revest April 14, 2021, 3:56 p.m. UTC
It is just missing a ';'. This macro is not used by any test yet.

Signed-off-by: Florent Revest <revest@chromium.org>
---
 tools/testing/selftests/bpf/test_progs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin KaFai Lau April 14, 2021, 6:57 p.m. UTC | #1
On Wed, Apr 14, 2021 at 05:56:32PM +0200, Florent Revest wrote:
> It is just missing a ';'. This macro is not used by any test yet.
> 
> Signed-off-by: Florent Revest <revest@chromium.org>
Fixes: 22ba36351631 ("selftests/bpf: Move and extend ASSERT_xxx() testing macros")

Since it has not been used, it could be bpf-next.  Please also tag
it in the future.

Acked-by: Martin KaFai Lau <kafai@fb.com>
Andrii Nakryiko April 15, 2021, 12:28 a.m. UTC | #2
On Wed, Apr 14, 2021 at 11:58 AM Martin KaFai Lau <kafai@fb.com> wrote:
>
> On Wed, Apr 14, 2021 at 05:56:32PM +0200, Florent Revest wrote:
> > It is just missing a ';'. This macro is not used by any test yet.
> >
> > Signed-off-by: Florent Revest <revest@chromium.org>
> Fixes: 22ba36351631 ("selftests/bpf: Move and extend ASSERT_xxx() testing macros")
>

Thanks, Martin. Added Fixes tag and applied to bpf-next.

> Since it has not been used, it could be bpf-next.  Please also tag
> it in the future.
>
> Acked-by: Martin KaFai Lau <kafai@fb.com>
Florent Revest April 15, 2021, 8:48 a.m. UTC | #3
On Thu, Apr 15, 2021 at 2:28 AM Andrii Nakryiko
<andrii.nakryiko@gmail.com> wrote:
> On Wed, Apr 14, 2021 at 11:58 AM Martin KaFai Lau <kafai@fb.com> wrote:
> > On Wed, Apr 14, 2021 at 05:56:32PM +0200, Florent Revest wrote:
> > > It is just missing a ';'. This macro is not used by any test yet.
> > >
> > > Signed-off-by: Florent Revest <revest@chromium.org>
> > Fixes: 22ba36351631 ("selftests/bpf: Move and extend ASSERT_xxx() testing macros")
> >
>
> Thanks, Martin. Added Fixes tag and applied to bpf-next.
>
> > Since it has not been used, it could be bpf-next.  Please also tag
> > it in the future.

Sorry about that, I'll make sure I remember it next time :)

> > Acked-by: Martin KaFai Lau <kafai@fb.com>
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/test_progs.h b/tools/testing/selftests/bpf/test_progs.h
index e87c8546230e..ee7e3b45182a 100644
--- a/tools/testing/selftests/bpf/test_progs.h
+++ b/tools/testing/selftests/bpf/test_progs.h
@@ -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;								\
 })