Skip to contentSkip to conversation

platform/surface: gpe: add missing err.h include

PATCH Applied Bartosz Golaszewski 3 participants 3 messages Jul 27

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

PATCH 1/1 platform/surface: gpe: add missing err.h include

We now use PTR_ERR() and IS_ERR() in this module so pull in the header that provides them.

Fixes 1e0bd438b876 ("platform/surface: gpe: use platform_device_register_full()")

---
This must go through the driver core tree as a follow up to the commit it fixes.

 drivers/platform/surface/surface_gpe.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/surface/surface_gpe.c +1 -0
index 4ca7ad76f3b9d..29b264f2a444e 100644
@@ -11,6 +11,7 @@
 
 #include <linux/acpi.h>
 #include <linux/dmi.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
Signature · 1 line
2.47.3
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 17 lines · Bartosz Golaszewski

We now use PTR_ERR() and IS_ERR() in this module so pull in the header that provides them.

Fixes 1e0bd438b876 ("platform/surface: gpe: use platform_device_register_full()")

---
This must go through the driver core tree as a follow up to the commit it fixes.

 drivers/platform/surface/surface_gpe.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/surface/surface_gpe.c +0 -0
index 4ca7ad76f3b9d..29b264f2a444e 100644

drivers/platform/surface/surface_gpe.c line 17

Quoted 7 lines
drivers/platform/surface/surface_gpe.c +1 -0
@@ -11,6 +11,7 @@
 
 #include <linux/acpi.h>
 #include <linux/dmi.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
Signature · 1 line
 i.
#2 lore raw
In reply to Bartosz Golaszewski
Quoted 1 line · Bartosz Golaszewski

[PATCH] platform/surface: gpe: add missing err.h include

Applied, thanks!

Branch: driver-core-testing
Tree: git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git

[1/1] platform/surface: gpe: add missing err.h include

      commit: b47dcd7b41e2

The patch will appear in the next linux-next integration (typically within 24 hours on weekdays).

The patch is in the driver-core-testing branch and will be promoted to driver-core-next after validation.