Skip to contentSkip to conversation

selftests/bpf: fix broken build due to types.h

PATCH David Miller 2 participants 2 messages May 16, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#1 lore raw
In reply to a message not in the archive

Please 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.

#2 lore raw
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_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.

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

Quoted 1 line