]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Fix bpf_prog_detach2 usage in test_lirc_mode2
authorRicardo B. Marlière <rbm@suse.com>
Thu, 28 Aug 2025 13:12:33 +0000 (10:12 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:07 +0000 (12:45 +0100)
commitb5d562b4d42646e9d89dfb3c9dece94d3b4be247
treefd2b9d31caf45490352fbdbd7be74ccab0e32805
parentf56a6751ce2f5009969baf2279b2413e857e93ca
selftests/bpf: Fix bpf_prog_detach2 usage in test_lirc_mode2

[ Upstream commit 98857d111c53954aa038fcbc4cf48873e4240f7c ]

Commit e9fc3ce99b34 ("libbpf: Streamline error reporting for high-level
APIs") redefined the way that bpf_prog_detach2() returns. Therefore, adapt
the usage in test_lirc_mode2_user.c.

Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250828-selftests-bpf-v1-1-c7811cd8b98c@suse.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/test_lirc_mode2_user.c