mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 23:23:03 +00:00
10d3340441
The new set of drivers for RZ/G2L MTU3a tries to enable compile-testing the individual client drivers even when the MFD portion is disabled but gets it wrong, causing a link failure when the core is in a loadable module but the other drivers are built-in: x86_64-linux-ld: drivers/pwm/pwm-rz-mtu3.o: in function `rz_mtu3_pwm_apply': pwm-rz-mtu3.c:(.text+0x4bf): undefined reference to `rz_mtu3_8bit_ch_write' x86_64-linux-ld: pwm-rz-mtu3.c:(.text+0x509): undefined reference to `rz_mtu3_disable' arm-linux-gnueabi-ld: drivers/counter/rz-mtu3-cnt.o: in function `rz_mtu3_cascade_counts_enable_get': rz-mtu3-cnt.c:(.text+0xbec): undefined reference to `rz_mtu3_shared_reg_read' It seems better not to add the extra complexity here but instead just use a normal hard dependency, so remove the #else portion in the header along with the "|| COMPILE_TEST". This could also be fixed by having slightly more elaborate Kconfig dependencies or using the cursed 'IS_REACHABLE()' helper, but in practice it's already possible to compile-test all these drivers by enabling the mtd portion. Fixes: |
||
---|---|---|
.. | ||
104-quad-8.c | ||
counter-chrdev.c | ||
counter-chrdev.h | ||
counter-core.c | ||
counter-sysfs.c | ||
counter-sysfs.h | ||
ftm-quaddec.c | ||
i8254.c | ||
intel-qep.c | ||
interrupt-cnt.c | ||
Kconfig | ||
Makefile | ||
microchip-tcb-capture.c | ||
rz-mtu3-cnt.c | ||
stm32-lptimer-cnt.c | ||
stm32-timer-cnt.c | ||
ti-ecap-capture.c | ||
ti-eqep.c |