Skip to content

Commit 9faaaef

Browse files
Pei Xiaokuba-moo
authored andcommitted
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 <[email protected]> Closes: https://lore.kernel.org/[email protected] Signed-off-by: Pei Xiao <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 59ed446 commit 9faaaef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/ucc_geth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3408,7 +3408,7 @@ static int ucc_geth_parse_clock(struct device_node *np, const char *which,
34083408
return 0;
34093409
}
34103410

3411-
struct phylink_mac_ops ugeth_mac_ops = {
3411+
static const struct phylink_mac_ops ugeth_mac_ops = {
34123412
.mac_link_up = ugeth_mac_link_up,
34133413
.mac_link_down = ugeth_mac_link_down,
34143414
.mac_config = ugeth_mac_config,

0 commit comments

Comments
 (0)