mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
net/smc: mark smc_pnet_policy as const
Netlink policies are generally declared as const. This is safer and prevents potential bugs. Signed-off-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
745bd6f44c
commit
09d0310f07
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
static struct net_device *pnet_find_base_ndev(struct net_device *ndev);
|
static struct net_device *pnet_find_base_ndev(struct net_device *ndev);
|
||||||
|
|
||||||
static struct nla_policy smc_pnet_policy[SMC_PNETID_MAX + 1] = {
|
static const struct nla_policy smc_pnet_policy[SMC_PNETID_MAX + 1] = {
|
||||||
[SMC_PNETID_NAME] = {
|
[SMC_PNETID_NAME] = {
|
||||||
.type = NLA_NUL_STRING,
|
.type = NLA_NUL_STRING,
|
||||||
.len = SMC_MAX_PNETID_LEN
|
.len = SMC_MAX_PNETID_LEN
|
||||||
|
|
Loading…
Add table
Reference in a new issue