* [PATCH 0/3] Dead structs in tools/testing/selftests/bpf
@ 2024-06-02 23:41 linux
2024-06-02 23:41 ` [PATCH 1/3] selftests/bpf: remove unused struct 'scale_test_def' linux
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: linux @ 2024-06-02 23:41 UTC (permalink / raw)
To: andrii, eddyz87, mykolal, kpsingh, shuah
Cc: bpf, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
Hi,
Clean out a bunch of old structs in selftests/bpf.
I've been using a 'make test_progs' as a build test.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Dr. David Alan Gilbert (3):
selftests/bpf: remove unused struct 'scale_test_def'
selftests/bpf: remove unused 'key_t' structs
selftests/bpf: remove unused struct 'libcap'
tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c | 6 ------
tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c | 6 ------
.../selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c | 6 ------
tools/testing/selftests/bpf/test_verifier.c | 5 -----
4 files changed, 23 deletions(-)
--
2.45.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] selftests/bpf: remove unused struct 'scale_test_def'
2024-06-02 23:41 [PATCH 0/3] Dead structs in tools/testing/selftests/bpf linux
@ 2024-06-02 23:41 ` linux
2024-06-02 23:41 ` [PATCH 2/3] selftests/bpf: remove unused 'key_t' structs linux
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: linux @ 2024-06-02 23:41 UTC (permalink / raw)
To: andrii, eddyz87, mykolal, kpsingh, shuah
Cc: bpf, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
'scale_test_def' is unused since
commit 3762a39ce85f ("selftests/bpf: Split out bpf_verif_scale selftests
into multiple tests").
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c b/tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c
index 4c6ada5b270b..73f669014b69 100644
--- a/tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c
+++ b/tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c
@@ -45,12 +45,6 @@ static int check_load(const char *file, enum bpf_prog_type type)
return err;
}
-struct scale_test_def {
- const char *file;
- enum bpf_prog_type attach_type;
- bool fails;
-};
-
static void scale_test(const char *file,
enum bpf_prog_type attach_type,
bool should_fail)
--
2.45.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] selftests/bpf: remove unused 'key_t' structs
2024-06-02 23:41 [PATCH 0/3] Dead structs in tools/testing/selftests/bpf linux
2024-06-02 23:41 ` [PATCH 1/3] selftests/bpf: remove unused struct 'scale_test_def' linux
@ 2024-06-02 23:41 ` linux
2024-06-02 23:41 ` [PATCH 3/3] selftests/bpf: remove unused struct 'libcap' linux
2024-06-03 15:00 ` [PATCH 0/3] Dead structs in tools/testing/selftests/bpf patchwork-bot+netdevbpf
3 siblings, 0 replies; 5+ messages in thread
From: linux @ 2024-06-02 23:41 UTC (permalink / raw)
To: andrii, eddyz87, mykolal, kpsingh, shuah
Cc: bpf, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
'key_t' is unused in a couple of files since the original
commit 60dd49ea6539 ("selftests/bpf: Add test for bpf array map
iterators").
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c | 6 ------
.../selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c | 6 ------
2 files changed, 12 deletions(-)
diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c b/tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c
index c5969ca6f26b..564835ba7d51 100644
--- a/tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c
+++ b/tools/testing/selftests/bpf/progs/bpf_iter_bpf_array_map.c
@@ -6,12 +6,6 @@
char _license[] SEC("license") = "GPL";
-struct key_t {
- int a;
- int b;
- int c;
-};
-
struct {
__uint(type, BPF_MAP_TYPE_ARRAY);
__uint(max_entries, 3);
diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c b/tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c
index 85fa710fad90..9f0e0705b2bf 100644
--- a/tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c
+++ b/tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_array_map.c
@@ -6,12 +6,6 @@
char _license[] SEC("license") = "GPL";
-struct key_t {
- int a;
- int b;
- int c;
-};
-
struct {
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
__uint(max_entries, 3);
--
2.45.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] selftests/bpf: remove unused struct 'libcap'
2024-06-02 23:41 [PATCH 0/3] Dead structs in tools/testing/selftests/bpf linux
2024-06-02 23:41 ` [PATCH 1/3] selftests/bpf: remove unused struct 'scale_test_def' linux
2024-06-02 23:41 ` [PATCH 2/3] selftests/bpf: remove unused 'key_t' structs linux
@ 2024-06-02 23:41 ` linux
2024-06-03 15:00 ` [PATCH 0/3] Dead structs in tools/testing/selftests/bpf patchwork-bot+netdevbpf
3 siblings, 0 replies; 5+ messages in thread
From: linux @ 2024-06-02 23:41 UTC (permalink / raw)
To: andrii, eddyz87, mykolal, kpsingh, shuah
Cc: bpf, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
'libcap' is unused since
commit b1c2768a82b9 ("bpf: selftests: Remove libcap usage from
test_verifier").
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] Dead structs in tools/testing/selftests/bpf
2024-06-02 23:41 [PATCH 0/3] Dead structs in tools/testing/selftests/bpf linux
` (2 preceding siblings ...)
2024-06-02 23:41 ` [PATCH 3/3] selftests/bpf: remove unused struct 'libcap' linux
@ 2024-06-03 15:00 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-06-03 15:00 UTC (permalink / raw)
To: Dr. David Alan Gilbert
Cc: andrii, eddyz87, mykolal, kpsingh, shuah, bpf, linux-kernel
Hello:
This series was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:
On Mon, 3 Jun 2024 00:41:09 +0100 you wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> Hi,
> Clean out a bunch of old structs in selftests/bpf.
> I've been using a 'make test_progs' as a build test.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
>
> [...]
Here is the summary with links:
- [1/3] selftests/bpf: remove unused struct 'scale_test_def'
https://git.kernel.org/bpf/bpf-next/c/dfa7c9ffa607
- [2/3] selftests/bpf: remove unused 'key_t' structs
https://git.kernel.org/bpf/bpf-next/c/3f67639d8e58
- [3/3] selftests/bpf: remove unused struct 'libcap'
https://git.kernel.org/bpf/bpf-next/c/a450d36b05fa
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-03 15:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-02 23:41 [PATCH 0/3] Dead structs in tools/testing/selftests/bpf linux
2024-06-02 23:41 ` [PATCH 1/3] selftests/bpf: remove unused struct 'scale_test_def' linux
2024-06-02 23:41 ` [PATCH 2/3] selftests/bpf: remove unused 'key_t' structs linux
2024-06-02 23:41 ` [PATCH 3/3] selftests/bpf: remove unused struct 'libcap' linux
2024-06-03 15:00 ` [PATCH 0/3] Dead structs in tools/testing/selftests/bpf patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox