Browse Source

arch/arm/include/asm/elf.h: forward-declare the task-struct

iop32x_defconfig:

In file included from include/linux/elf.h:7,
                 from kernel/elfcore.c:1:
arch/arm/include/asm/elf.h:101: warning: "struct task_struct" declared inside parameter list
arch/arm/include/asm/elf.h:101: warning: its scope is only this definition or declaration, which is probably not what you want

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Andrew Morton 15 years ago
parent
commit
ea5ce655b9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      arch/arm/include/asm/elf.h

+ 2 - 0
arch/arm/include/asm/elf.h

@@ -9,6 +9,8 @@
 #include <asm/ptrace.h>
 #include <asm/user.h>
 
+struct task_struct;
+
 typedef unsigned long elf_greg_t;
 typedef unsigned long elf_freg_t[3];