Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Jan 24, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

drivers/base/power/runtime.c: In function 'pm_runtime_new_link':
drivers/base/power/runtime.c:1815:31: error: increment of a boolean expression [-Werror=bool-operation]
1815 | dev->power.links_count++;
| ^~
drivers/base/power/runtime.c: In function 'pm_runtime_drop_link_count':
drivers/base/power/runtime.c:1823:31: error: decrement of a boolean expression [-Werror=bool-operation]
1823 | dev->power.links_count--;
| ^~

Caused by commit

5d872146e7f5 ("PM: sleep: Use bool for all 1-bit fields in struct dev_pm_info")

I have used the pm tree from next-20240123 for today.

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

Hi all,

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

drivers/base/power/runtime.c: In function 'pm_runtime_new_link':
drivers/base/power/runtime.c:1815:31: error: increment of a boolean expression [-Werror=bool-operation]
1815 | dev->power.links_count++;
| ^~
drivers/base/power/runtime.c: In function 'pm_runtime_drop_link_count':
drivers/base/power/runtime.c:1823:31: error: decrement of a boolean expression [-Werror=bool-operation]
1823 | dev->power.links_count--;
| ^~

Quoted 5 lines

Caused by commit

5d872146e7f5 ("PM: sleep: Use bool for all 1-bit fields in struct dev_pm_info")

I have used the pm tree from next-20240123 for today.

Thanks for the report, I've dropped the above commit.

A fixed version of it will be added later.