[PATCH] scripts/modpost warning

From: Geert Uytterhoeven (Geert.Uytterhoeven_at_sonycom.com)
Date: 02/29/04

  • Next message: Karol Kozimor: "Re: Dropping CONFIG_PM_DISK?"
    Date:	Sun, 29 Feb 2004 17:15:35 +0100 (MET)
    To: Kai Germaschewski <kai.germaschewski@gmx.de>, Paul Russell <rusty@rustcorp.com.au>
    
    

    I need the following patch to kill a warning (__endian() may be unused) when
    cross-compiling m68k kernels on an ia32 box.

    --- linux-2.6.4-rc1/scripts/modpost.h 2004-02-29 09:33:41.000000000 +0100
    +++ linux-m68k-2.6.4-rc1/scripts/modpost.h 2004-02-29 10:39:56.000000000 +0100
    @@ -31,7 +31,7 @@

     #if KERNEL_ELFDATA != HOST_ELFDATA

    -static void __endian(const void *src, void *dest, unsigned int size)
    +static inline void __endian(const void *src, void *dest, unsigned int size)
     {
             unsigned int i;
             for (i = 0; i < size; i++)

    Gr{oetje,eeting}s,

                                                    Geert

    --
    Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
    In personal conversations with technical people, I call myself a hacker. But
    when I'm talking to journalists I just say "programmer" or something like that.
    							    -- Linus Torvalds
    -
    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: Karol Kozimor: "Re: Dropping CONFIG_PM_DISK?"

    Relevant Pages

    • Re: Linux 2.6.9-rc1
      ... P.S. Personally I wouldn't suffer from unpatching and patching, ... In personal conversations with technical people, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: seperator error in __mask_snprintf_len
      ... > because they too were hitting the bug. ... On ia32. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] 2.6: mmap complement, fdmap
      ... > I have verified functionality on ia32 and sparc as these are the only ... > architectures I currently have some type of access to. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Make rpm patch for cross compile 2.6.0-test11
      ... compiling a ia64 kernel in a ia32 build machine. ... Below patch can fix this ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: SMP broken on Dell PowerEdge 4100/200 under 2.6.0-testxx?
      ... | The real problem with all this is that it was arranged around minimal ... | impact code changes instead of adequately describing hardware, ... I don't see ia32 going away, either, unless you see 2.7 in a more ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)