From: Anton Blanchard Date: Thu, 6 Mar 2014 05:10:11 +0000 (+1100) Subject: powerpc/compat: 32-bit little endian machine name is ppcle, not ppc X-Git-Tag: firefly_0821_release~176^2~4178^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=422b9b9684db3c511e65c91842275c43f5910ae9;p=firefly-linux-kernel-4.4.55.git 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 Cc: stable@vger.kernel.org # v3.10+ Signed-off-by: Benjamin Herrenschmidt --- 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 #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;