Re: Tomoyo compile failure on alpha: sys_get[p]pid undefined

From: Christoph Hellwig
Date: Fri Sep 24 2010 - 03:51:21 EST


On Fri, Sep 24, 2010 at 09:10:37AM +0300, Meelis Roos wrote:
> 2.6.36-rc5+git as of yesterday:
>
> LD .tmp_vmlinux1
> security/built-in.o: In function `tomoyo_supervisor':(.text+0xea98): undefined reference to `sys_getpid'
> security/built-in.o: In function `tomoyo_supervisor':(.text+0xeab0): undefined reference to `sys_getpid'
> security/built-in.o: In function `tomoyo_supervisor':(.text+0xeac0): undefined reference to `sys_getppid'
> security/built-in.o: In function `tomoyo_supervisor':(.text+0xeac4): undefined reference to `sys_getppid'
>
> Seems alpha has different mechanisms for using these syscalls from
> inside the kernel?

The real problem is that kernel code should never call system calls.
The correct fix is to get rid of this abuse.

--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html