lkml.org 
[lkml]   [2009]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 2/3] initcalls: add early_initcall for modules
    From 52cc05f71bac10dff8a3aacf1cad16a0bf6c375b Mon Sep 17 00:00:00 2001
    From: Borislav Petkov <borislav.petkov@amd.com>
    Date: Thu, 1 Oct 2009 18:52:45 +0200
    Subject: [PATCH 2/3] initcalls: add early_initcall for modules

    Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
    ---
    include/linux/init.h | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/include/linux/init.h b/include/linux/init.h
    index 400adbb..ff8bde5 100644
    --- a/include/linux/init.h
    +++ b/include/linux/init.h
    @@ -271,6 +271,7 @@ void __init parse_early_options(char *cmdline);
    #else /* MODULE */

    /* Don't use these in modules, but some people do... */
    +#define early_initcall(fn) module_init(fn)
    #define core_initcall(fn) module_init(fn)
    #define postcore_initcall(fn) module_init(fn)
    #define arch_initcall(fn) module_init(fn)
    --
    1.6.4.3
    --
    Regards/Gruss,
    Boris.

    Operating | Advanced Micro Devices GmbH
    System | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. München, Germany
    Research | Geschäftsführer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
    Center | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
    (OSRC) | Registergericht München, HRB Nr. 43632
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2009-10-02 15:25    [W:0.026 / U:212.220 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site