Patch "selftests: bpf: fix backported ASSERT_FALSE" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests: bpf: fix backported ASSERT_FALSE

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-bpf-fix-backported-assert_false.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From lmb@xxxxxxxxxxxxxx  Mon Oct 25 20:46:09 2021
From: Lorenz Bauer <lmb@xxxxxxxxxxxxxx>
Date: Mon, 25 Oct 2021 17:06:19 +0100
Subject: selftests: bpf: fix backported ASSERT_FALSE
To: gregkh@xxxxxxxxxxxxxxxxxxx, andrii@xxxxxxxxxx
Cc: stable@xxxxxxxxxxxxxxx, Lorenz Bauer <lmb@xxxxxxxxxxxxxx>
Message-ID: <20211025160619.501058-1-lmb@xxxxxxxxxxxxxx>

From: Lorenz Bauer <lmb@xxxxxxxxxxxxxx>

Commit 183d9ebd449c ("selftests/bpf: Fix core_reloc test runner") causes
builds of selftests/bpf to fail on 5.10.y since the branch doesn't have the
ASSERT_FALSE macro yet. Replace ASSERT_FALSE with ASSERT_EQ.

Fixes: 183d9ebd449c ("selftests/bpf: Fix core_reloc test runner")
Signed-off-by: Lorenz Bauer <lmb@xxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 tools/testing/selftests/bpf/prog_tests/core_reloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tools/testing/selftests/bpf/prog_tests/core_reloc.c
+++ b/tools/testing/selftests/bpf/prog_tests/core_reloc.c
@@ -857,7 +857,7 @@ void test_core_reloc(void)
 			goto cleanup;
 		}
 
-		if (!ASSERT_FALSE(test_case->fails, "obj_load_should_fail"))
+		if (!ASSERT_EQ(test_case->fails, false, "obj_load_should_fail"))
 			goto cleanup;
 
 		equal = memcmp(data->out, test_case->output,


Patches currently in stable-queue which might be from lmb@xxxxxxxxxxxxxx are

queue-5.10/selftests-bpf-fix-backported-assert_false.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux