[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <486C159C.4020108@gmail.com>
Date:	Wed, 02 Jul 2008 16:56:12 -0700
From:	Khem Raj <raj.khem@...il.com>
To:	linux-kernel@...r.kernel.org, lethal@...ux-sh.org
Subject: sh-asm/unistd.h userspace cleanup
Hi,
CONFIG_SUPERH32 is currently trickling into userspace unistd.h. Attached patch uses __SH5__define  in userspace.
Thanks
-Khem
Signed-off-by: Khem Raj <raj.khem@...il.com>
diff --git a/include/asm-sh/unistd.h b/include/asm-sh/unistd.h
index 4b21f36..65be656 100644
--- a/include/asm-sh/unistd.h
+++ b/include/asm-sh/unistd.h
@@ -1,5 +1,13 @@
-#ifdef CONFIG_SUPERH32
-# include "unistd_32.h"
+#ifdef __KERNEL__
+# ifdef CONFIG_SUPERH32
+#  include "unistd_32.h"
+# else
+#  include "unistd_64.h"
+# endif
 #else
-# include "unistd_64.h"
+# ifdef __SH5__
+#  include "unistd_64.h"
+# else
+#  include "unistd_32.h"
+# endif
 #endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists
 
