diff options
author | Anton Blanchard <anton@samba.org> | 2014-03-06 16:10:11 +1100 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-05-15 09:55:53 +0200 |
commit | 9913ed945cfdb90e18130f5a10a47ac7310c7ffd (patch) | |
tree | 06a4553be2d265321c517811a5f4ae59266e2846 /arch | |
parent | e2b70781505e2fe15540a49f10053b229efc3fbe (diff) | |
download | lwn-9913ed945cfdb90e18130f5a10a47ac7310c7ffd.tar.gz lwn-9913ed945cfdb90e18130f5a10a47ac7310c7ffd.zip |
powerpc/compat: 32-bit little endian machine name is ppcle, not ppc
commit 422b9b9684db3c511e65c91842275c43f5910ae9 upstream.
I noticed this when testing setarch. No, we don't magically
support a big endian userspace on a little endian kernel.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/include/asm/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/compat.h b/arch/powerpc/include/asm/compat.h index a613d2c82fd9..b142b8e0ed9e 100644 --- a/arch/powerpc/include/asm/compat.h +++ b/arch/powerpc/include/asm/compat.h @@ -8,7 +8,11 @@ #include <linux/sched.h> #define COMPAT_USER_HZ 100 +#ifdef __BIG_ENDIAN__ #define COMPAT_UTS_MACHINE "ppc\0\0" +#else +#define COMPAT_UTS_MACHINE "ppcle\0\0" +#endif typedef u32 compat_size_t; typedef s32 compat_ssize_t; |