Thread (2 messages) 2 messages, 2 authors, 2020-09-29

Re: [bpf-next PATCH] bpf, selftests: Fix cast to smaller integer type 'int' warning in raw_tp

From: Alexei Starovoitov <hidden>
Date: 2020-09-29 04:35:05
Also in: bpf

On Mon, Sep 28, 2020 at 6:51 PM John Fastabend [off-list ref] wrote:
Fix warning in bpf selftests,

progs/test_raw_tp_test_run.c:18:10: warning: cast to smaller integer type 'int' from 'struct task_struct *' [-Wpointer-to-int-cast]

Change int type cast to long to fix. Discovered with gcc-9 and llvm-11+
where llvm was recent main branch.

Fixes: 09d8ad16885ee ("selftests/bpf: Add raw_tp_test_run")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Applied. Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help