[PATCH] net: freescale: ucc_geth: make ugeth_mac_ops be static

Andrew Lunn andrew at lunn.ch
Sat Feb 15 00:14:29 AEDT 2025


On Fri, Feb 14, 2025 at 02:11:07PM +0800, xiaopeitux at foxmail.com wrote:
> From: Pei Xiao <xiaopei01 at kylinos.cn>
> 
> sparse warning:
>     sparse: symbol 'ugeth_mac_ops' was not declared. Should it be
> static.
> 
> Add static to fix sparse warnings.

While you are touching it, can it also be made const?

struct phylink *phylink_create(struct phylink_config *,
			       const struct fwnode_handle *,
			       phy_interface_t,
			       const struct phylink_mac_ops *);

phylink_create() will accept a const struct *.

	Andrew


More information about the Linuxppc-dev mailing list