Re: 2.6.6-rc3: modular DVB tda1004x broken

David Mosberger
2004-05-03T18:07:54Z

>>>>> On Sat, 1 May 2004 17:51:34 -0700, Andrew Morton <akpm@osdl.org> said:

Andrew> It wasn't quite that simple - lots of architectures have
Andrew> been inventive.

Andrew> For 2.6.6 we should just stick that errno decl back in
Andrew> there..

Why not just disallow user-level use of the _syscall() macros.
syscall() is a much more portable and easier to implement alternative
which has been around "forever" (even SunOS supported it, IIRC). I
suppose there is a slight performance loss (function-call vs. inline)
but we're talking about system calls here...

Also, the _syscall() macros have never been supported at the
user-level on ia64 linux and most packages already know to use
syscall(). Unfortunately, some "clever" maintainers use syscall()
only inside #ifdef __ia64, but that would be easy to fix if _syscall()
gets discouraged on all linux platforms.

--david