[Freedreno] [PATCH bpf v2] treewide: add missing includes masked by cgroup -> bpf dependency

Alexei Starovoitov alexei.starovoitov at gmail.com
Fri Dec 3 19:09:13 UTC 2021


On Thu, Dec 2, 2021 at 11:11 PM Greg KH <gregkh at linuxfoundation.org> wrote:
>
> On Thu, Dec 02, 2021 at 12:34:00PM -0800, Jakub Kicinski wrote:
> > cgroup.h (therefore swap.h, therefore half of the universe)
> > includes bpf.h which in turn includes module.h and slab.h.
> > Since we're about to get rid of that dependency we need
> > to clean things up.
> >
> > v2: drop the cpu.h include from cacheinfo.h, it's not necessary
> > and it makes riscv sensitive to ordering of include files.
> >
> > Link: https://lore.kernel.org/all/20211120035253.72074-1-kuba@kernel.org/  # v1
> > Link: https://lore.kernel.org/all/20211120165528.197359-1-kuba@kernel.org/ # cacheinfo discussion
> > Acked-by: Krzysztof Wilczyński <kw at linux.com>
> > Acked-by: Peter Chen <peter.chen at kernel.org>
> > Acked-by: SeongJae Park <sj at kernel.org>
> > Acked-by: Jani Nikula <jani.nikula at intel.com>
> > Signed-off-by: Jakub Kicinski <kuba at kernel.org>
>
> Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>

I'm not sure how to test that it helps to reduce build deps,
but it builds and passes tests, so applied to bpf tree.
Jakub, you'll soon get it back via bpf tree PR :)


More information about the Freedreno mailing list