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

From
David Ahern <dsahern@kernel.org>
Date
2023-10-25 18:41:21
Also in
netdev
Reply to
Jakub Kicinski, 2023-10-25
On 10/25/23 10:22 AM, 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: David Ahern <dsahern@kernel.org>
Thread (6 messages) 6 messages, 6 authors, last reply 2023-10-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help