From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> Based on manual inspection of the suggestions made by the include-what-you-use tool. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> --- drivers/iio/buffer/industrialio-triggered-buffer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iio/buffer/industrialio-triggered-buffer.c b/drivers/iio/buffer/industrialio-triggered-buffer.c index f77c4538141e..c1c445853c66 100644 --- a/drivers/iio/buffer/industrialio-triggered-buffer.c +++ b/drivers/iio/buffer/industrialio-triggered-buffer.c @@ -4,8 +4,10 @@ * Author: Lars-Peter Clausen <lars@xxxxxxxxxx> */ -#include <linux/kernel.h> +#include <linux/device.h> +#include <linux/err.h> #include <linux/export.h> +#include <linux/interrupt.h> #include <linux/module.h> #include <linux/iio/iio.h> #include <linux/iio/buffer.h> @@ -14,6 +16,8 @@ #include <linux/iio/triggered_buffer.h> #include <linux/iio/trigger_consumer.h> +struct attribute; + /** * iio_triggered_buffer_setup_ext() - Setup triggered buffer and pollfunc * @indio_dev: IIO device structure -- 2.33.0