diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-17 20:54:27 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-17 20:54:27 -0700 |
| commit | 17ee20aef8a91f8692b76b1f0428619c5b4176d0 (patch) | |
| tree | 038b94269b93482e6bc2a21a423bf3deb5bc33dd /scripts | |
| parent | 26214e32af9e14d10cf558669cb7fdd6494e70ed (diff) | |
[PATCH] Fix unix module
From: Rusty Russell <rusty@rustcorp.com.au>
# lsmod
Module Size Used by
1 26060 6
#
The compiler #define's unix to 1: we use -DKBUILD_MODNAME=unix. We used to
#undef unix at the top of af_unix.c, but now the name is inserted by
modpost, that doesn't help.
#undef unix in modpost.c's generated C file.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/modpost.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/modpost.c b/scripts/modpost.c index 523e302cf89e..91ace9b7719c 100644 --- a/scripts/modpost.c +++ b/scripts/modpost.c @@ -487,6 +487,7 @@ add_header(struct buffer *b) buf_printf(b, "\n"); buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); buf_printf(b, "\n"); + buf_printf(b, "#undef unix\n"); /* We have a module called "unix" */ buf_printf(b, "struct module __this_module\n"); buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n"); buf_printf(b, " .name = __stringify(KBUILD_MODNAME),\n"); |
