Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/radix-tree.c: change to simpler include

The comment helpfully explains why hardirq.h is included, but since
commit 2d4b84739f0a ("hardirq: Split preempt count mask definitions")
in_interrupt() has been provided by preempt_mask.h. Use that instead,
saving around 40 lines in the generated dependency file.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Rasmus Villemoes and committed by
Linus Torvalds
886d3dfa 7f1ce3c8

+1 -1
+1 -1
lib/radix-tree.c
··· 33 33 #include <linux/string.h> 34 34 #include <linux/bitops.h> 35 35 #include <linux/rcupdate.h> 36 - #include <linux/hardirq.h> /* in_interrupt() */ 36 + #include <linux/preempt_mask.h> /* in_interrupt() */ 37 37 38 38 39 39 /*