1. Jul 26, 2011
  2. Jul 25, 2011
  3. Jul 24, 2011
    • Alessio Igor Bogani's avatar
      modpost: Fix modpost's license checking V3 · 62a26356
      Alessio Igor Bogani authored
      The commit f02e8a65
      
       sorts symbols placing each of them in its own elf section.
      The sorting and merging into the canonical sections are done by the linker.
      Unfortunately modpost to generate Module.symvers file parses vmlinux
      (already linked) and all modules object files (which aren't linked yet).
      These aren't sanitized by the linker yet. That breaks modpost that can't
      detect license properly for modules. This patch makes modpost aware of
      the new exported symbols structure.
      
      Thanks to Arnaud Lacombe <lacombar@gmail.com> and Anders Kaseorg
      <andersk@ksplice.com> for providing useful suggestions about code.
      
      This work was supported by a hardware donation from the CE Linux Forum.
      
      Reported-by: default avatarJan Beulich <jbeulich@novell.com>
      Signed-off-by: default avatarAlessio Igor Bogani <abogani@kernel.org>
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      62a26356
    • Kay Sievers's avatar
      module: add /sys/module/<name>/uevent files · 88bfa324
      Kay Sievers authored
      
      
      Userspace wants to manage module parameters with udev rules.
      This currently only works for loaded modules, but not for
      built-in ones.
      
      To allow access to the built-in modules we need to
      re-trigger all module load events that happened before any
      userspace was running. We already do the same thing for all
      devices, subsystems(buses) and drivers.
      
      This adds the currently missing /sys/module/<name>/uevent files
      to all module entries.
      
      Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (split & trivial fix)
      88bfa324
    • Kay Sievers's avatar
      module: change attr callbacks to take struct module_kobject · 4befb026
      Kay Sievers authored
      
      
      This simplifies the next patch, where we have an attribute on a
      builtin module (ie. module == NULL).
      
      Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (split into 2)
      4befb026