diff options
author | Anton Blanchard <anton@samba.org> | 2014-03-06 00:10:11 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-03-23 19:16:04 -0400 |
commit | 422b9b9684db3c511e65c91842275c43f5910ae9 (patch) | |
tree | 2597bb6df11cf14dee9161cd2751a888213d0917 | |
parent | 599d2870425dcde3bf2a7d969d5977baa57feb8b (diff) |
powerpc/compat: 32-bit little endian machine name is ppcle, not ppc
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>
Cc: stable@vger.kernel.org # v3.10+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-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 @@ | |||
8 | #include <linux/sched.h> | 8 | #include <linux/sched.h> |
9 | 9 | ||
10 | #define COMPAT_USER_HZ 100 | 10 | #define COMPAT_USER_HZ 100 |
11 | #ifdef __BIG_ENDIAN__ | ||
11 | #define COMPAT_UTS_MACHINE "ppc\0\0" | 12 | #define COMPAT_UTS_MACHINE "ppc\0\0" |
13 | #else | ||
14 | #define COMPAT_UTS_MACHINE "ppcle\0\0" | ||
15 | #endif | ||
12 | 16 | ||
13 | typedef u32 compat_size_t; | 17 | typedef u32 compat_size_t; |
14 | typedef s32 compat_ssize_t; | 18 | typedef s32 compat_ssize_t; |