BPF List
 help / color / mirror / Atom feed
* [PATCH] samples: fix compile failure error
@ 2022-05-21  0:09 Ruijian Li
  2022-05-23 19:39 ` Andrii Nakryiko
  0 siblings, 1 reply; 2+ messages in thread
From: Ruijian Li @ 2022-05-21  0:09 UTC (permalink / raw)
  To: ast
  Cc: daniel, andrii, kafai, songliubraving, yhs, john.fastabend,
	kpsingh, netdev, bpf, linux-kernel, 798073189, Ruijian Li

Because compile samples/bpf/test_lru_dist failure, I remove the
declaration of the struct list_head.

Signed-off-by: Ruijian Li <ruijian63@gmail.com>
---
 samples/bpf/test_lru_dist.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/samples/bpf/test_lru_dist.c b/samples/bpf/test_lru_dist.c
index 75e877853596..dd7eb470653b 100644
--- a/samples/bpf/test_lru_dist.c
+++ b/samples/bpf/test_lru_dist.c
@@ -33,10 +33,6 @@ static int nr_cpus;
 static unsigned long long *dist_keys;
 static unsigned int dist_key_counts;
 
-struct list_head {
-	struct list_head *next, *prev;
-};
-
 static inline void INIT_LIST_HEAD(struct list_head *list)
 {
 	list->next = list;
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-23 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-21  0:09 [PATCH] samples: fix compile failure error Ruijian Li
2022-05-23 19:39 ` Andrii Nakryiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox