From 43f6883a4d39284743a4d0b1e2ae475637bccd4a Mon Sep 17 00:00:00 2001 From: Javier Carrasco Date: Sat, 15 Aug 2026 00:23:47 +0200 Subject: [PATCH] iio: gts-helper: fix error headers Both industrialio-gts-helper.c and iio-gts-helper.h use error codes defined in (usually included via ), but only industrialio-gts-helper.c includes it. On the other hand, that file also uses error macros like IS_ERR() and PTR_ERR(), which are included in . Add the right includes to provide the used elements from the error headers: - in iio-gts-helper.h - in industrialio-gts-helper.c, which in turn includes , which only includes Signed-off-by: Javier Carrasco Reviewed-by: Matti Vaittinen Reviewed-by: Andy Shevchenko Signed-off-by: Jonathan Cameron --- drivers/iio/industrialio-gts-helper.c | 2 +- include/linux/iio/iio-gts-helper.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/industrialio-gts-helper.c b/drivers/iio/industrialio-gts-helper.c index 4f52dc373abf..af6ed37fb34a 100644 --- a/drivers/iio/industrialio-gts-helper.c +++ b/drivers/iio/industrialio-gts-helper.c @@ -5,7 +5,7 @@ */ #include -#include +#include #include #include #include diff --git a/include/linux/iio/iio-gts-helper.h b/include/linux/iio/iio-gts-helper.h index 66f830ab9b49..f63a482b82b8 100644 --- a/include/linux/iio/iio-gts-helper.h +++ b/include/linux/iio/iio-gts-helper.h @@ -7,6 +7,7 @@ #ifndef __IIO_GTS_HELPER__ #define __IIO_GTS_HELPER__ +#include #include struct device;