]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Switch to void * casting in netlink helpers
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 19 Jun 2021 04:14:54 +0000 (09:44 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 22 Jun 2021 15:04:02 +0000 (17:04 +0200)
commitc33498cd4d70801533a309eaf2c9fdf3f88d1167
tree270269a64537986921e4e3338ae5594395b04be1
parentd0febcf8077defe9cb574d3b4c52a9618270ebd3
libbpf: Switch to void * casting in netlink helpers

Netlink helpers I added in 76a9f7eb235c ("libbpf: Add various netlink
helpers") used char * casts everywhere, and there were a few more that
existed from before.

Convert all of them to void * cast, as it is treated equivalently by
clang/gcc for the purposes of pointer arithmetic and to follow the
convention elsewhere in the kernel/libbpf.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210619041454.417577-2-memxor@gmail.com
tools/lib/bpf/netlink.c
tools/lib/bpf/nlattr.c
tools/lib/bpf/nlattr.h