diff options
author | Stanislav Fomichev <sdf@google.com> | 2018-12-12 06:20:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-12 21:47:09 +0300 |
commit | 1a2500177b13e78a83a33775b7ac159d50cc5a3e (patch) | |
tree | ecd6f54bb62b82a8be7964487f5985ea363ace35 /arch/arm/mach-pxa/littleton.c | |
parent | 3332bf15bfdeb3de78922fe1d7c12e69270a77af (diff) | |
download | linux-1a2500177b13e78a83a33775b7ac159d50cc5a3e.tar.xz |
selftests/bpf: use __bpf_constant_htons in test_prog.c
[ Upstream commit a0517a0f7ef23550b4484c37e2b9c2d32abebf64 ]
For some reason, my older GCC (< 4.8) isn't smart enough to optimize the
!__builtin_constant_p() branch in bpf_htons, I see:
error: implicit declaration of function '__builtin_bswap16'
Let's use __bpf_constant_htons as suggested by Daniel Borkmann.
I tried to use simple htons, but it produces the following:
test_progs.c:54:17: error: braced-group within expression allowed only
inside a function
.eth.h_proto = htons(ETH_P_IP),
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/mach-pxa/littleton.c')
0 files changed, 0 insertions, 0 deletions