diff options
author | Vivien Didelot <vivien.didelot@gmail.com> | 2019-06-14 13:49:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-14 23:20:07 -0400 |
commit | 68b2d4a844e157c08773fcd8f412ba1a37bf45b8 (patch) | |
tree | aff6b4ec74cb3c62df0f7eb80c49e1a35f1cfe2f /include/net/dsa.h | |
parent | 14aafbd822333684f6595fb492f05eb054354a72 (diff) |
net: dsa: make cpu_dp non const
A port may trigger operations on its dedicated CPU port, so using
cpu_dp as const will raise warnings. Make cpu_dp non const.
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r-- | include/net/dsa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 82a2baa2dc48..1e8650fa8acc 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h | |||
@@ -181,7 +181,7 @@ struct dsa_port { | |||
181 | struct dsa_switch *ds; | 181 | struct dsa_switch *ds; |
182 | unsigned int index; | 182 | unsigned int index; |
183 | const char *name; | 183 | const char *name; |
184 | const struct dsa_port *cpu_dp; | 184 | struct dsa_port *cpu_dp; |
185 | const char *mac; | 185 | const char *mac; |
186 | struct device_node *dn; | 186 | struct device_node *dn; |
187 | unsigned int ageing_time; | 187 | unsigned int ageing_time; |