Skip to contentSkip to conversation

cgroup, bpf: remove unnecessary #include

PATCH In review Alexei Starovoitov 5 participants 5 messages Nov 26, 2016 – Nov 29, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cgroup, bpf: remove unnecessary #include

this #include is unnecessary and brings whole set of other headers into cgroup-defs.h. Remove it.

Fixes 3007098494be ("cgroup: add support for eBPF programs")
---
 include/linux/bpf-cgroup.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/bpf-cgroup.h +0 -1
index ec80d0c0953e..0cf1adfadd2d 100644
@@ -1,7 +1,6 @@
 #ifndef _BPF_CGROUP_H
 #define _BPF_CGROUP_H
 
-#include <linux/bpf.h>
 #include <linux/jump_label.h>
 #include <uapi/linux/bpf.h>
 
Signature · 1 line
2.8.0
Acked-by on v1 1/1
#1 lore raw
Quoted 24 lines · Alexei Starovoitov

this #include is unnecessary and brings whole set of other headers into cgroup-defs.h. Remove it.

Fixes 3007098494be ("cgroup: add support for eBPF programs")
---
 include/linux/bpf-cgroup.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/bpf-cgroup.h +0 -2
index ec80d0c0953e..0cf1adfadd2d 100644
@@ -1,7 +1,6 @@
 #ifndef _BPF_CGROUP_H
 #define _BPF_CGROUP_H
 
-#include <linux/bpf.h>
 #include <linux/jump_label.h>
 #include <uapi/linux/bpf.h>
 
--

2.8.0

maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Alexei Starovoitov
Quoted 5 lines · Alexei Starovoitov

this #include is unnecessary and brings whole set of other headers into cgroup-defs.h. Remove it.

Fixes 3007098494be ("cgroup: add support for eBPF programs")

This fixes many build errors in samples/bpf/ due to wrong helper redefinitions (originating from kernel includes conflicting with samples' helper declarations).

I don't see it pushed out to net-next yet, so:

Acked-by
#3 lore raw
Quoted 7 lines · Daniel Borkmann
Quoted 5 lines · Alexei Starovoitov

this #include is unnecessary and brings whole set of other headers into cgroup-defs.h. Remove it.

Fixes 3007098494be ("cgroup: add support for eBPF programs")
Quoted 8 lines

This fixes many build errors in samples/bpf/ due to wrong helper redefinitions (originating from kernel includes conflicting with samples' helper declarations).

I don't see it pushed out to net-next yet, so:

FWIW:

#4 lore raw
In reply to Daniel Borkmann
Quoted 9 lines · Daniel Borkmann
Quoted 6 lines · Alexei Starovoitov

this #include is unnecessary and brings whole set of other headers into cgroup-defs.h. Remove it.

Fixes 3007098494be ("cgroup: add support for eBPF programs")
Quoted 7 lines

This fixes many build errors in samples/bpf/ due to wrong helper redefinitions (originating from kernel includes conflicting with samples' helper declarations).

I don't see it pushed out to net-next yet, so:

Dave,
this patch is marked as 'accepted', but I don't see in net-next ... please double check.
Thanks!