kernel: Fix files explicitly needing EXPORT_SYMBOL infrastructure
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 26 May 2011 20:00:52 +0000 (16:00 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:30:05 +0000 (19:30 -0400)
These files were getting <linux/module.h> via an implicit non-obvious
path, but we want to crush those out of existence since they cost
time during compiles of processing thousands of lines of headers
for no reason.  Give them the lightweight header that just contains
the EXPORT_SYMBOL infrastructure.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/compat.c
kernel/debug/kdb/kdb_debugger.c
kernel/events/core.c
kernel/irq/generic-chip.c
kernel/power/hibernate.c
kernel/power/main.c
kernel/power/qos.c
kernel/power/suspend.c
kernel/time/posix-clock.c
kernel/trace/blktrace.c

index e2435ee9993a329bee48252a38af4ca69e6c4742..f346cedfe24d1ce2a0a4c803e9adeca62534c017 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/unistd.h>
 #include <linux/security.h>
 #include <linux/timex.h>
+#include <linux/export.h>
 #include <linux/migrate.h>
 #include <linux/posix-timers.h>
 #include <linux/times.h>
index d9ca9aa481ecec52edc5a7b41ef000cabe6c5af6..8b68ce78ff170b8777be887a3bc8407c59863ba5 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/kgdb.h>
 #include <linux/kdb.h>
 #include <linux/kdebug.h>
+#include <linux/export.h>
 #include "kdb_private.h"
 #include "../debug_core.h"
 
index d1a1bee35228ce06bd77862909278a33d0158a4f..92b8811f2234924566cfaae062ae023c1d0eb336 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/reboot.h>
 #include <linux/vmstat.h>
 #include <linux/device.h>
+#include <linux/export.h>
 #include <linux/vmalloc.h>
 #include <linux/hardirq.h>
 #include <linux/rculist.h>
index 6cb7613e4bf4250e57ad05c54f0a0a62668676a4..c89295a8f6687098db746f9f81b99132a2f0c145 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/io.h>
 #include <linux/irq.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 #include <linux/interrupt.h>
 #include <linux/kernel_stat.h>
 #include <linux/syscore_ops.h>
index 1c53f7fad5f7ba9e4fd20cd85e5021755c71ada8..b4511b6d3ef93ef5e2d12a097c3a63fa058de423 100644 (file)
@@ -9,6 +9,7 @@
  * This file is released under the GPLv2.
  */
 
+#include <linux/export.h>
 #include <linux/suspend.h>
 #include <linux/syscalls.h>
 #include <linux/reboot.h>
index a52e88425a31a351cb7b80822462503e0c74dbbe..71f49fe4377e907c85c6d5712335aa56b579a79a 100644 (file)
@@ -8,6 +8,7 @@
  *
  */
 
+#include <linux/export.h>
 #include <linux/kobject.h>
 #include <linux/string.h>
 #include <linux/resume-trace.h>
index 1c1797dd1d1d3f05c3260f47e0f6c22efc1c815c..2c0a65e276264f369e7e4775163f1a4b3f24e729 100644 (file)
@@ -43,6 +43,7 @@
 #include <linux/kernel.h>
 
 #include <linux/uaccess.h>
+#include <linux/export.h>
 
 /*
  * locking rule: all changes to constraints or notifiers lists
index 31aae3219f89a5e06762b04035aa1b203806e3e8..4953dc054c53c2af14ca9af22e5f64394feaf244 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/list.h>
 #include <linux/mm.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 #include <linux/suspend.h>
 #include <linux/syscore_ops.h>
 #include <trace/events/power.h>
index c340ca658f37a0c09726a31a6f126f18c9380355..ce033c7aa2e8f8a179ae4a031c176e1a358a100d 100644 (file)
@@ -18,6 +18,7 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 #include <linux/device.h>
+#include <linux/export.h>
 #include <linux/file.h>
 #include <linux/posix-clock.h>
 #include <linux/slab.h>
index 7c910a5593a6d850a4f43617faa27ea01c951b42..16fc34a0806fa513a247c73dc62443cc4759ff0c 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/mutex.h>
 #include <linux/slab.h>
 #include <linux/debugfs.h>
+#include <linux/export.h>
 #include <linux/time.h>
 #include <linux/uaccess.h>