All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christian Marangi <ansuelsmth@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [net-next PATCH v6 05/16] net: phy: Add a binding for PHY LEDs
Date: Thu, 30 Mar 2023 23:05:11 +0800	[thread overview]
Message-ID: <202303302228.ADozXwG9-lkp@intel.com> (raw)
In-Reply-To: <20230327141031.11904-6-ansuelsmth@gmail.com>

Hi Christian,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Christian-Marangi/net-dsa-qca8k-move-qca8k_port_to_phy-to-header/20230327-221554
patch link:    https://lore.kernel.org/r/20230327141031.11904-6-ansuelsmth%40gmail.com
patch subject: [net-next PATCH v6 05/16] net: phy: Add a binding for PHY LEDs
config: arm-pxa_defconfig (https://download.01.org/0day-ci/archive/20230330/202303302228.ADozXwG9-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/c92f680d5120a9a315ef75d26c0233aa11091a20
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Christian-Marangi/net-dsa-qca8k-move-qca8k_port_to_phy-to-header/20230327-221554
        git checkout c92f680d5120a9a315ef75d26c0233aa11091a20
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303302228.ADozXwG9-lkp@intel.com/

All errors (new ones prefixed by >>):

   arm-linux-gnueabi-ld: drivers/net/phy/phy_device.o: in function `of_phy_led':
>> drivers/net/phy/phy_device.c:3025: undefined reference to `devm_led_classdev_register_ext'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PHYLIB
   Depends on [m]: NETDEVICES [=y] && (LEDS_CLASS [=m] || LEDS_CLASS [=m]=n)
   Selected by [y]:
   - KS8851 [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_MICREL [=y] && SPI [=y] && PTP_1588_CLOCK_OPTIONAL [=y]
   Selected by [m]:
   - PHYLINK [=m] && NETDEVICES [=y]
   - AX88796 [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_8390 [=y] && (ARM [=y] || MIPS || SUPERH || ZORRO || COMPILE_TEST [=n])
   - R8169 [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_REALTEK [=y] && PCI [=y]
   - SMSC911X [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_SMSC [=y] && HAS_IOMEM [=y]
   - USB_NET_AX88179_178A [=m] && NETDEVICES [=y] && USB_NET_DRIVERS [=m] && USB_USBNET [=m]
   - USB_NET_SMSC95XX [=m] && NETDEVICES [=y] && USB_NET_DRIVERS [=m] && USB_USBNET [=m]


vim +3025 drivers/net/phy/phy_device.c

  3000	
  3001	static int of_phy_led(struct phy_device *phydev,
  3002			      struct device_node *led)
  3003	{
  3004		struct device *dev = &phydev->mdio.dev;
  3005		struct led_init_data init_data = {};
  3006		struct led_classdev *cdev;
  3007		struct phy_led *phyled;
  3008		int err;
  3009	
  3010		phyled = devm_kzalloc(dev, sizeof(*phyled), GFP_KERNEL);
  3011		if (!phyled)
  3012			return -ENOMEM;
  3013	
  3014		cdev = &phyled->led_cdev;
  3015	
  3016		err = of_property_read_u32(led, "reg", &phyled->index);
  3017		if (err)
  3018			return err;
  3019	
  3020		cdev->brightness_set_blocking = phy_led_set_brightness;
  3021		cdev->max_brightness = 1;
  3022		init_data.devicename = dev_name(&phydev->mdio.dev);
  3023		init_data.fwnode = of_fwnode_handle(led);
  3024	
> 3025		err = devm_led_classdev_register_ext(dev, cdev, &init_data);
  3026		if (err)
  3027			return err;
  3028	
  3029		list_add(&phyled->list, &phydev->leds);
  3030	
  3031		return 0;
  3032	}
  3033	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

  reply	other threads:[~2023-03-30 15:08 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-27 14:10 [net-next PATCH v6 00/16] net: Add basic LED support for switch/phy Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 01/16] net: dsa: qca8k: move qca8k_port_to_phy() to header Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-13 14:05   ` Florian Fainelli
2023-04-13 14:05     ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 02/16] net: dsa: qca8k: add LEDs basic support Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 03/16] net: dsa: qca8k: add LEDs blink_set() support Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-13 14:06   ` Florian Fainelli
2023-04-13 14:06     ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 04/16] leds: Provide stubs for when CLASS_LED & NEW_LEDS are disabled Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-13 13:58   ` Florian Fainelli
2023-04-13 13:58     ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 05/16] net: phy: Add a binding for PHY LEDs Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-03-30 15:05   ` kernel test robot [this message]
2023-03-30 15:56   ` kernel test robot
2023-03-27 14:10 ` [net-next PATCH v6 06/16] net: phy: phy_device: Call into the PHY driver to set LED brightness Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-13 13:57   ` Florian Fainelli
2023-04-13 13:57     ` Florian Fainelli
2023-04-12 23:11     ` Christian Marangi
2023-04-12 23:11       ` Christian Marangi
2023-04-13 14:04       ` Florian Fainelli
2023-04-13 14:04         ` Florian Fainelli
2023-04-13 14:43         ` Andrew Lunn
2023-04-13 14:43           ` Andrew Lunn
2023-04-13 14:48     ` Andrew Lunn
2023-04-13 14:48       ` Andrew Lunn
2023-03-27 14:10 ` [net-next PATCH v6 07/16] net: phy: marvell: Add software control of the LEDs Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-13 13:55   ` Florian Fainelli
2023-04-13 13:55     ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 08/16] net: phy: phy_device: Call into the PHY driver to set LED blinking Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-13 13:56   ` Florian Fainelli
2023-04-13 13:56     ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 09/16] net: phy: marvell: Implement led_blink_set() Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-13 13:58   ` Florian Fainelli
2023-04-13 13:58     ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 10/16] dt-bindings: leds: Document support for generic ethernet LEDs Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-03-31 20:09   ` Rob Herring
2023-03-31 20:09     ` Rob Herring
2023-03-27 14:10 ` [net-next PATCH v6 11/16] dt-bindings: net: ethernet-controller: Document support for LEDs node Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 12/16] dt-bindings: net: dsa: qca8k: add LEDs definition example Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-06 14:10   ` Rob Herring
2023-04-06 14:10     ` Rob Herring
2023-04-12 22:42     ` Christian Marangi
2023-04-12 22:42       ` Christian Marangi
2023-04-13 13:49       ` Andrew Lunn
2023-04-13 13:49         ` Andrew Lunn
2023-03-27 14:10 ` [net-next PATCH v6 13/16] ARM: dts: qcom: ipq8064-rb3011: Drop unevaluated properties in switch nodes Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-04-09 16:15   ` Jonathan McDowell
2023-04-09 16:15     ` Jonathan McDowell
2023-03-27 14:10 ` [net-next PATCH v6 14/16] ARM: dts: qcom: ipq8064-rb3011: Add Switch LED for each port Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 15/16] dt-bindings: net: phy: Document support for LEDs node Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 16/16] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port Christian Marangi
2023-03-27 14:10   ` Christian Marangi
2023-03-28  8:31   ` Pavel Machek
2023-03-28  8:31     ` Pavel Machek
2023-03-28 11:59     ` Andrew Lunn
2023-03-28 11:59       ` Andrew Lunn
2023-04-03 19:54       ` Pavel Machek
2023-04-03 19:54         ` Pavel Machek
2023-04-04 19:52         ` Andrew Lunn
2023-04-04 19:52           ` Andrew Lunn
2023-04-06  9:18           ` Pavel Machek
2023-04-06  9:18             ` Pavel Machek
2023-04-06 13:54             ` Andrew Lunn
2023-04-06 13:54               ` Andrew Lunn
2023-04-03 18:46   ` Rob Herring
2023-04-03 18:46     ` Rob Herring
2023-04-03 19:28     ` Andrew Lunn
2023-04-03 19:28       ` Andrew Lunn
2023-03-28  1:46 ` [net-next PATCH v6 00/16] net: Add basic LED support for switch/phy Jakub Kicinski
2023-03-28  1:46   ` Jakub Kicinski

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=202303302228.ADozXwG9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ansuelsmth@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.