netlink: remove type-unsafe validation_data pointer
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Apr 2020 20:13:05 +0000 (22:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 00:51:41 +0000 (17:51 -0700)
commit47a1494b8208461094923400c396ce4b8163c064
tree922bbadbfa571fae66f3c3503d7e2331c403c632
parent4d73ce19243eaea6277310e971131a74eb3b1ef0
netlink: remove type-unsafe validation_data pointer

In the netlink policy, we currently have a void *validation_data
that's pointing to different things:
 * a u32 value for bitfield32,
 * the netlink policy for nested/nested array
 * the string for NLA_REJECT

Remove the pointer and place appropriate type-safe items in the
union instead.

While at it, completely dissolve the pointer for the bitfield32
case and just put the value there directly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
lib/nlattr.c
net/sched/act_api.c
net/sched/sch_red.c