diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2010-04-19 17:53:06 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-04-20 19:43:03 -0400 |
commit | 4cb3ca7cd7e2cae8d1daf5345ec99a1e8502cf3f (patch) | |
tree | 777528eff76317a8020ec9e972e9e46b57ecd31e /arch/um/sys-i386 | |
parent | 0df6e9402e9f6f77b2d431f35ba0f8906b9ca8f3 (diff) |
UML: Fix compiler warning due to missing task_struct declaration
We can't pull in linux/sched.h due to circular dependency, so just
forward-declare the struct.
This fixes the following warning:
CC arch/um/sys-i386/elfcore.o
In file included from /data/linux-2.6/include/linux/elf.h:8,
from /data/linux-2.6/arch/um/sys-i386/elfcore.c:2:
arch/um/sys-i386/asm/elf.h:78: warning: ‘struct task_struct’ declared inside parameter list
arch/um/sys-i386/asm/elf.h:78: warning: its scope is only this definition or declaration, which is probably not what you want
I guess not many people build against i386 hosts anymore, so this
remained widely unnoticed.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'arch/um/sys-i386')
-rw-r--r-- | arch/um/sys-i386/asm/elf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/sys-i386/asm/elf.h b/arch/um/sys-i386/asm/elf.h index e64cd41d7bab..a979a22a8d9f 100644 --- a/arch/um/sys-i386/asm/elf.h +++ b/arch/um/sys-i386/asm/elf.h | |||
@@ -75,6 +75,8 @@ typedef struct user_i387_struct elf_fpregset_t; | |||
75 | pr_reg[16] = PT_REGS_SS(regs); \ | 75 | pr_reg[16] = PT_REGS_SS(regs); \ |
76 | } while (0); | 76 | } while (0); |
77 | 77 | ||
78 | struct task_struct; | ||
79 | |||
78 | extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); | 80 | extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); |
79 | 81 | ||
80 | #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu) | 82 | #define ELF_CORE_COPY_FPREGS(t, fpu) elf_core_copy_fpregs(t, fpu) |