]> git.baikalelectronics.ru Git - kernel.git/commit
test_bpf: Use ULL suffix for 64-bit constants
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 3 May 2017 11:31:04 +0000 (13:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 May 2017 13:51:26 +0000 (09:51 -0400)
commit9e9f5251865300fc7028214fb9b9b5337701a835
tree7ced2b842e32bff6ff7d5f13bd8e4b0f4bc43ce5
parent25998e0f06586909307a235d735458bd24d44ebe
test_bpf: Use ULL suffix for 64-bit constants

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: aa2c7e10646bc5b7 ("bpf, arm64: implement jiting of BPF_XADD")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c