Re: [PATCH] [2.6.2-rc3] Fix module.c pointer arithmetics

From: Rusty Russell (rusty_at_rustcorp.com.au)
Date: 01/31/04

  • Next message: Rusty Russell: "[PATCH 1/4] 2.6.2-rc2-mm2 CPU Hotplug: cpu_active_map"
    To: Carl-Daniel Hailfinger <c-d.hailfinger.kernel.2004@gmx.net>
    Date:	Sun, 01 Feb 2004 00:55:12 +1100
    
    

    In message <401BA520.7070204@gmx.net> you write:
    > - for (i = 0; __start___ksymtab+i < __stop___ksymtab; i++) {
    > + for (i = 0; __start___ksymtab+i*sizeof(struct kernel_symbol) < __stop___ksymtab; i++) {

    Above in this file, there is the declaration:

    extern const struct kernel_symbol __start___ksymtab[];

    What makes you think you need to multiply here?

    Puzzled,
    Rusty.

    --
      Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
    -
    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/
    

  • Next message: Rusty Russell: "[PATCH 1/4] 2.6.2-rc2-mm2 CPU Hotplug: cpu_active_map"

    Relevant Pages

    • [PATCH] kbuild: using well known kernel symbols as module names.
      ... Here is a Thayumanavar's patch with small changes. ... to use double quotes, but not single ones. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: 2.6.14-rt15: cannot build with !PREEMPT_RT
      ... On Sat, 2005-11-26 at 13:23 +0100, Ingo Molnar wrote: ... >> or declaration, which is probably not what you want ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH] fix/improve modular IDE (Re: [PATCH] modular IDE for 2.6.1 ugly but working fix)
      ... Anyone who quotes me in their sig is an idiot. ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: 2.6.15-mm3
      ... Andrew Morton wrote: ... include/asm/cputable.h:37: error: previous declaration of `G4' ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [PROBLEM] 2.6.9-rc1-mm2 fails to compile (others report same error)
      ... include/linux/wait.h:143: error: previous declaration of ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)