Re: [PATCH v2 bpf] selftests/bpf: fix bpf_target_sparc check

2019-07-12 Thread Daniel Borkmann
On 07/10/2019 01:56 PM, Ilya Leoshkevich wrote: > 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 Leosh

Re: [PATCH v2 bpf] selftests/bpf: fix bpf_target_sparc check

2019-07-10 Thread David Miller
From: Ilya Leoshkevich Date: Wed, 10 Jul 2019 13:56:54 +0200 > 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

Re: [PATCH v2 bpf] selftests/bpf: fix bpf_target_sparc check

2019-07-10 Thread Andrii Nakryiko
On Wed, Jul 10, 2019 at 4:57 AM Ilya Leoshkevich wrote: > > 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: I

[PATCH v2 bpf] selftests/bpf: fix bpf_target_sparc check

2019-07-10 Thread Ilya Leoshkevich
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 --- v1->v2: bpf_target_powerpc change tools/testi