Re: linux-next: build failure in the hid tree
From: Derek John Clark
Date: Fri Mar 06 2026 - 00:50:00 EST
On Fri, Feb 27, 2026 at 7:28 AM Jiri Kosina <jikos@xxxxxxxxxx> wrote:
>
> On Fri, 27 Feb 2026, Jiri Kosina wrote:
>
> > > After merging the drm-nova tree, today's linux-next build (arm64
> > > allyesconfig) failed like this:
> > >
> > > ld: drivers/hid/hid-lenovo-go-s.o:(.data+0x840): multiple definition of `rgb_enabled'; drivers/hid/hid-lenovo-go.o:(.data+0xb00): first defined here
> > > ld: drivers/hid/hid-lenovo-go-s.o:(.data+0xa80): multiple definition of `touchpad_enabled'; drivers/hid/hid-lenovo-go.o:(.data+0xd00): first defined here
> > > ld: drivers/hid/hid-lenovo-go-s.o:(.data+0x900): multiple definition of `gamepad_mode'; drivers/hid/hid-lenovo-go.o:(.data+0xb40): first defined here
> > > ld: drivers/hid/hid-lenovo-go-s.o:(.bss+0x0): multiple definition of `drvdata'; drivers/hid/hid-lenovo-go.o:(.bss+0x0): first defined here
> > >
> > > Caused by commits:
> > >
> > > b53ccf3f72653c8a843188ffa2edd4bc2443686d HID: hid-lenovo-go: Add OS Mode Toggle
> > > 1d466a1adbf40e55501d766322d665de3a822b6e HID: hid-lenovo-go: Add Calibration Settings
> > > 557d5b34d52974bf4e43c459cbf50bed5615ead4 HID: hid-lenovo-go: Add RGB LED control interface
> > > f0119d450f1d4a5cc2ef2b38c2b522f902698a38 HID: hid-lenovo-go: Add FPS Mode DPI settings
> > > a8a9ca568ce547634e80e999013ac9f123acff1d HID: hid-lenovo-go: Add Rumble and Haptic Settings
> > > b2fd12c205b5a533ba2b1c5ffad669d08d52ce12 HID: hid-lenovo-go: Add Feature Status Attributes
> > > 3bb54f568ecc35be7675eef5303a47e14aba54bc HID: hid-lenovo-go: Add Lenovo Legion Go Series HID Driver
> > >
> > > I've left them for today but will take more action on Monday, probably
> > > reverts.
> >
> > I'll just drop the branch from for-next for now, and will let Mark and
> > Derek look into this and send followup fixes.
>
> Seems like both drivers are polluting a lot of global namespace actually.
> I normally catch this using sparse, but my installation doesn't work
> currently because of [1], so I missed it.
>
> Derek, Mark -- you need to add a lot of 'static' all over the place :) The
> for-7.1/lenovo branch stays out of for-next for now, please send a fixed
> version and we'll put it in for-7.1/lenovo-v2.
>
> [1] https://lwn.net/Articles/1006379/
>
> Thanks,
Jiri,
Sorry for the delayed response. Since your email there has been a lot
of activity from other contributors on top of my latest version in the
HID tree, so I'm looking for guidance on the best way forward. I can
either add a patch after those to keep attribution identical while
fixing the issues, or I can include the changes in a new version of
the series and add co-developed-by tags. The changes are fairly minor,
but from multiple people. I had planned on just doing a new version
originally.
Thanks,
Derek
> --
> Jiri Kosina
> SUSE Labs
>