From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> Based on manual inspection of the suggestions from the include-what-you-use tool. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> --- drivers/iio/buffer/kfifo_buf.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/iio/buffer/kfifo_buf.c b/drivers/iio/buffer/kfifo_buf.c index 516eb3465de1..9564fcbb8979 100644 --- a/drivers/iio/buffer/kfifo_buf.c +++ b/drivers/iio/buffer/kfifo_buf.c @@ -1,17 +1,20 @@ // SPDX-License-Identifier: GPL-2.0-only -#include <linux/slab.h> -#include <linux/kernel.h> -#include <linux/module.h> #include <linux/device.h> -#include <linux/workqueue.h> +#include <linux/err.h> +#include <linux/export.h> +#include <linux/kernel.h> #include <linux/kfifo.h> +#include <linux/log2.h> +#include <linux/module.h> #include <linux/mutex.h> +#include <linux/slab.h> + #include <linux/iio/iio.h> #include <linux/iio/buffer.h> #include <linux/iio/kfifo_buf.h> #include <linux/iio/buffer_impl.h> -#include <linux/sched.h> -#include <linux/poll.h> + +struct attribute; struct iio_kfifo { struct iio_buffer buffer; -- 2.33.0