提交 82706b8f 编写于 作者: K Khem Raj 提交者: 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: NKhem Raj <raj.khem@gmail.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 45dabf14
#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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册