From: Vivien Didelot Date: Fri, 14 Jun 2019 17:49:20 +0000 (-0400) Subject: net: dsa: make cpu_dp non const X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=68b2d4a844e157c08773fcd8f412ba1a37bf45b8;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- 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;