[PATCH 02/11] sysdev.h: dont include <linux/module.h> for no reason

From
Paul Gortmaker <hidden>
Date
2011-07-28 05:18:05
Also in
lkml
Reply to
Paul Gortmaker, 2011-07-28
The <linux/module.h> pretty much brings in the kitchen sink along
with it, so it should be avoided wherever reasonably possible in
terms of being included from other commonly used <linux/something.h>
files, as it results in a measureable increase on compile times.

There doesn't appear to be any module specifics in this file.
The obvious people who were relying on the presence of
the vast amount of stuff module.h sucked in have been fixed.

If other files are implicitly relying on it, then lets see who
they are and fix them too.

Signed-off-by: Paul Gortmaker <redacted>
---
 include/linux/sysdev.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/linux/sysdev.h b/include/linux/sysdev.h
index d35e783..20f63d3 100644
--- a/include/linux/sysdev.h
+++ b/include/linux/sysdev.h
@@ -22,7 +22,6 @@
 #define _SYSDEV_H_
 
 #include <linux/kobject.h>
-#include <linux/module.h>
 #include <linux/pm.h>
 
 
-- 
1.7.6
Thread (31 messages) 31 messages, 8 authors, last reply 2011-10-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help