]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel: params/rcutiny needs module.h not moduleparam.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 27 May 2011 01:07:10 +0000 (21:07 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 25 Aug 2011 17:54:32 +0000 (13:54 -0400)
Through various other twisted include paths, these files were
getting the full module.h file, and hence living the illusion
that it really only needed moduleparam.h -- but the reality
is that once you remove module.h, you will get screenfulls of
things like:

kernel/params.c:583: warning: â€˜struct module_kobject’ declared inside parameter list

The file really requires module.h so simply make it so.  As the
file module.h grabs moduleparam.h on the fly, all will be well.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/params.c
kernel/rcutiny.c

index 487b1f2dedc120a6b10290ce8c34d59c4ec7fc76..1d1c01b72500e327f7935e57a68b81d4b333807d 100644 (file)
@@ -15,7 +15,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
-#include <linux/moduleparam.h>
+#include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/errno.h>
index 013af5d762930926a0d3e9843c805af01ef9a78a..837ebb2bf3bf0a9945e1ccacddf165ab67dd3b38 100644 (file)
@@ -22,7 +22,7 @@
  * For detailed explanation of Read-Copy Update mechanism see -
  *             Documentation/RCU
  */
-#include <linux/moduleparam.h>
+#include <linux/module.h>
 #include <linux/completion.h>
 #include <linux/interrupt.h>
 #include <linux/notifier.h>