Преглед на файлове

radix tree: Add some implicit includes

We were using spinlock_t and INIT_LIST_HEAD without including spinlock.h
or list.h.  They were being implicitly included through some other header
file, but that's fragile.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Matthew Wilcox преди 8 години
родител
ревизия
15f2e88ddd
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      include/linux/radix-tree.h

+ 4 - 2
include/linux/radix-tree.h

@@ -22,11 +22,13 @@
 #define _LINUX_RADIX_TREE_H
 
 #include <linux/bitops.h>
-#include <linux/preempt.h>
-#include <linux/types.h>
 #include <linux/bug.h>
 #include <linux/kernel.h>
+#include <linux/list.h>
+#include <linux/preempt.h>
 #include <linux/rcupdate.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
 
 /*
  * The bottom two bits of the slot determine how the remaining bits in the