2022-07-25 01:10:44

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build failure after merge of the hid tree

Hi all,

After merging the hid tree, today's linux-next build (x86_64 allmodconfig)
failed like this:

drivers/hid/hid-nintendo.c:1514:29: error: redefinition of 'JC_RUMBLE_ZERO_AMP_PKT_CNT'
1514 | static const unsigned short JC_RUMBLE_ZERO_AMP_PKT_CNT = 5;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hid/hid-nintendo.c:295:29: note: previous definition of 'JC_RUMBLE_ZERO_AMP_PKT_CNT' with type 'short unsigned int'
295 | static const unsigned short JC_RUMBLE_ZERO_AMP_PKT_CNT = 5;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

669abca7b767 ("HID: nintendo: Fix unused-const-variable compiler warning")

interacting with commit

92cdfba40155 ("HID: nintendo: fix unused const warning")

I have used the hid tree from next-20220722 for today.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2022-07-25 09:50:58

by Jiri Kosina

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the hid tree

On Mon, 25 Jul 2022, Stephen Rothwell wrote:

> Hi all,
>
> After merging the hid tree, today's linux-next build (x86_64 allmodconfig)
> failed like this:
>
> drivers/hid/hid-nintendo.c:1514:29: error: redefinition of 'JC_RUMBLE_ZERO_AMP_PKT_CNT'
> 1514 | static const unsigned short JC_RUMBLE_ZERO_AMP_PKT_CNT = 5;
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/hid/hid-nintendo.c:295:29: note: previous definition of 'JC_RUMBLE_ZERO_AMP_PKT_CNT' with type 'short unsigned int'
> 295 | static const unsigned short JC_RUMBLE_ZERO_AMP_PKT_CNT = 5;
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Caused by commit
>
> 669abca7b767 ("HID: nintendo: Fix unused-const-variable compiler warning")
>
> interacting with commit
>
> 92cdfba40155 ("HID: nintendo: fix unused const warning")
>
> I have used the hid tree from next-20220722 for today.

My fault, I forgot that this was actually already fixed before by Daniel.

Dropped for now from for-next. Thanks,

--
Jiri Kosina
SUSE Labs

2022-07-27 01:30:09

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the hid tree

Hi Jiri,

On Mon, 25 Jul 2022 11:42:26 +0200 (CEST) Jiri Kosina <[email protected]> wrote:
>
> My fault, I forgot that this was actually already fixed before by Daniel.
>
> Dropped for now from for-next. Thanks,

I am still getting the error. Forgot to push?

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature