Skip to contentSkip to conversation

sh-asm/unistd.h userspace cleanup

PATCH Applied Khem Raj 2 participants 2 messages Jul 2, 2008 – Jul 3, 2008

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

Hi,

CONFIG_SUPERH32 is currently trickling into userspace unistd.h. Attached patch uses __SH5__define in userspace.

Thanks

-Khem

include/asm-sh/unistd.h +11 -3
index 4b21f36..65be656 100644
@@ -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
Applied
#1 lore raw
Quoted 10 lines · Khem Raj

Hi,

CONFIG_SUPERH32 is currently trickling into userspace unistd.h. Attached patch uses __SH5__define in userspace.

Thanks

-Khem

Applied, thanks.