Re: [PATCH] scripts/modpost warning

From: Rusty Russell
Date: Mon Mar 01 2004 - 01:29:14 EST


In message <Pine.GSO.4.58.0402291713230.7483@xxxxxxxxxxxxxxxxxxxx> you write:
>
> I need the following patch to kill a warning (__endian() may be unused) when
> cross-compiling m68k kernels on an ia32 box.

Yep. sumversion.c doesn't actually use this routine.

Please apply.
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.


From: Geert Uytterhoeven <Geert.Uytterhoeven@xxxxxxxxxxx>

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

sumversion.c include modpost.h for grab_file and release_file, and
doesn't use __endian.

--- 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++)



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/