git: cfd1aabac12f - stable/15 - i2ctinyusb: do not list i2ctinyusb.c twice in SRCS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Nov 2026 04:33:27 UTC
The branch stable/15 has been updated by delphij:
URL: https://cgit.FreeBSD.org/src/commit/?id=cfd1aabac12fc239d1c9b8433b29c68a25a7e5b6
commit cfd1aabac12fc239d1c9b8433b29c68a25a7e5b6
Author: Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-11-03 03:00:58 +0000
Commit: Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-11-10 04:31:31 +0000
i2ctinyusb: do not list i2ctinyusb.c twice in SRCS
The module Makefile named its only source file in both the SRCS= line
and the SRCS+= line that follows. bsd.kmod.mk tolerates the duplicate
in a normal build, but when the kernel is built with -flto=thin the
linker sees the same bitcode object twice and refuses to link the
module ("Expected at most one ThinLTO module per bitcode file").
Fixes: 54e231b373ef
(cherry picked from commit b5cd411af6418986fa0da9c12d02b9f26c344a4a)
---
sys/modules/usb/i2ctinyusb/Makefile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/modules/usb/i2ctinyusb/Makefile b/sys/modules/usb/i2ctinyusb/Makefile
index 9cb37843935c..340e7d56ca43 100644
--- a/sys/modules/usb/i2ctinyusb/Makefile
+++ b/sys/modules/usb/i2ctinyusb/Makefile
@@ -29,7 +29,6 @@ S= ${SRCTOP}/sys
.PATH: $S/dev/usb/misc
KMOD= i2ctinyusb
-SRCS= i2ctinyusb.c
-SRCS+= i2ctinyusb.c device_if.h bus_if.h opt_usb.h usbdevs.h iicbus_if.h
+SRCS= i2ctinyusb.c device_if.h bus_if.h opt_usb.h usbdevs.h iicbus_if.h
.include <bsd.kmod.mk>