Re: [PATCH bpf-next] bpf: fix compilation warning of selftests

2020-07-31 Thread Andrii Nakryiko
On Thu, Jul 30, 2020 at 11:18 PM Jianlin Lv wrote: > > Clang compiler version: 12.0.0 > The following warning appears during the selftests/bpf compilation: > > prog_tests/send_signal.c:51:3: warning: ignoring return value of ‘write’, > declared with attribute warn_unused_result [-Wunused-result] >

Re: [PATCH bpf-next] bpf: fix compilation warning of selftests

2020-07-31 Thread Daniel Borkmann
On 7/31/20 8:16 AM, Jianlin Lv wrote: Clang compiler version: 12.0.0 The following warning appears during the selftests/bpf compilation: prog_tests/send_signal.c:51:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 51 | write(pipe_c2

[PATCH bpf-next] bpf: fix compilation warning of selftests

2020-07-30 Thread Jianlin Lv
Clang compiler version: 12.0.0 The following warning appears during the selftests/bpf compilation: prog_tests/send_signal.c:51:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] 51 | write(pipe_c2p[1], buf, 1); | ^~~~