From: Daniel Borkmann <daniel@iogearbox•net>
To: Alexei Starovoitov <ast@plumgrid•com>,
"David S. Miller" <davem@davemloft•net>
Cc: Michael Holzheu <holzheu@linux•vnet.ibm.com>,
Fengguang Wu <fengguang.wu@intel•com>,
netdev@vger•kernel.org
Subject: Re: [PATCH net-next] test_bpf: fix sparse warnings
Date: Thu, 14 May 2015 18:10:31 +0200 [thread overview]
Message-ID: <5554C8F7.5080002@iogearbox.net> (raw)
In-Reply-To: <1431574839-7099-1-git-send-email-ast@plumgrid.com>
On 05/14/2015 05:40 AM, Alexei Starovoitov wrote:
> From: Michael Holzheu <holzheu@linux•vnet.ibm.com>
>
> Fix several sparse warnings like:
> lib/test_bpf.c:1824:25: sparse: constant 4294967295 is so big it is long
> lib/test_bpf.c:1878:25: sparse: constant 0x0000ffffffff0000 is so big it is long
>
> Fixes: cffc642d93f9 ("test_bpf: add 173 new testcases for eBPF")
> Reported-by: Fengguang Wu <fengguang.wu@intel•com>
> Signed-off-by: Michael Holzheu <holzheu@linux•vnet.ibm.com>
> Signed-off-by: Alexei Starovoitov <ast@plumgrid•com>
> ---
> lib/test_bpf.c | 122 ++++++++++++++++++++++++++++----------------------------
> 1 file changed, 61 insertions(+), 61 deletions(-)
>
...
> {
> "ALU_MOV_K: 0x0000ffffffff0000 = 0x00000000ffffffff",
> .u.insns_int = {
> - BPF_LD_IMM64(R2, 0x0000ffffffff0000),
> - BPF_LD_IMM64(R3, 0x00000000ffffffff),
> + BPF_LD_IMM64(R2, 0x0000ffffffff0000LL),
> + BPF_LD_IMM64(R3, 0x00000000ffffffffLL),
Should have been ULL, no? Anyway, the BPF_LD_IMM64() macro will cast it
correctly anyway.
Other than that:
Acked-by: Daniel Borkmann <daniel@iogearbox•net>
next prev parent reply other threads:[~2015-05-14 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-14 3:40 [PATCH net-next] test_bpf: fix sparse warnings Alexei Starovoitov
2015-05-14 16:10 ` Daniel Borkmann [this message]
2015-05-14 17:18 ` Alexei Starovoitov
2015-05-14 18:17 ` Daniel Borkmann
2015-05-15 2:47 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5554C8F7.5080002@iogearbox.net \
--to=daniel@iogearbox$(echo .)net \
--cc=ast@plumgrid$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=fengguang.wu@intel$(echo .)com \
--cc=holzheu@linux$(echo .)vnet.ibm.com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox