On 9/19/18 5:08 AM, Johannes Berg wrote: > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > The validation data is only used within the policy that > should usually already be const, and isn't changed in any > code that uses it. Therefore, make the validation_data > pointer const. > > While at it, remove the duplicate variable in the bitfield > validation that I'd otherwise have to change to const. > > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> > --- > include/net/netlink.h | 2 +- > lib/nlattr.c | 5 ++--- > 2 files changed, 3 insertions(+), 4 deletions(-) > Reviewed-by: David Ahern <dsahern@xxxxxxxxx>