Re: [PATCH] platform/surface: gpe: add missing err.h include
Ilpo Järvinen <[email protected]> Mon, 27 Jul 2026 21:46:49 +0300 (EEST)
| Newsgroups | org.kernel.vger.platform-driver-x86,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
> ---
> 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 <[email protected]>
--
i.