summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_fq.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-10-25 18:22:04 +0200
committerJakub Kicinski <kuba@kernel.org>2023-10-27 01:24:09 +0200
commitea23fbd2a8f7dadfa9cd9b9d73f3b8a69eec0671 (patch)
tree947c27968803abfa32d76edf4fda8967d77423be /net/sched/sch_fq.c
parentnet/mlx5: fix uninit value use (diff)
downloadlinux-ea23fbd2a8f7dadfa9cd9b9d73f3b8a69eec0671.tar.xz
linux-ea23fbd2a8f7dadfa9cd9b9d73f3b8a69eec0671.zip
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>
Diffstat (limited to 'net/sched/sch_fq.c')
-rw-r--r--net/sched/sch_fq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c
index bf9d00518a60..0fd18c344ab5 100644
--- a/net/sched/sch_fq.c
+++ b/net/sched/sch_fq.c
@@ -897,7 +897,7 @@ static int fq_resize(struct Qdisc *sch, u32 log)
return 0;
}
-static struct netlink_range_validation iq_range = {
+static const struct netlink_range_validation iq_range = {
.max = INT_MAX,
};