• Ben Dooks (Codethink)'s avatar
    xdp: Fix type of string pointer in __XDP_ACT_SYM_TAB · 5e5b03d1
    Ben Dooks (Codethink) authored
    The table entry in __XDP_ACT_SYM_TAB for the last item is set
    to { -1, 0 } where it should be { -1, NULL } as the second item
    is a pointer to a string.
    
    Fixes the following sparse warnings:
    
    ./include/trace/events/xdp.h:28:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:53:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:82:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:140:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:155:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:190:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:225:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:260:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:318:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:356:1: warning: Using plain integer as NULL pointer
    ./include/trace/events/xdp.h:390:1: warning: Using plain integer as NULL pointer
    Signed-off-by: default avatarBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Acked-by: default avatarAndrii Nakryiko <andriin@fb.com>
    Link: https://lore.kernel.org/bpf/20191022125925.10508-1-ben.dooks@codethink.co.uk
    5e5b03d1
xdp.h 10.2 KB