Skip to contentSkip to conversation

mm/filemap.c: remove include of hardirq.h

PATCH In review [email protected] 1 participant 1 message Feb 1, 2018

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 41/119 mm/filemap.c: remove include of hardirq.h

From: "Yang Shi" <[email protected]>
Subject: mm/filemap.c: remove include of hardirq.h

in_atomic() has been moved to include/linux/preempt.h, and the filemap.c doesn't use in_atomic() directly at all, so it sounds unnecessary to include hardirq.h.

---

 mm/filemap.c |    1 -
 1 file changed, 1 deletion(-)
mm/filemap.c renamed from mm/filemap.c~mm-filemap-remove-include-of-hardirqh +0 -1
diff -puN mm/filemap.c~mm-filemap-remove-include-of-hardirqh mm/filemap.c
@@ -31,7 +31,6 @@
 #include <linux/blkdev.h>
 #include <linux/security.h>
 #include <linux/cpuset.h>
-#include <linux/hardirq.h> /* for BUG_ON(!in_atomic()) only */
 #include <linux/hugetlb.h>
 #include <linux/memcontrol.h>
 #include <linux/cleancache.h>

_