Commit 82706b8f authored by Khem Raj's avatar Khem Raj Committed by Paul Mundt

sh: Prevent leaking of CONFIG_SUPERH32 to userspace in asm/unistd.h.

CONFIG_SUPERH32 is currently trickling into userspace unistd.h. Attached
patch uses __SH5__ define in userspace.
Signed-off-by: default avatarKhem Raj <raj.khem@gmail.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 45dabf14
#ifdef CONFIG_SUPERH32 #ifdef __KERNEL__
# include "unistd_32.h" # ifdef CONFIG_SUPERH32
# include "unistd_32.h"
# else
# include "unistd_64.h"
# endif
#else #else
# include "unistd_64.h" # ifdef __SH5__
# include "unistd_64.h"
# else
# include "unistd_32.h"
# endif
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment