]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: fix led_classdev build errors
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 6 Jan 2021 02:18:15 +0000 (18:18 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jan 2021 00:17:14 +0000 (16:17 -0800)
commitb4a2d1767f7213fb7a934450f96f42cfa5e6e07c
tree07e23f706b5edd9273de7d79447268e3d8631b91
parent7038e7a6fa96415359442161633046de8848e55b
net: dsa: fix led_classdev build errors

Fix build errors when LEDS_CLASS=m and NET_DSA_HIRSCHMANN_HELLCREEK=y.
This limits the latter to =m when LEDS_CLASS=m.

microblaze-linux-ld: drivers/net/dsa/hirschmann/hellcreek_ptp.o: in function `hellcreek_ptp_setup':
(.text+0xf80): undefined reference to `led_classdev_register_ext'
microblaze-linux-ld: (.text+0xf94): undefined reference to `led_classdev_register_ext'
microblaze-linux-ld: drivers/net/dsa/hirschmann/hellcreek_ptp.o: in function `hellcreek_ptp_free':
(.text+0x1018): undefined reference to `led_classdev_unregister'
microblaze-linux-ld: (.text+0x1024): undefined reference to `led_classdev_unregister'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: lore.kernel.org/r/202101060655.iUvMJqS2-lkp@intel.com
Cc: Kurt Kanzenbach <kurt@linutronix.de>
Link: https://lore.kernel.org/r/20210106021815.31796-1-rdunlap@infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/hirschmann/Kconfig