lkml.org 
[lkml]   [2014]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 16/28] nios2: System calls handling
> >>> +/* sys_cacheflush -- flush the processor cache. */
> >>> +asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len,
> >>> + unsigned int op)
> >>> +{
> >>> + struct vm_area_struct *vma;
> >>> +
> >>> + if (len == 0)
> >>> + return 0;
> >>
> >> op is being ignored? You should remove it... or if (op) return -EINVAL
> >> if you want future extensions.
> > Yes, op argument is being ignored. Okay, will add the return -EINVAL
> > if op is non-zero.
>
> Be careful. If existing applications already use this and maybe pass a
> dummy value
> to it you break them.

Well.. of course, but passing ignored integer to syscall, that can be
never used is beyond ugly. NAK-level ugly.

If it is so, you can never ever use the argument, and might as well
remove it (depending on your calling convention, it should not break
anything.)

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2014-04-21 23:01    [W:1.305 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site