selftests/bpf: fix broken build due to types.h
Subsystems (2)
David Miller
maintainerPlease correct the address of the netdev list (it is just plain 'netdev' not 'linux-netdev').
Secondly, __always_inline should not be defined by types.h
That has to come from linux/compiler.h which we have no reason to define a private version of for eBPF clang compilation.
The problem is that via several layers of indirection, linux/types.h eventually includes linux/compiler.h and that is probably the more appropriate thing for you to do.
Quoted 3 lines · David Miller
Please correct the address of the netdev list (it is just plain 'netdev' not 'linux-netdev').
Thanks. Shortly after my first email, I sent a corrected submit as well. Sorry for the spam.
Quoted 9 lines
Secondly,
__always_inlineshould not be defined bytypes.hThat has to come from
linux/compiler.hwhich we have no reason to define a private version of for eBPF clang compilation.The problem is that via several layers of indirection,
linux/types.heventually includeslinux/compiler.hand that is probably the more appropriate thing for you to do.
Right. I found out simply including string.h will eventually include linux/compiler.h so that I do not need explicitly defining __always_inline.
Will send a revised patch soon.
Thanks,
Yonghong