On Wed, Apr 24, 2019 at 5:57 AM Aleksandar Markovic <aleksandar.marko...@rt-rk.com> wrote: > From: Aleksandar Markovic <amarko...@wavecomp.com> > > Fix support for the SIOCATMARK and SIOCGPGRP ioctls for eXtensa by
xtensa is the official name of this architecture, please fix the spelling here... > correcting corresponding macro definition. > > Values for TARGET_SIOCATMARK and TARGET_SIOCGPGRP are determined by > Linux kernel. Following relevant lines are from kernel source tree: > > arch/ia64/include/uapi/asm/sockios.h:#define SIOCATMARK 0x8905 > arch/mips/include/uapi/asm/sockios.h:#define SIOCATMARK _IOR('s', 7, int) > arch/parisc/include/uapi/asm/sockios.h:#define SIOCATMARK 0x8905 > arch/sh/include/uapi/asm/sockios.h:#define SIOCATMARK _IOR('s', 7, int) > arch/xtensa/include/uapi/asm/sockios.h:#define SIOCATMARK _IOR('s', 7, int) > arch/alpha/include/uapi/asm/sockios.h:#define SIOCATMARK _IOR('s', 7, int) > arch/sparc/include/uapi/asm/sockios.h:#define SIOCATMARK 0x8905 > include/uapi/asm-generic/sockios.h:#define SIOCATMARK 0x8905 > > arch/ia64/include/uapi/asm/sockios.h:#define SIOCGPGRP 0x8904 > arch/mips/include/uapi/asm/sockios.h:#define SIOCGPGRP _IOR('s', 9, pid_t) > arch/parisc/include/uapi/asm/sockios.h:#define SIOCGPGRP 0x8904 > arch/sh/include/uapi/asm/sockios.h:#define SIOCGPGRP _IOR('s', 9, pid_t) > arch/xtensa/include/uapi/asm/sockios.h:#define SIOCGPGRP _IOR('s', 9, pid_t) > arch/alpha/include/uapi/asm/sockios.h:#define SIOCGPGRP _IOR('s', 9, pid_t) > arch/sparc/include/uapi/asm/sockios.h:#define SIOCGPGRP 0x8904 > include/uapi/asm-generic/sockios.h:#define SIOCGPGRP 0x8904 > > It is visible that eXtensa should have the same definitions as ...here, and in the subject line. > alpha, mips and sh4 already do. This patch brings that to the > accurate state. > > Signed-off-by: Aleksandar Markovic <amarko...@wavecomp.com> > --- > linux-user/syscall_defs.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Acked-by: Max Filippov <jcmvb...@gmail.com> -- Thanks. -- Max