RE: linux-next: build failure after merge of the battery tree

From: Asmaa Mnebhi
Date: Tue Jun 21 2022 - 08:30:47 EST


I will send a patch right away. Need to include #include <linux/devm-helpers.h>

-----Original Message-----
From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Sent: Sunday, June 19, 2022 8:45 PM
To: Sebastian Reichel <sre@xxxxxxxxxx>
Cc: Asmaa Mnebhi <asmaa@xxxxxxxxxx>; Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>; Linux Next Mailing List <linux-next@xxxxxxxxxxxxxxx>
Subject: linux-next: build failure after merge of the battery tree

Hi all,

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

drivers/power/reset/pwr-mlxbf.c: In function 'pwr_mlxbf_probe':
drivers/power/reset/pwr-mlxbf.c:67:15: error: implicit declaration of function 'devm_work_autocancel' [-Werror=implicit-function-declaration]
67 | err = devm_work_autocancel(dev, &priv->send_work, pwr_mlxbf_send_work);
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Caused by commit

a4c0094fcf76 ("power: reset: pwr-mlxbf: add BlueField SoC power control driver")

I have used the battery tree from next-20220617 for today.

--
Cheers,
Stephen Rothwell