Skip to contentSkip to conversation

include/linux/radix-tree.h: remove unneeded #include <linux/bug.h>

PATCH New [email protected] 1 participant 1 message Nov 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 29/94 include/linux/radix-tree.h: remove unneeded #include <linux/bug.h>

From: Masahiro Yamada <[email protected]>
Subject: include/linux/radix-tree.h: remove unneeded #include <linux/bug.h>

This include was added by 187f1882b5b0 ("BUG: headers with BUG/BUG_ON etc. need linux/bug.h") because BUG_ON() was used in this header at that time.

Some time later, 6d75f366b924 ("lib: radix-tree: check accounting of existing slot replacement users") removed the use of BUG_ON() from this header.

Since then, there is no reason to include <linux/bug.h>.

---

 include/linux/radix-tree.h |    1 -
 1 file changed, 1 deletion(-)
include/linux/radix-tree.h renamed from include/linux/radix-tree.h~radix-tree-remove-unneeded-include-linux-bugh +0 -1
diff -puN include/linux/radix-tree.h~radix-tree-remove-unneeded-include-linux-bugh include/linux/radix-tree.h
@@ -22,7 +22,6 @@
 #define _LINUX_RADIX_TREE_H
 
 #include <linux/bitops.h>
-#include <linux/bug.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <linux/preempt.h>

_