* sh-asm/unistd.h userspace cleanup
@ 2008-07-02 23:56 Khem Raj
2008-07-03 5:45 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2008-07-02 23:56 UTC (permalink / raw)
To: linux-kernel, lethal
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@gmail.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: sh-asm/unistd.h userspace cleanup
2008-07-02 23:56 sh-asm/unistd.h userspace cleanup Khem Raj
@ 2008-07-03 5:45 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-07-03 5:45 UTC (permalink / raw)
To: Khem Raj; +Cc: linux-kernel
On Wed, Jul 02, 2008 at 04:56:12PM -0700, Khem Raj wrote:
> 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@gmail.com>
>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-03 7:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 23:56 sh-asm/unistd.h userspace cleanup Khem Raj
2008-07-03 5:45 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox