Re: [PATCH bpf-next v2 4/4] bpf: remove the cgroup -> bpf header dependecy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 14 Dec 2021 21:15:15 -0800 Alexei Starovoitov wrote:
> On Tue, Dec 14, 2021 at 6:31 PM Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
> > Now that the stage has been set and actors are in place
> > remove the header dependency between cgroup and bpf.h.
> >
> > This reduces the incremental build size of x86 allmodconfig
> > after bpf.h was touched from ~17k objects rebuilt to ~5k objects.
> > bpf.h is 2.2kLoC and is modified relatively often.

> >  #ifndef _BPF_CGROUP_H
> >  #define _BPF_CGROUP_H
> >
> > -#include <linux/bpf.h>
> > +#include <linux/bpf-cgroup-types.h>
> > +#include <linux/bpf-link.h>  
> 
> Borked rebase with stale header I guess ?
> 
> Could you try just patch 1 with bpf-cgroup-types.h
> and do s/bpf.h/bpf-cgroup-types.h/ here in bpf-cgroup.h
> as patch 2
> while moving cgroup_storage_type() function to bpf.h ?
> Patch 1 will add +#include <linux/bpf-cgroup-types.h>
> to linux/bpf.h,
> so cgroup_storage_type() will have everything it needs there.
> 
> I could be still missing something.

Right, I must misremembered the reasoning, move to bpf.h should work
just fine.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux