• Geert Uytterhoeven's avatar
    test_bpf: Use ULL suffix for 64-bit constants · 86f8e247
    Geert Uytterhoeven authored
    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: 85f68fe8 ("bpf, arm64: implement jiting of BPF_XADD")
    Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
    Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    86f8e247
test_bpf.c 137 KB