Message ID | 20190611214747.22285-3-vivien.didelot@gmail.com |
---|---|
State | Superseded |
Delegated to: | David Miller |
Headers | show |
Series | net: dsa: use switchdev attr and obj handlers | expand |
On 6/11/19 2:47 PM, Vivien Didelot wrote: > A port may trigger operations on its dedicated CPU port, so using > cpu_dp as const will raise warnings. Make cpu_dp non const. Do we need that change now, or could this be part of another series? Anyway: > > Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
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 { 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;
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> --- include/net/dsa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)