]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: freescale: ucc_geth: make ugeth_mac_ops be static const
authorPei Xiao <xiaopei01@kylinos.cn>
Mon, 17 Feb 2025 01:29:30 +0000 (09:29 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Feb 2025 02:08:18 +0000 (18:08 -0800)
commit9faaaef27c5df617223ad725f3fac9a21d333e81
treeee918a13f06f448db9315b1b0c99f83a419f2ba7
parent59ed446bc4eb793114dc879767406cf9550e157d
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>
drivers/net/ethernet/freescale/ucc_geth.c