Skip to contentSkip to conversation

mm: filemap: remove include of hardirq.h

PATCH Applied Yang Shi 2 participants 3 messages Nov 6, 2017 – Nov 17, 2017

Subsystems (2)
lore
Share & tools
lore

Yang Shi

author
#0 lore raw

PATCH v2 1/1 mm: filemap: 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.

---
v1 --> v2:
* Removed the wrong message about kernel size change

 mm/filemap.c | 1 -
 1 file changed, 1 deletion(-)
mm/filemap.c +0 -1
index 594d73f..57238f4 100644
@@ -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>
Signature · 7 lines
1.8.3.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
author
#1 lore raw

Hi folks,

Any comment on this patch? The quick build test passed on the latest Linus's tree.

Thanks,
Yang

Quoted 18 lines · Yang Shi

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.

---
v1 --> v2:
* Removed the wrong message about kernel size change

  mm/filemap.c | 1 -
  1 file changed, 1 deletion(-)
mm/filemap.c +0 -0
index 594d73f..57238f4 100644

mm/filemap.c line 36

Quoted 7 lines
mm/filemap.c +0 -1
@@ -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>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>