public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: build failure in the hid tree
@ 2026-02-27 14:48 Mark Brown
  2026-02-27 14:50 ` Jiri Kosina
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2026-02-27 14:48 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires, Mark Pearson, Derek J. Clark
  Cc: Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]

Hi all,

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the hid tree
  2026-02-27 14:48 linux-next: build failure in the hid tree Mark Brown
@ 2026-02-27 14:50 ` Jiri Kosina
  2026-02-27 15:28   ` Jiri Kosina
  0 siblings, 1 reply; 6+ messages in thread
From: Jiri Kosina @ 2026-02-27 14:50 UTC (permalink / raw)
  To: Mark Brown
  Cc: Benjamin Tissoires, Mark Pearson, Derek J. Clark,
	Linux Kernel Mailing List, Linux Next Mailing List

On Fri, 27 Feb 2026, Mark Brown wrote:

> Hi all,
> 
> 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.

Thanks,

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the hid tree
  2026-02-27 14:50 ` Jiri Kosina
@ 2026-02-27 15:28   ` Jiri Kosina
  2026-03-06  5:49     ` Derek John Clark
  0 siblings, 1 reply; 6+ messages in thread
From: Jiri Kosina @ 2026-02-27 15:28 UTC (permalink / raw)
  To: Mark Brown
  Cc: Benjamin Tissoires, Mark Pearson, Derek J. Clark,
	Linux Kernel Mailing List, Linux Next Mailing List

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 Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the hid tree
  2026-02-27 15:28   ` Jiri Kosina
@ 2026-03-06  5:49     ` Derek John Clark
  2026-03-08 10:09       ` Jiri Kosina
  0 siblings, 1 reply; 6+ messages in thread
From: Derek John Clark @ 2026-03-06  5:49 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Mark Brown, Benjamin Tissoires, Mark Pearson,
	Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Feb 27, 2026 at 7:28 AM Jiri Kosina <jikos@kernel.org> 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
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the hid tree
  2026-03-06  5:49     ` Derek John Clark
@ 2026-03-08 10:09       ` Jiri Kosina
  2026-03-08 17:20         ` Derek John Clark
  0 siblings, 1 reply; 6+ messages in thread
From: Jiri Kosina @ 2026-03-08 10:09 UTC (permalink / raw)
  To: Derek John Clark
  Cc: Mark Brown, Benjamin Tissoires, Mark Pearson,
	Linux Kernel Mailing List, Linux Next Mailing List

On Thu, 5 Mar 2026, Derek John Clark wrote:

> > > > 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, 

Hi Derek,

sorry for belated response, I was off for a week.

Also there was a lot of warnings coming out of the kernel test robot, hope 
you've seen them?

> 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. 

For the ones that really do break build (like many of the allyesconfig 
ones), I'd suggest you just incorporate the changes and use Reported-by: 
or Co-developed-by: tags in the name of bisectability.

Other fixes can be put on top of the series.

Thanks,

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux-next: build failure in the hid tree
  2026-03-08 10:09       ` Jiri Kosina
@ 2026-03-08 17:20         ` Derek John Clark
  0 siblings, 0 replies; 6+ messages in thread
From: Derek John Clark @ 2026-03-08 17:20 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Mark Brown, Benjamin Tissoires, Mark Pearson,
	Linux Kernel Mailing List, Linux Next Mailing List

On Sun, Mar 8, 2026 at 3:09 AM Jiri Kosina <jikos@kernel.org> wrote:
>
> On Thu, 5 Mar 2026, Derek John Clark wrote:
>
> > > > > 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,
>
> Hi Derek,
>
> sorry for belated response, I was off for a week.
>
> Also there was a lot of warnings coming out of the kernel test robot, hope
> you've seen them?

Yes, I'm very motivated to push the fixes so I can stop getting them
at this point.

> > 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.
>
> For the ones that really do break build (like many of the allyesconfig
> ones), I'd suggest you just incorporate the changes and use Reported-by:
> or Co-developed-by: tags in the name of bisectability.
>
> Other fixes can be put on top of the series.

Sounds good, that should be simple enough to do. I'll submit the
cosmetic ones as part of the next series version then so I can handle
and rebasing conflicts.

Thanks,
Derek

> Thanks,
>
> --
> Jiri Kosina
> SUSE Labs
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-08 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27 14:48 linux-next: build failure in the hid tree Mark Brown
2026-02-27 14:50 ` Jiri Kosina
2026-02-27 15:28   ` Jiri Kosina
2026-03-06  5:49     ` Derek John Clark
2026-03-08 10:09       ` Jiri Kosina
2026-03-08 17:20         ` Derek John Clark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox