Re: powerpc: introduce asm/swab.h

From: Linus Torvalds
Date: Wed Jan 07 2009 - 00:02:14 EST




On Wed, 7 Jan 2009, Benjamin Herrenschmidt wrote:
>
> Was this tested ? I see no arch maintainer signed-off here, it appears
> to at least break ppc32, and contains hunks that paulus says were
> explicitely nacked (removing of our ld_* macros) etc...

It did no such thing. It just moved the file.

Use

git show -M -B 156ca2bbf6503a02d7d6829886ce381d572de66e

to see how <asm/swab.h> is just the old <asm/byteorder.h> renamed, and
with some stuff moved around. Eg it contains:

-#define __BIG_ENDIAN
-#include <linux/byteorder.h>

because now the <asm/byteorder.h> header file on powerpc will just do

+#include <asm/swab.h>
+#include <linux/byteorder/big_endian.h>

instead of doing that __BIG_ENDIAN define and conditionals that didn't
work with user space.

So it really should be a no-op. And no, I'm not reverting it, because
I guarantee that reverting it won't result in a working build - the broken
<linux/byteorder.h> file no longer exists (and will not be re-instated).

So I'd suggest testing it, and if it really doesn't work, trying to figure
out why. Because a revert won't be helping.

Linus
--
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/