git: 1c99a7d21bbb - releng/15.2 - i2ctinyusb: do not list i2ctinyusb.c twice in SRCS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Nov 2026 23:41:50 UTC
The branch releng/15.2 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=1c99a7d21bbbd4eecaf79376afbdf79e807539e1
commit 1c99a7d21bbbd4eecaf79376afbdf79e807539e1
Author: Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-11-03 03:00:58 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-11-12 23:41:15 +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").
Approved by: re (cperciva)
Fixes: 54e231b373ef
(cherry picked from commit b5cd411af6418986fa0da9c12d02b9f26c344a4a)
(cherry picked from commit cfd1aabac12fc239d1c9b8433b29c68a25a7e5b6)
---
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>