bpf: fix warning about using plain integer as NULL
authorBo YU <tsu.yubo@gmail.com>
Fri, 8 Mar 2019 06:45:51 +0000 (01:45 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 8 Mar 2019 20:17:07 +0000 (21:17 +0100)
commit71b91a506bb05f9aef3acd57af2e835d85721942
treedb5e36b4a6f88551cc9a3b9e80a8bcce720679df
parentc57b557b644da624982c36b74f608cdb7b902868
bpf: fix warning about using plain integer as NULL

Sparse warning below:

sudo make C=2 CF=-D__CHECK_ENDIAN__ M=net/bpf/
CHECK   net/bpf//test_run.c
net/bpf//test_run.c:19:77: warning: Using plain integer as NULL pointer
./include/linux/bpf-cgroup.h:295:77: warning: Using plain integer as NULL pointer

Fixes: 8bad74f9840f ("bpf: extend cgroup bpf core to allow multiple cgroup storage types")
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Bo YU <tsu.yubo@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/bpf-cgroup.h
net/bpf/test_run.c