Skip to contentSkip to conversation

kfifo: Don't use "proxy" headers

PATCH New Andy Shevchenko 1 participant 1 message Apr 23, 2024 Kfifo

lore
Share & tools
lore
#0 lore raw

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

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

---
 include/linux/kfifo.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
include/linux/kfifo.h +7 -2
index d613748de7ff..564868bdce89 100644
@@ -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;
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac