[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210928023816.14488-1-mcroce@linux.microsoft.com>
Date: Tue, 28 Sep 2021 04:38:16 +0200
From: Matteo Croce <mcroce@...ux.microsoft.com>
To: bpf@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>, Yonghong Song <yhs@...com>
Subject: [PATCH bpf] samples: bpf: fix test_lru_dist
From: Matteo Croce <mcroce@...rosoft.com>
Fix this build error:
CC samples/bpf/test_lru_dist
samples/bpf/test_lru_dist.c:36:8: error: redefinition of ‘struct list_head’
36 | struct list_head {
| ^~~~~~~~~
This happens even after running `make headers_install`
Signed-off-by: Matteo Croce <mcroce@...rosoft.com>
---
samples/bpf/xdp_redirect_map_multi.bpf.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/samples/bpf/xdp_redirect_map_multi.bpf.c b/samples/bpf/xdp_redirect_map_multi.bpf.c
index 8f59d430cb64..bb0a5a3bfcf0 100644
--- a/samples/bpf/xdp_redirect_map_multi.bpf.c
+++ b/samples/bpf/xdp_redirect_map_multi.bpf.c
@@ -5,11 +5,6 @@
#include "xdp_sample.bpf.h"
#include "xdp_sample_shared.h"
-enum {
- BPF_F_BROADCAST = (1ULL << 3),
- BPF_F_EXCLUDE_INGRESS = (1ULL << 4),
-};
-
struct {
__uint(type, BPF_MAP_TYPE_DEVMAP_HASH);
__uint(key_size, sizeof(int));
--
2.31.1
Powered by blists - more mailing lists