summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2017-07-22 06:48:09 +0200
committerNicolas Pitre <nicolas.pitre@linaro.org>2017-09-11 01:31:46 +0200
commite71fd63127c5a1d4fb7660f5d4cbc257374a2af9 (patch)
tree4142c1fd1b78176c15cc4262448b732d4e8ebafb /arch/arm/kernel
parentARM: implement get_tls syscall (diff)
downloadlinux-e71fd63127c5a1d4fb7660f5d4cbc257374a2af9.tar.xz
linux-e71fd63127c5a1d4fb7660f5d4cbc257374a2af9.zip
arm_elf_read_implies_exec(): remove unused argument
The first argument to elf_read_implies_exec() is either the actual header structure or a pointer to that structure whether one looks at fs/binfmt_elf.c or fs/binfmt_elf_fdpic.c. This ought to be fixed of course, but in the mean time let's sidestep the issue by removing that first argument from arm_elf_read_implies_exec() as it is unused anyway. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Mickael GUENE <mickael.guene@st.com> Tested-by: Vincent Abriou <vincent.abriou@st.com> Tested-by: Andras Szemzo <szemzo.andras@gmail.com>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/elf.c b/arch/arm/kernel/elf.c
index d0d1e83150c9..52fb98358d9d 100644
--- a/arch/arm/kernel/elf.c
+++ b/arch/arm/kernel/elf.c
@@ -80,7 +80,7 @@ EXPORT_SYMBOL(elf_set_personality);
* - the binary requires an executable stack
* - we're running on a CPU which doesn't support NX.
*/
-int arm_elf_read_implies_exec(const struct elf32_hdr *x, int executable_stack)
+int arm_elf_read_implies_exec(int executable_stack)
{
if (executable_stack != EXSTACK_DISABLE_X)
return 1;