lkml.org 
[lkml]   [2011]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] module: fix build when DEBUGP is defined
    From: Randy Dunlap <randy.dunlap@oracle.com>

    Fix module loader build when DEBUGP is defined.
    Fixes build error & warning:

    kernel/module.c:1910: error: 'name' undeclared (first use in this function)
    kernel/module.c:2567: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'Elf64_Addr'

    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    ---
    kernel/module.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- linux-next-20110111.orig/kernel/module.c
    +++ linux-next-20110111/kernel/module.c
    @@ -1907,7 +1907,7 @@ static void layout_sections(struct modul
    || strstarts(sname, ".init"))
    continue;
    s->sh_entsize = get_offset(mod, &mod->core_size, s, i);
    - DEBUGP("\t%s\n", name);
    + DEBUGP("\t%s\n", sname);
    }
    switch (m) {
    case 0: /* executable */
    @@ -2563,7 +2563,7 @@ static int move_module(struct module *mo
    memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size);
    /* Update sh_addr to point to copy in image. */
    shdr->sh_addr = (unsigned long)dest;
    - DEBUGP("\t0x%lx %s\n",
    + DEBUGP("\t0x%llx %s\n",
    shdr->sh_addr, info->secstrings + shdr->sh_name);
    }


    \
     
     \ /
      Last update: 2011-01-12 02:27    [W:0.033 / U:0.044 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site