netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: kbuild-all@01.org, linux@armlinux.org.uk, f.fainelli@gmail.com,
	andrew@lunn.ch, hkallweit1@gmail.com,
	maxime.chevallier@bootlin.com, olteanv@gmail.com,
	thomas.petazzoni@bootlin.com, davem@davemloft.net,
	vivien.didelot@gmail.com, netdev@vger.kernel.org,
	Ioana Ciornei <ioana.ciornei@nxp.com>
Subject: Re: [PATCH 03/11] net: phy: Check against net_device being NULL
Date: Tue, 28 May 2019 07:07:18 +0800	[thread overview]
Message-ID: <201905280705.DDVEk9rs%lkp@intel.com> (raw)
In-Reply-To: <1558992127-26008-4-git-send-email-ioana.ciornei@nxp.com>

[-- Attachment #1: Type: text/plain, Size: 2087 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28306 bytes --]

  reply	other threads:[~2019-05-27 23:10 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-27 21:21 [PATCH 00/11] Decoupling PHYLINK from struct net_device Ioana Ciornei
2019-05-27 21:21 ` [PATCH 01/11] net: phy: Add phy_sysfs_create_links helper function Ioana Ciornei
2019-05-27 23:32   ` Fabio Estevam
2019-05-28  6:53     ` Ioana Ciornei
2019-05-27 21:21 ` [PATCH 02/11] net: phy: Guard against the presence of a netdev Ioana Ciornei
2019-05-27 21:21 ` [PATCH 03/11] net: phy: Check against net_device being NULL Ioana Ciornei
2019-05-27 23:07   ` kbuild test robot [this message]
2019-05-28  2:27   ` kbuild test robot
2019-05-28 15:50   ` Andrew Lunn
2019-05-28 15:51   ` Andrew Lunn
2019-05-27 21:22 ` [PATCH 04/11] net: phy: Add phy_standalone sysfs entry Ioana Ciornei
2019-05-28  2:00   ` Florian Fainelli
2019-05-27 21:22 ` [PATCH 05/11] net: phylink: Add phylink_mac_link_{up,down} wrapper functions Ioana Ciornei
2019-05-27 21:22 ` [PATCH 06/11] net: phylink: Add struct phylink_config to PHYLINK API Ioana Ciornei
2019-05-28  1:51   ` Florian Fainelli
2019-05-27 21:22 ` [PATCH 07/11] net: phylink: Add PHYLINK_DEV operation type Ioana Ciornei
2019-05-28  2:01   ` Florian Fainelli
2019-05-28 17:11     ` Ioana Ciornei
2019-05-27 21:22 ` [PATCH 08/11] net: phylink: Add phylink_{printk,err,warn,info,dbg} macros Ioana Ciornei
2019-05-28  1:53   ` Florian Fainelli
2019-05-27 21:22 ` [PATCH 09/11] net: dsa: Move the phylink driver calls into port.c Ioana Ciornei
2019-05-28  2:02   ` Florian Fainelli
2019-05-27 21:22 ` [PATCH 10/11] net: dsa: Use PHYLINK for the CPU/DSA ports Ioana Ciornei
2019-05-28  1:55   ` Florian Fainelli
2019-05-28  3:36   ` kbuild test robot
2019-05-28  3:36   ` [RFC PATCH] net: dsa: dsa_port_phylink_register() can be static kbuild test robot
2019-05-29  2:35   ` [net] 9dd6d07682: kernel_BUG_at_drivers/net/phy/mdio_bus.c kernel test robot
2019-05-29 16:11     ` Ioana Ciornei
2019-05-29 16:25       ` Russell King - ARM Linux admin
2019-05-29 20:08         ` Ioana Ciornei
2019-05-29 23:03           ` Andrew Lunn
2019-05-27 21:22 ` [PATCH 11/11] net: dsa: sja1105: Fix broken fixed-link interfaces on user ports Ioana Ciornei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201905280705.DDVEk9rs%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=hkallweit1@gmail.com \
    --cc=ioana.ciornei@nxp.com \
    --cc=kbuild-all@01.org \
    --cc=linux@armlinux.org.uk \
    --cc=maxime.chevallier@bootlin.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=vivien.didelot@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).