2024-05-07 01:07:19

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/i2c-hid/i2c-hid-core.c: In function 'i2c_hid_set_power':
drivers/hid/i2c-hid/i2c-hid-core.c:410:1: error: label 'set_pwr_exit' defined but not used [-Werror=unused-label]
410 | set_pwr_exit:
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors

Caused by commit

7d6f065de37c ("HID: i2c-hid: Use address probe to wake on resume")

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

--
Cheers,
Stephen Rothwell


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

2024-05-07 07:23:08

by Kenny Levinsen

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

On 5/7/24 3:06 AM, Stephen Rothwell wrote:
> drivers/hid/i2c-hid/i2c-hid-core.c: In function 'i2c_hid_set_power':
> drivers/hid/i2c-hid/i2c-hid-core.c:410:1: error: label 'set_pwr_exit' defined but not used [-Werror=unused-label]
> 410 | set_pwr_exit:
> | ^~~~~~~~~~~~
> cc1: all warnings being treated as errors


Apologies, I did not realize that I had missed -Werror on my kernel
builder. I have posted the fix[0] to the input mailing list and made
sure I have -Werror enabled for future patch work.

[0]:
https://patchwork.kernel.org/project/linux-input/patch/[email protected]/