usb: typec: ucsi: fix link error on randconfig
Subsystems (2)
Quoted 17 lines · Heikki Krogerus
If building a kernel without FTRACE but with TRACING, ucsi.ko fails to link due to missing trace events. Fix this by using the correct
Kconfigsymbol onMakefile.Reported-by Tobias Regnery <[email protected]>Fixes c1b0bc2dabfa ("usb: typec: Add support for UCSI interface")Cc <[email protected]>Signed-off-by Heikki Krogerus <[email protected]>--- drivers/usb/typec/ucsi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/typec/ucsi/Makefile +0
-0
drivers/usb/typec/ucsi/Makefile obj-$(CONFIG_TYPEC_UCSI) += typec_ucsi.o · line 10
Quoted 7 lines
drivers/usb/typec/ucsi/Makefile +1
-1@@ -5,6 +5,6 @@ obj-$(CONFIG_TYPEC_UCSI) += typec_ucsi.o typec_ucsi-y := ucsi.o -typec_ucsi-$(CONFIG_FTRACE) += trace.o +typec_ucsi-$(CONFIG_TRACING) += trace.o obj-$(CONFIG_UCSI_ACPI) += ucsi_acpi.o
Tobias send his own version for this. His patch has a better explanation, so let's use that instead.
Thanks,