+ provide-kernel_execve-on-all-architectures-fix-4.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     provide-kernel_execve-on-all-architectures-fix 4

has been added to the -mm tree.  Its filename is

     provide-kernel_execve-on-all-architectures-fix-4.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: provide-kernel_execve-on-all-architectures-fix 4
From: Mark Haverkamp <markh@xxxxxxxx>

On Tue, 2006-09-19 at 01:28 -0700, Andrew Morton wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.18-rc7/2.6.18-rc7-mm1/
>

>
> +rename-the-provided-execve-functions-to-kernel_execve-headers-fix.patch
>
>  Fix rename-the-provided-execve-functions-to-kernel_execve.patch some more
>

While running cross compile tests for prpmc750 we got the following
error that I think is related to the above patches.

  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
init/built-in.o: In function `run_init_process':
main.c:(.text+0x20): undefined reference to `kernel_execve'
init/built-in.o: In function `do_linuxrc':
do_mounts_initrd.c:(.init.text+0x3a98): undefined reference to `kernel_execve'
arch/ppc/kernel/built-in.o: In function `execve':
arch/ppc/kernel/entry.S:(.text+0x24a2): undefined reference to `errno'
arch/ppc/kernel/entry.S:(.text+0x24a6): undefined reference to `errno'
kernel/built-in.o: In function `____call_usermodehelper':
kmod.c:(.text+0x163f8): undefined reference to `kernel_execve'
make: [vmlinux] Error 1 (ignored)
  SYSMAP  System.map
powerpc-750-linux-gnu-nm: 'vmlinux': No such file
make: [vmlinux] Error 1 (ignored)
  MODPOST vmlinux

Here is a patch that fixes the compile errors.  I took the code from
misc_32.S.

Signed-off-by: Mark Haverkamp <markh@xxxxxxxx>
Cc: Arnd Bergmann <arnd@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/ppc/kernel/misc.S |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff -puN arch/ppc/kernel/misc.S~provide-kernel_execve-on-all-architectures-fix-4 arch/ppc/kernel/misc.S
--- a/arch/ppc/kernel/misc.S~provide-kernel_execve-on-all-architectures-fix-4
+++ a/arch/ppc/kernel/misc.S
@@ -1030,20 +1030,16 @@ _GLOBAL(kernel_thread)
 	addi	r1,r1,16
 	blr
 
+_GLOBAL(kernel_execve)
+	li	r0,__NR_execve
+	sc
+	bnslr
+	neg	r3,r3
+	blr
+
 /*
  * This routine is just here to keep GCC happy - sigh...
  */
 _GLOBAL(__main)
 	blr
 
-#define SYSCALL(name) \
-_GLOBAL(name) \
-	li	r0,__NR_##name; \
-	sc; \
-	bnslr; \
-	lis	r4,errno@ha; \
-	stw	r3,errno@l(r4); \
-	li	r3,-1; \
-	blr
-
-SYSCALL(execve)
_

Patches currently in -mm which might be from markh@xxxxxxxx are

git-scsi-misc.patch
provide-kernel_execve-on-all-architectures-fix-4.patch

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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux