diff options
author | Patrick McHardy <kaber@trash.net> | 2007-06-05 19:38:30 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-06-07 20:40:10 (GMT) |
commit | ef7c79ed645f52bcbdd88f8d54a9702c4d3fd15d (patch) | |
tree | 4c27ec3362d958b99672366437d5eb6038dd561d /net/core/rtnetlink.c | |
parent | 14a49e1fd2bb91ba2bf0e1f06711b6dbc21de02d (diff) | |
download | linux-fsl-qoriq-ef7c79ed645f52bcbdd88f8d54a9702c4d3fd15d.tar.xz |
[NETLINK]: Mark netlink policies const
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 27da9cd..a8a5093 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -551,7 +551,7 @@ cont: return skb->len; } -static struct nla_policy ifla_policy[IFLA_MAX+1] __read_mostly = { +static const struct nla_policy ifla_policy[IFLA_MAX+1] = { [IFLA_IFNAME] = { .type = NLA_STRING, .len = IFNAMSIZ-1 }, [IFLA_MAP] = { .len = sizeof(struct rtnl_link_ifmap) }, [IFLA_MTU] = { .type = NLA_U32 }, |