[PATCH v2 07/12] nds32: Linux Syscall Interface
Vincent Chen
vincentc@andestech.com
Fri Jun 1 07:55:00 GMT 2018
On Fri, Jun 01, 2018 at 05:52:41AM +0800, Joseph Myers wrote:
> On Wed, 30 May 2018, Vincent Chen wrote:
>
> > +long int syscall (long int __sysno, ...)
>
> Function return type should be on the line before the function name, in a
> function definition.
>
> > +{
> > + int result;
> > + unsigned long arg1, arg2, arg3, arg4, arg5, arg6;
> > + va_list arg;
> > + va_start (arg, __sysno);
> > + arg1 = va_arg (arg, unsigned long);
>
> glibc style uses "long int" and "unsigned long int" rather than plain
> "long" or "unsigned long". There are lots of places in this patch that
> need to be fixed for this; please review the whole patch series and fix
> accordingly.
>
> > + result =
> > + INLINE_SYSCALL_NCS (__sysno, 6, arg1, arg2, arg3, arg4, arg5, arg6);
>
> Lines should be split before an operator, not after. Or in this case,
> split after some comma inside the parentheses.
>
OK, I will follow all your comments to modify the code in the next version patch.
Thanks for your comment.
> --
> Joseph S. Myers
> joseph@codesourcery.com
More information about the Libc-alpha
mailing list