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

From: Ilpo Järvinen

Date: Mon Jul 27 2026 - 14:47:19 EST


On Mon, 27 Jul 2026, Bartosz Golaszewski wrote:

> 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()")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> ---
> 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(+)
>
> diff --git a/drivers/platform/surface/surface_gpe.c b/drivers/platform/surface/surface_gpe.c
> index 4ca7ad76f3b9d..29b264f2a444e 100644
> --- a/drivers/platform/surface/surface_gpe.c
> +++ b/drivers/platform/surface/surface_gpe.c
> @@ -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>

Acked-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>

--
i.