]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs: add module.h to files that were implicitly using it
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 1 Jul 2011 18:23:34 +0000 (14:23 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 25 Aug 2011 17:54:34 +0000 (13:54 -0400)
Some files were using the complete module.h infrastructure without
actually including the header at all.  Fix them up in advance so
once the implicit presence is removed, we won't get failures like this:

  CC [M]  fs/nfsd/nfssvc.o
fs/nfsd/nfssvc.c: In function 'nfsd_create_serv':
fs/nfsd/nfssvc.c:335: error: 'THIS_MODULE' undeclared (first use in this function)
fs/nfsd/nfssvc.c:335: error: (Each undeclared identifier is reported only once
fs/nfsd/nfssvc.c:335: error: for each function it appears in.)
fs/nfsd/nfssvc.c: In function 'nfsd':
fs/nfsd/nfssvc.c:555: error: implicit declaration of function 'module_put_and_exit'
make[3]: *** [fs/nfsd/nfssvc.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/exofs/super.c
fs/logfs/super.c
fs/nfsd/nfssvc.c

index 274894053b025b69e9908012b11fc6d10ab32306..60ffa354ad222e2f68205a9cf41421ca90c4ee65 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/parser.h>
 #include <linux/vfs.h>
 #include <linux/random.h>
+#include <linux/module.h>
 #include <linux/exportfs.h>
 #include <linux/slab.h>
 
index ce03a182c771c42e39e90c0f7b3737b897d02215..b9b3154b04852181d0a7d6ce8259a6e72d727b91 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/bio.h>
 #include <linux/slab.h>
 #include <linux/blkdev.h>
+#include <linux/module.h>
 #include <linux/mtd/mtd.h>
 #include <linux/statfs.h>
 #include <linux/buffer_head.h>
index dc5a1bf476b1185feb4b7f66a5e4fcd4c48b034b..4b8e828ae15f78264b79c25ea2f9b4e78a982350 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/sched.h>
 #include <linux/freezer.h>
+#include <linux/module.h>
 #include <linux/fs_struct.h>
 #include <linux/swap.h>