mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Module rewrite series 3/5: KBUILD_MODNAME.
Date: Thu, 31 Oct 2002 18:18:43 +1100	[thread overview]
Message-ID: <20021031071924.D796B2C056@lists.samba.org> (raw)
In-Reply-To: Your message of "Thu, 31 Oct 2002 17:39:57 +1100." <20021031064316.D9F5D2C0E1@lists.samba.org>

[-- Attachment #1: Type: text/plain, Size: 2215 bytes --]

Separate lkml-attach version due to size.  Note that your
kernel won't compile after this: you need arch support, and almost all
functionality other than loading and unloading is not implemented:
they are handled in follow-on patches (which all exist 8).

Diffstat breakdown:

Core:
 include/linux/init.h                            |  100 -
 kernel/module.c                                 |   10 
 include/linux/kmod.h                            |    1 
 include/linux/module.h                          |  698 ++------
 kernel/kmod.c                                   |    2 
 kernel/ksyms.c                                  |    8 
 kernel/module.c                                 | 2052 ++++++++++--------------
 fs/proc/proc_misc.c                             |   12 
 include/linux/elf.h                             |   45 
 init/Kconfig                                    |   21 
 init/main.c                                     |    5 
 kernel/sys.c                                    |    2 

Build (and commenting out kallsyms for the moment):
 Makefile                                        |   17 
 kernel/Makefile                                 |    4 
 arch/i386/Kconfig                               |   15 
 arch/ia64/Kconfig                               |   14 
 arch/ppc/Kconfig                                |    6 
 arch/x86_64/Kconfig                             |   14 
 scripts/Makefile.modinst                        |    4 

Broken by module.h not including version.h:
 drivers/block/floppy.c                          |    1 

Uses can_unload():
 drivers/char/ftape/compressor/zftape-compress.c |    9 
 net/ipv6/af_inet6.c                             |    5 

Deref struct module even when !CONFIG_MODULES:
 kernel/exec_domain.c                            |    7 
 net/ipv4/netfilter/ip_nat_helper.c              |    8 

Hacks refcounts directly:
 fs/filesystems.c                                |   16 

Needs "no_module_init;" declaration:
 lib/zlib_deflate/deflate_syms.c                 |    2 
 lib/zlib_inflate/inflate_syms.c                 |    2 
 29 files changed, 1330 insertions(+), 1758 deletions(-)

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.


[-- Attachment #2: Patch 3: Core module support --]
[-- Type: application/octet-stream, Size: 33057 bytes --]

      parent reply	other threads:[~2002-10-31  7:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-31  6:39 [PATCH] Module rewrite series 1/5: KBUILD_MODNAME Rusty Russell
2002-10-31  6:52 ` [PATCH] Module rewrite series 2/5: Obsolete init_module Rusty Russell
2002-10-31  7:07 ` [PATCH] Module rewrite series 4/5: i386 support Rusty Russell
2002-10-31  7:16 ` [PATCH] Module rewrite series 5/5: DRM and MTD Rusty Russell
2002-10-31  7:18 ` Rusty Russell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021031071924.D796B2C056@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome