浏览代码

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>
Anton Blanchard 11 年之前
父节点
当前提交
422b9b9684
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/powerpc/include/asm/compat.h

+ 4 - 0
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;