Re: 2.6.6-rc3: modular DVB tda1004x broken

Linus Torvalds
2004-05-01T23:56:11Z

On Sat, 1 May 2004, Andrew Morton wrote:
>
> Maybe we should change __syscall_return() to return the -ve errno rather
> than -1?

Yes. Except we should probably only do this for __KERNEL_SYSCALLS__, since
it's possible that somebody is still using this in user space (it
pre-glibc people).

So maybe a

#undef __syscall_return
#define __syscall_return(type, res) return (type)(res);

inside the __KERNEL_SYSCALLS__ area?

Linus