Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1634993

Re: [PATCH] test_bpf: Use ULL suffix for 64-bit constants

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] test_bpf: Use ULL suffix for 64-bit constants
Date 2017-05-03 16:00 +0200
Message-ID <tD2YX-6a8-29@gated-at.bofh.it> (permalink)
References <tD0Ns-4I5-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Wed,  3 May 2017 13:31:04 +0200

> On 32-bit:
> 
>     lib/test_bpf.c:4772: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4772: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4773: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4773: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4787: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4787: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4801: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4801: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4802: warning: integer constant is too large for ‘unsigned long’ type
>     lib/test_bpf.c:4802: warning: integer constant is too large for ‘unsigned long’ type
> 
> On 32-bit systems, "long" is only 32-bit.
> Replace the "UL" suffix by "ULL" to fix this.
> 
> Fixes: 85f68fe898320575 ("bpf, arm64: implement jiting of BPF_XADD")
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Applied.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] test_bpf: Use ULL suffix for 64-bit constants Geert Uytterhoeven <geert@linux-m68k.org> - 2017-05-03 13:40 +0200
  Re: [PATCH] test_bpf: Use ULL suffix for 64-bit constants Daniel Borkmann <daniel@iogearbox.net> - 2017-05-03 13:40 +0200
  Re: [PATCH] test_bpf: Use ULL suffix for 64-bit constants David Miller <davem@davemloft.net> - 2017-05-03 16:00 +0200

csiph-web