[PATCH 3/3] selftests/bpf: remove unused struct 'libcap'

From: linux
Date: Sun Jun 02 2024 - 19:42:17 EST


From: "Dr. David Alan Gilbert" <linux@xxxxxxxxxxx>

'libcap' is unused since
commit b1c2768a82b9 ("bpf: selftests: Remove libcap usage from
test_verifier").

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@xxxxxxxxxxx>
---
tools/testing/selftests/bpf/test_verifier.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/tools/testing/selftests/bpf/test_verifier.c b/tools/testing/selftests/bpf/test_verifier.c
index df04bda1c927..610392dfc4fb 100644
--- a/tools/testing/selftests/bpf/test_verifier.c
+++ b/tools/testing/selftests/bpf/test_verifier.c
@@ -1237,11 +1237,6 @@ static void do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type,
fixup_prog_kfuncs(prog, fd_array, test->fixup_kfunc_btf_id);
}

-struct libcap {
- struct __user_cap_header_struct hdr;
- struct __user_cap_data_struct data[2];
-};
-
static int set_admin(bool admin)
{
int err;
--
2.45.1