Jelajahi Sumber

sysdev.h: dont include <linux/module.h> for no reason

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>
Paul Gortmaker 14 tahun lalu
induk
melakukan
4eae0cc4f4
1 mengubah file dengan 0 tambahan dan 1 penghapusan
  1. 0 1
      include/linux/sysdev.h

+ 0 - 1
include/linux/sysdev.h

@@ -22,7 +22,6 @@
 #define _SYSDEV_H_
 #define _SYSDEV_H_
 
 
 #include <linux/kobject.h>
 #include <linux/kobject.h>
-#include <linux/module.h>
 #include <linux/pm.h>
 #include <linux/pm.h>