mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
14aafbd822
commit
68b2d4a844
1 file changed
+1
-1
+1
-1
@@ -181,7 +181,7 @@ struct dsa_port {
|
||||
struct dsa_switch *ds;
|
||||
unsigned int index;
|
||||
const char *name;
|
||||
const struct dsa_port *cpu_dp;
|
||||
struct dsa_port *cpu_dp;
|
||||
const char *mac;
|
||||
struct device_node *dn;
|
||||
unsigned int ageing_time;
|
||||
|
||||
Reference in new issue
Block a user