Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
#ifdef __KERNEL__
# ifdef CONFIG_SUPERH32
#  include "unistd_32.h"
# else
#  include "unistd_64.h"
# endif
#else
# ifdef __SH5__
#  include "unistd_64.h"
# else
#  include "unistd_32.h"
# endif
#endif