2017-11-03 18:48:55

by Yang Shi

[permalink] [raw]
Subject: [PATCH] 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.
With removing hardirq.h, around 32 bytes can be saved for x86_64 bzImage
with allnoconfig.

Signed-off-by: Yang Shi <[email protected]>
---
mm/filemap.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/mm/filemap.c b/mm/filemap.c
index 594d73f..57238f4 100644
--- a/mm/filemap.c
+++ b/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>
--
1.8.3.1


From 1584298122578413259@xxx Fri Nov 17 07:40:29 +0000 2017
X-GM-THRID: 1584298122578413259
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread