linux-stable-rt/arch/ia64/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
..
cpufreq
.gitignore
Makefile
Makefile.gate
acpi-ext.c
acpi.c
asm-offsets.c
audit.c
brl_emu.c
crash.c
crash_dump.c
cyclone.c
dma-mapping.c
efi.c
efi_stub.S
elfcore.c
entry.S [IA64] Add latest crop of syscalls 2010-08-13 20:55:51 -07:00
entry.h
err_inject.c
esi.c
esi_stub.S
fsys.S
fsyscall_gtod_data.h
ftrace.c
gate-data.S
gate.S
gate.lds.S
head.S
ia64_ksyms.c
init_task.c
iosapic.c
irq.c
irq_ia64.c
irq_lsapic.c
ivt.S
jprobes.S
kprobes.c
machine_kexec.c
machvec.c
mca.c
mca_asm.S
mca_drv.c
mca_drv.h
mca_drv_asm.S
minstate.h
module.c
msi_ia64.c
nr-irqs.c
numa.c
pal.S
palinfo.c
paravirt.c
paravirt_inst.h
paravirt_patch.c
paravirt_patchlist.c
paravirt_patchlist.h
paravirtentry.S
patch.c
pci-dma.c
pci-swiotlb.c
perfmon.c ia64: perfmon: add d_dname method 2010-08-11 00:28:21 -04:00
perfmon_default_smpl.c
perfmon_generic.h
perfmon_itanium.h
perfmon_mckinley.h
perfmon_montecito.h
process.c Make do_execve() take a const filename pointer 2010-08-17 18:07:43 -07:00
ptrace.c
relocate_kernel.S
sal.c
salinfo.c
setup.c dma-mapping: unify dma_get_cache_alignment implementations 2010-08-11 08:59:21 -07:00
sigframe.h
signal.c
smp.c
smpboot.c x86, ia64, smp: use workqueues unconditionally during do_boot_cpu() 2010-08-09 20:45:06 -07:00
sys_ia64.c
time.c
topology.c
traps.c
unaligned.c
uncached.c
unwind.c
unwind_decoder.c
unwind_i.h
vmlinux.lds.S