[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAADnVQKUmuLU5GDdy7FS-=+no=FhC1u6iCCp6zGnN_X7kAG5uA@mail.gmail.com>
Date: Mon, 28 Sep 2020 21:34:50 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: John Fastabend <john.fastabend@...il.com>
Cc: Song Liu <songliubraving@...com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Network Development <netdev@...r.kernel.org>,
bpf <bpf@...r.kernel.org>
Subject: Re: [bpf-next PATCH] bpf, selftests: Fix cast to smaller integer type
'int' warning in raw_tp
On Mon, Sep 28, 2020 at 6:51 PM John Fastabend <john.fastabend@...il.com> 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@...il.com>
Applied. Thanks
Powered by blists - more mailing lists