oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [lunn:v6.3-rc2-net-next-phy-leds 5/15] drivers/net/phy/phy_device.c:3025: undefined reference to `devm_led_classdev_register_ext'
@ 2023-03-22 21:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-22 21:11 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: oe-kbuild-all, Christian Marangi

tree:   https://github.com/lunn/linux.git v6.3-rc2-net-next-phy-leds
head:   31990696068654b2fc49ca6be815e8a07f5eb30c
commit: 152381bd1930ab5201b26cceccad9ee422f287e7 [5/15] net: phy: Add a binding for PHY LEDs
config: i386-randconfig-a005 (https://download.01.org/0day-ci/archive/20230323/202303230542.PH58J4P2-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/lunn/linux/commit/152381bd1930ab5201b26cceccad9ee422f287e7
        git remote add lunn https://github.com/lunn/linux.git
        git fetch --no-tags lunn v6.3-rc2-net-next-phy-leds
        git checkout 152381bd1930ab5201b26cceccad9ee422f287e7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=i386 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/202303230542.PH58J4P2-lkp@intel.com/

All errors (new ones prefixed by >>):

   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'


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-22 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 21:11 [lunn:v6.3-rc2-net-next-phy-leds 5/15] drivers/net/phy/phy_device.c:3025: undefined reference to `devm_led_classdev_register_ext' kernel test robot

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).