# Re: \[PATCH net-next\] netlink: make range pointers in policies const

- From: Nikolay Aleksandrov \<razor@blackwall.org\>
- Date: 2023-10-25 19:12:20 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/10/11275565
- Thread: https://ratatoskr.run/netdev/2023/10/11275548/t.md

```text
On 10/25/23 19:22, Jakub Kicinski wrote:
> 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.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: <redacted>
> CC: andy@greyhouse.net
> CC: dsahern@kernel.org
> CC: jhs@mojatatu.com
> CC: <redacted>
> CC: jiri@resnulli.us
> CC: vinicius.gomes@intel.com
> CC: johannes@sipsolutions.net
> CC: razor@blackwall.org
> CC: idosch@nvidia.com
> CC: <redacted>
> ---
>   drivers/net/bonding/bond_netlink.c | 2 +-
>   drivers/net/vxlan/vxlan_mdb.c      | 2 +-
>   include/net/netlink.h              | 4 ++--
>   net/ipv6/ioam6_iptunnel.c          | 2 +-
>   net/sched/sch_fq.c                 | 2 +-
>   net/sched/sch_fq_pie.c             | 2 +-
>   net/sched/sch_qfq.c                | 2 +-
>   net/sched/sch_taprio.c             | 2 +-
>   net/wireless/nl80211.c             | 2 +-
>   tools/net/ynl/ynl-gen-c.py         | 2 +-
>   10 files changed, 11 insertions(+), 11 deletions(-)
>

Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>


```
