[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201905280705.DDVEk9rs%lkp@intel.com>
Date: Tue, 28 May 2019 07:07:18 +0800
From: kbuild test robot <lkp@...el.com>
To: Ioana Ciornei <ioana.ciornei@....com>
Cc: kbuild-all@...org, linux@...linux.org.uk, f.fainelli@...il.com,
andrew@...n.ch, hkallweit1@...il.com,
maxime.chevallier@...tlin.com, olteanv@...il.com,
thomas.petazzoni@...tlin.com, davem@...emloft.net,
vivien.didelot@...il.com, netdev@...r.kernel.org,
Ioana Ciornei <ioana.ciornei@....com>
Subject: Re: [PATCH 03/11] net: phy: Check against net_device being NULL
Hi Ioana,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
[also build test WARNING on v5.2-rc2 next-20190524]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Ioana-Ciornei/Decoupling-PHYLINK-from-struct-net_device/20190528-061507
config: x86_64-randconfig-x004201921-201921 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
drivers/net//phy/phy_device.c: In function 'phy_connect_direct':
>> drivers/net//phy/phy_device.c:952:10: warning: return makes integer from pointer without a cast [-Wint-conversion]
return ERR_PTR(-EINVAL);
^~~~~~~~~~~~~~~~
vim +952 drivers/net//phy/phy_device.c
937
938 /**
939 * phy_connect_direct - connect an ethernet device to a specific phy_device
940 * @dev: the network device to connect
941 * @phydev: the pointer to the phy device
942 * @handler: callback function for state change notifications
943 * @interface: PHY device's interface
944 */
945 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
946 void (*handler)(struct net_device *),
947 phy_interface_t interface)
948 {
949 int rc;
950
951 if (!dev)
> 952 return ERR_PTR(-EINVAL);
953
954 rc = phy_attach_direct(dev, phydev, phydev->dev_flags, interface);
955 if (rc)
956 return rc;
957
958 phy_prepare_link(phydev, handler);
959 if (phy_interrupt_is_valid(phydev))
960 phy_request_interrupt(phydev);
961
962 return 0;
963 }
964 EXPORT_SYMBOL(phy_connect_direct);
965
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (28306 bytes)
Powered by blists - more mailing lists