Bläddra i källkod

kernel: fix up module header handling in rcutiny files

The file rcutiny.c does not need moduleparam.h header, as
there are no modparams in this file.

However rcutiny_plugin.h does define a module_init() and
a module_exit() and it uses the various MODULE_ macros, so
it really does need module.h included.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Paul Gortmaker 13 år sedan
förälder
incheckning
bdfa97bf72
2 ändrade filer med 1 tillägg och 1 borttagningar
  1. 0 1
      kernel/rcutiny.c
  2. 1 0
      kernel/rcutiny_plugin.h

+ 0 - 1
kernel/rcutiny.c

@@ -22,7 +22,6 @@
  * For detailed explanation of Read-Copy Update mechanism see -
  *		Documentation/RCU
  */
-#include <linux/moduleparam.h>
 #include <linux/completion.h>
 #include <linux/interrupt.h>
 #include <linux/notifier.h>

+ 1 - 0
kernel/rcutiny_plugin.h

@@ -23,6 +23,7 @@
  */
 
 #include <linux/kthread.h>
+#include <linux/module.h>
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>