From: Christoph Hellwig Subject: Re: Tomoyo compile failure on alpha: sys_get[p]pid undefined Date: Fri, 24 Sep 2010 03:51:17 -0400 Message-ID: <20100924075116.GA2303@infradead.org> References: Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-alpha-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Meelis Roos Cc: Linux Kernel list , linux-alpha@vger.kernel.org, Tetsuo Handa , Kentaro Takeda 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.