Skip to content
Snippets Groups Projects
  • Linus Torvalds's avatar
    Merge tag 'module_init-device_initcall-v4.1-rc8' of... · 2d440707
    Linus Torvalds authored
    Merge tag 'module_init-device_initcall-v4.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
    
    Pull module_init replacement part one from Paul Gortmaker:
     "Replace module_init with equivalent device_initcall in non modules.
    
      This series of commits converts non-modular code that is using the
      module_init() call to hook itself into the system to instead use
      device_initcall().
    
      The conversion is a runtime no-op, since module_init actually becomes
      __initcall in the non-modular case, and that in turn gets mapped onto
      device_initcall.  A couple files show a larger negative diffstat,
      representing ones that had a module_exit function that we remove here
      vs previously relying on the linker to dispose of it.
    
      We make this conversion now, so that we can relocate module_init from
      init.h into module.h in the future.
    
      The files changed here are just limited to those that would otherwise
      have to add module.h to obviously non-modular code, in order to avoid
      a compile fail, as testi...
    2d440707