Skip to contentSkip to conversation

linux-next: Fix build failure in pwr-mlxbf.c

PATCH In review Asmaa Mnebhi 1 participant 2 messages Jun 21, 2022 – Jul 26, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-next: Fix build failure in pwr-mlxbf.c

The build failure is at line 67: implicit declaration of function 'devm_work_autocancel'.
So declare library for devm_work_autocancel.

---
 drivers/power/reset/pwr-mlxbf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/reset/pwr-mlxbf.c +1 -0
index c1f9987834a2..1c4904c0e1f5 100644
@@ -6,6 +6,7 @@
 
 #include <linux/acpi.h>
 #include <linux/device.h>
+#include <linux/devm-helpers.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/mod_devicetable.h>
Signature · 1 line
2.30.1
#1 lore raw

Hi Sebastian, Hi Stephen,

Could you please review this? I didn't see this being pushed.

Thanks.
Asmaa

-----Original Message-----
From: Asmaa Mnebhi <[email protected]>
Sent: Tuesday, June 21, 2022 8:50 AM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: Asmaa Mnebhi <[email protected]>
Subject: [PATCH v1 1/1] linux-next: Fix build failure in pwr-mlxbf.c

The build failure is at line 67: implicit declaration of function 'devm_work_autocancel'. So declare library for devm_work_autocancel.

---
 drivers/power/reset/pwr-mlxbf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/reset/pwr-mlxbf.c +1 -0
@@ -6,6 +6,7 @@
 
 #include <linux/acpi.h>
 #include <linux/device.h>
+#include <linux/devm-helpers.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/mod_devicetable.h>

--
2.30.1