Skip to content

Commit

Permalink
sysdev.h: dont include <linux/module.h> for no reason
Browse files Browse the repository at this point in the history
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 <paul.gortmaker@windriver.com>
  • Loading branch information
Paul Gortmaker committed Oct 31, 2011
1 parent 51d7815 commit 4eae0cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/sysdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#define _SYSDEV_H_

#include <linux/kobject.h>
#include <linux/module.h>
#include <linux/pm.h>


Expand Down

0 comments on commit 4eae0cc

Please sign in to comment.