selftests/bpf: fix bpf_target_sparc check
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 10 Jul 2019 11:56:54 +0000 (13:56 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 12 Jul 2019 13:04:03 +0000 (15:04 +0200)
commit59d82657a08d4a9e6e2d99acc525ef748d36016b
tree232efc8744991dcdb1d8816b0f232034690ac59d
parent5464c3a0e9a037b63d5229cdea08dddc01a98aac
selftests/bpf: fix bpf_target_sparc check

bpf_helpers.h fails to compile on sparc: the code should be checking
for defined(bpf_target_sparc), but checks simply for bpf_target_sparc.

Also change #ifdef bpf_target_powerpc to #if defined() for consistency.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/bpf_helpers.h