Skip to contentSkip to conversation

linux-next: build failure after merge of the hid tree

DISCUSSION Stephen Rothwell 2 participants 2 messages May 7, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

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]/