]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix various lib and testsuite build failures on 32-bit.
authorDavid Miller <davem@davemloft.net>
Wed, 28 Nov 2018 20:56:10 +0000 (12:56 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 29 Nov 2018 00:10:59 +0000 (16:10 -0800)
commit11f7024f41821c9cf53cbfb5f07f85be268ddce1
tree46c8b8640085ccfe8c8942a7daaf19a89eaf2cfa
parent0e5d568e2cd92da78fa0959ef0f7ca57a21a82f8
bpf: Fix various lib and testsuite build failures on 32-bit.

Cannot cast a u64 to a pointer on 32-bit without an intervening (long)
cast otherwise GCC warns.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/btf.c
tools/testing/selftests/bpf/test_progs.c