[PATCH v1 1/1] kfifo: Don't use "proxy" headers

From: Andy Shevchenko
Date: Tue Apr 23 2024 - 10:38:04 EST


Update header inclusions to follow IWYU (Include What You Use)
principle.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
include/linux/kfifo.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h
index d613748de7ff..564868bdce89 100644
--- a/include/linux/kfifo.h
+++ b/include/linux/kfifo.h
@@ -36,11 +36,16 @@
* to lock the reader.
*/

+#include <linux/array_size.h>
#include <linux/dma-mapping.h>
-#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/stddef.h>
-#include <linux/scatterlist.h>
+#include <linux/types.h>
+
+#include <asm/barrier.h>
+#include <asm/errno.h>
+
+struct scatterlist;

struct __kfifo {
unsigned int in;
--
2.43.0.rc1.1336.g36b5255a03ac