git: b5cd411af641 - main - i2ctinyusb: do not list i2ctinyusb.c twice in SRCS

From: Xin LI <delphij_at_FreeBSD.org>
Date: Tue, 03 Nov 2026 03:01:18 UTC
The branch main has been updated by delphij:

URL: https://cgit.FreeBSD.org/src/commit/?id=b5cd411af6418986fa0da9c12d02b9f26c344a4a

commit b5cd411af6418986fa0da9c12d02b9f26c344a4a
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-11-03 03:00:58 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-11-03 03:00:58 +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
    MFC after:      1 week
---
 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>