[PATCH -next] net: phy: xgmiitorgmii: Fix non static symbol warning
Kedari Appana
kedare06 at gmail.com
Tue Aug 23 09:40:34 PDT 2016
HI,
Thanks for the patch..
On Tue, Aug 23, 2016 at 8:36 PM, Wei Yongjun <weiyj.lk at gmail.com> wrote:
> From: Wei Yongjun <weiyongjun1 at huawei.com>
>
> Fixes the following sparse warning:
>
> drivers/net/phy/xilinx_gmii2rgmii.c:61:5: warning:
> symbol 'xgmiitorgmii_probe' was not declared. Should it be static?
>
> Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>
Acked by: Kedareswara rao Appana <appanad at xilinx.com>
> ---
> drivers/net/phy/xilinx_gmii2rgmii.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c
> index e7a20ec..2e408b8 100644
> --- a/drivers/net/phy/xilinx_gmii2rgmii.c
> +++ b/drivers/net/phy/xilinx_gmii2rgmii.c
> @@ -58,7 +58,7 @@ static int xgmiitorgmii_read_status(struct phy_device *phydev)
> return 0;
> }
>
> -int xgmiitorgmii_probe(struct mdio_device *mdiodev)
> +static int xgmiitorgmii_probe(struct mdio_device *mdiodev)
> {
> struct device *dev = &mdiodev->dev;
> struct device_node *np = dev->of_node, *phy_node;
>
More information about the linux-arm-kernel
mailing list