netlink: make range pointers in policies const
authorJakub Kicinski <kuba@kernel.org>
Wed, 25 Oct 2023 16:22:04 +0000 (09:22 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Oct 2023 23:24:09 +0000 (16:24 -0700)
commitea23fbd2a8f7dadfa9cd9b9d73f3b8a69eec0671
tree947c27968803abfa32d76edf4fda8967d77423be
parent5af8d8ce643478d754ef72fc239466f6ad0e2562
netlink: make range pointers in policies const

struct nla_policy is usually constant itself, but unless
we make the ranges inside constant we won't be able to
make range structs const. The ranges are not modified
by the core.

Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20231025162204.132528-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_netlink.c
drivers/net/vxlan/vxlan_mdb.c
include/net/netlink.h
net/ipv6/ioam6_iptunnel.c
net/sched/sch_fq.c
net/sched/sch_fq_pie.c
net/sched/sch_qfq.c
net/sched/sch_taprio.c
net/wireless/nl80211.c
tools/net/ynl/ynl-gen-c.py