]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bpf: Fix cast to pointer from integer of different size warning
authorAndrii Nakryiko <andriin@fb.com>
Fri, 11 Oct 2019 17:20:53 +0000 (10:20 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 11 Oct 2019 20:28:47 +0000 (22:28 +0200)
commit2dedd7d2165565bafa89718eaadfc5d1a7865f66
tree1c5368d7853a42e07888a19c30e7747f4cd541e7
parentf97eea1756f383fefc147f4c76c54942944a3d95
bpf: Fix cast to pointer from integer of different size warning

Fix "warning: cast to pointer from integer of different size" when
casting u64 addr to void *.

Fixes: a23740ec43ba ("bpf: Track contents of read-only maps as scalars")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191011172053.2980619-1-andriin@fb.com
kernel/bpf/verifier.c