aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2025-02-17 09:29:30 +0800
committerJakub Kicinski <kuba@kernel.org>2025-02-18 18:08:18 -0800
commit9faaaef27c5df617223ad725f3fac9a21d333e81 (patch)
treeee918a13f06f448db9315b1b0c99f83a419f2ba7 /drivers
parentMerge branch 'net-phy-improve-and-simplify-eee-handling-in-phylib' (diff)
downloadwireguard-linux-9faaaef27c5df617223ad725f3fac9a21d333e81.tar.xz
wireguard-linux-9faaaef27c5df617223ad725f3fac9a21d333e81.zip
net: freescale: ucc_geth: make ugeth_mac_ops be static const
sparse warning: sparse: symbol 'ugeth_mac_ops' was not declared. Should it be static. Add static to fix sparse warnings and add const. phylink_create() will accept a const struct. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/202502141128.9HfxcdIE-lkp@intel.com Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/freescale/ucc_geth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c
index 88510f822759..affd5a6c44e7 100644
--- a/drivers/net/ethernet/freescale/ucc_geth.c
+++ b/drivers/net/ethernet/freescale/ucc_geth.c
@@ -3408,7 +3408,7 @@ static int ucc_geth_parse_clock(struct device_node *np, const char *which,
return 0;
}
-struct phylink_mac_ops ugeth_mac_ops = {
+static const struct phylink_mac_ops ugeth_mac_ops = {
.mac_link_up = ugeth_mac_link_up,
.mac_link_down = ugeth_mac_link_down,
.mac_config = ugeth_mac_config,