Re: 2.6.6-rc3: modular DVB tda1004x broken

From: David Mosberger
Date: Mon May 03 2004 - 13:09:40 EST


>>>>> On Sat, 1 May 2004 17:51:34 -0700, Andrew Morton <akpm@xxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/