Patch: linux-2.3.27/fs/nfsd/stats.c did not link as module

Adam J. Richter (adam@yggdrasil.com)
Fri, 12 Nov 1999 03:49:50 -0800


linux-2.3.27/fs/nfsd/stats.c include <linux/module.h> because
it uses the "THIS_MODULE" symbol. However, since <linux/module.h>
is already imported by nfsctl.c, it needs to set __NO_VERSION__ to
avoid duplicating the declarations that <linux/module.h> makes
when module versioning is enabled. I have attached the one line
patch below.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

--- linux-2.3.27/fs/nfsd/stats.c Thu Nov 11 16:57:31 1999
+++ linux/fs/nfsd/stats.c Fri Nov 12 02:36:49 1999
@@ -17,6 +17,7 @@
#include <linux/sched.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
+#define __NO_VERSION__
#include <linux/module.h>

#include <linux/sunrpc/svc.h>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/