linux/drivers
Heiner Kallweit a2634a5ffc r8169: fix building with CONFIG_LEDS_CLASS=m
When r8169 is built-in but LED support is a loadable module, the new
code to drive the LED causes a link failure:

ld: drivers/net/ethernet/realtek/r8169_leds.o: in function `rtl8168_init_leds':
r8169_leds.c:(.text+0x36c): undefined reference to `devm_led_classdev_register_ext'

LED support is an optional feature, so fix this issue by adding a Kconfig
symbol R8169_LEDS that is guaranteed to be false if r8169 is built-in
and LED core support is a module. As a positive side effect of this change
r8169_leds.o no longer is built under this configuration.

Fixes: 18764b883e ("r8169: add support for LED's on RTL8168/RTL8101")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312281159.9TPeXbNd-lkp@intel.com/
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Simon Horman <horms@kernel.org> # build-tested
Tested-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/d055aeb5-fe5c-4ccf-987f-5af93a17537b@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-01-04 16:57:14 -08:00
..
accel
accessibility
acpi
amba
android
ata
atm
auxdisplay
base Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-12-14 17:14:41 -08:00
bcma
block
bluetooth Bluetooth: Add device 13d3:3572 IMC Networks Bluetooth Radio 2023-12-22 13:00:11 -05:00
bus
cache
cdrom
cdx
char
clk Fixes for a wrong clockname, a wrong clock-parent, a wrong clock-gate 2023-12-13 15:26:24 -08:00
clocksource
comedi
connector netlink: introduce typedef for filter function 2023-12-19 15:31:40 +01:00
counter
cpufreq
cpuidle
crypto
cxl cxl/pmu: Ensure put_device on pmu devices 2023-12-14 21:54:45 -08:00
dax
dca
devfreq
dio
dma
dma-buf
dpll Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-12-14 17:14:41 -08:00
edac EDAC/versal: Read num_csrows and num_chans using the correct bitfield macro 2023-12-15 13:01:27 +01:00
eisa
extcon
firewire
firmware EFI fixes for v6.7 #2 2023-12-13 10:54:50 -08:00
fpga
fsi
gnss
gpio
gpu drm/nouveau/kms/nv50-: Don't allow inheritance of headless iors 2023-12-15 14:11:47 +10:00
greybus
hid hid-for-linus-2023121901 2023-12-18 16:47:21 -08:00
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md dm audit: fix Kconfig so DM_AUDIT depends on BLK_DEV_DM 2023-12-18 13:11:05 -05:00
media Revert BPF token-related functionality 2023-12-19 08:23:03 -08:00
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net r8169: fix building with CONFIG_LEDS_CLASS=m 2024-01-04 16:57:14 -08:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-12-21 22:17:23 +01:00
pcmcia
peci
perf
phy phy fixes for 6.7 2023-12-17 09:19:27 -08:00
pinctrl Immutable tag for the PEF2256 framer 2023-12-12 15:14:38 -08:00
platform Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-12-21 22:17:23 +01:00
pmdomain
pnp
power
powercap
pps
ps3
ptp ptp: ocp: Use DEFINE_RES_*() in place 2024-01-02 12:34:10 +00:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 net/smc: manage system EID in SMC stack instead of ISM driver 2023-12-26 20:24:33 +00:00
sbus
scsi
sh
siox
slimbus
soc
soundwire
spi spi: atmel: Fix clock issue when using devices with different polarities 2023-12-14 10:56:37 +00:00
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs scsi: ufs: core: Store min and max clk freq from OPP table 2023-12-13 22:28:28 -05:00
uio
usb
vdpa
vfio
vhost virtio/vsock: send credit update during setting SO_RCVLOWAT 2023-12-15 10:37:35 +00:00
video
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile