alistair23-linux/arch/microblaze/kernel
David Howells d7627467b7 Make do_execve() take a const filename pointer
Make do_execve() take a const filename pointer so that kernel_execve() compiles
correctly on ARM:

arch/arm/kernel/sys_arm.c:88: warning: passing argument 1 of 'do_execve' discards qualifiers from pointer target type

This also requires the argv and envp arguments to be consted twice, once for
the pointer array and once for the strings the array points to.  This is
because do_execve() passes a pointer to the filename (now const) to
copy_strings_kernel().  A simpler alternative would be to cast the filename
pointer in do_execve() when it's passed to copy_strings_kernel().

do_execve() may not change any of the strings it is passed as part of the argv
or envp lists as they are some of them in .rodata, so marking these strings as
const should be fine.

Further kernel_execve() and sys_execve() need to be changed to match.

This has been test built on x86_64, frv, arm and mips.

Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-17 18:07:43 -07:00
..
cpu microblaze: Allow PAGE_SIZE configuration 2010-08-04 10:22:34 +02:00
asm-offsets.c microblaze: Remove "cache" optimized copy_page function 2010-05-06 11:21:58 +02:00
dma.c microblaze: Fix sg_dma_len() regression 2010-06-09 16:20:54 +02:00
early_printk.c
entry-nommu.S microblaze: Add stack unwinder 2010-08-04 10:22:35 +02:00
entry.S microblaze: Add KGDB support 2010-08-04 10:45:17 +02:00
exceptions.c microblaze: Add KGDB support 2010-08-04 10:45:17 +02:00
ftrace.c microblaze: Fix ftrace_update_ftrace_func panic 2010-04-07 07:27:25 +02:00
head.S microblaze: Allow PAGE_SIZE configuration 2010-08-04 10:22:34 +02:00
heartbeat.c
hw_exception_handler.S microblaze: Add stack unwinder 2010-08-04 10:22:35 +02:00
init_task.c
intc.c
irq.c Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6 2010-08-05 15:57:35 -07:00
kgdb.c microblaze: Add KGDB support 2010-08-04 10:45:17 +02:00
Makefile Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6 2010-08-05 15:57:35 -07:00
mcount.S
microblaze_ksyms.c microblaze: export assembly functions used by modules 2010-05-13 12:11:42 +02:00
misc.S microblaze: Fix comment for TLB 2010-08-02 10:44:03 +02:00
module.c microblaze: Fix module loading on system with WB cache 2010-05-14 07:43:38 +02:00
process.c microblaze: Do not trace cpu_relax function 2010-08-04 10:22:36 +02:00
prom.c lmb: rename to memblock 2010-07-14 17:14:00 +10:00
prom_parse.c of/address: Merge all of the bus translation code 2010-07-05 16:14:26 -06:00
ptrace.c microblaze: Fix copy_to_user_page macro 2010-08-04 10:22:31 +02:00
reset.c of/gpio: stop using device_node data pointer to find gpio_chip 2010-07-05 16:14:30 -06:00
selfmod.c
setup.c of: Merge of_platform_bus_type with platform_bus_type 2010-07-24 09:57:51 -06:00
signal.c microblaze: Remove rt_sigsuspend wrapper 2009-12-14 08:45:12 +01:00
stacktrace.c microblaze: Add stack unwinder 2010-08-04 10:22:35 +02:00
sys_microblaze.c Make do_execve() take a const filename pointer 2010-08-17 18:07:43 -07:00
syscall_table.S microblaze: Enable accept4 syscall 2010-01-18 16:35:27 +01:00
timer.c microblaze: Decrease time shifting values 2010-08-04 10:22:39 +02:00
traps.c microblaze: Add stack unwinder 2010-08-04 10:22:35 +02:00
unwind.c microblaze: Add stack unwinder 2010-08-04 10:22:35 +02:00
vmlinux.lds.S microblaze: Do not use _start in vmlinux 2010-08-04 10:22:41 +02:00