public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] asm-ppc/elf.h warning
@ 2004-03-26 17:33 Meelis Roos
  2004-03-26 17:43 ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Meelis Roos @ 2004-03-26 17:33 UTC (permalink / raw)
  To: Linux Kernel list

Just got this from current 2.6 BK:

  CC      arch/ppc/boot/simple/misc.o
In file included from include/linux/elf.h:5,
                 from arch/ppc/boot/simple/misc.c:20:
include/asm/elf.h:102: warning: `struct task_struct' declared inside parameter list
include/asm/elf.h:102: warning: its scope is only this definition or declaration, which is probably not what you want

This can be cured by either including linux/sched.h or defining
struct task_struct;
(like this - maybe it should be more close to the headers)

===== include/asm-ppc/elf.h 1.10 vs edited =====
--- 1.10/include/asm-ppc/elf.h	Wed Mar 24 04:49:17 2004
+++ edited/include/asm-ppc/elf.h	Fri Mar 26 18:40:42 2004
@@ -99,6 +99,7 @@
 	((t)->thread.regs?					\
 	 ({ ELF_CORE_COPY_REGS((elfregs), (t)->thread.regs); 1; }): 0)

+struct task_struct;
 extern int dump_task_fpu(struct task_struct *t, elf_fpregset_t *fpu);
 #define ELF_CORE_COPY_FPREGS(t, fpu)	dump_task_fpu((t), (fpu))


-- 
Meelis Roos (mroos@linux.ee)




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-26 21:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-26 17:33 [PATCH] asm-ppc/elf.h warning Meelis Roos
2004-03-26 17:43 ` Tom Rini
2004-03-26 18:00   ` Meelis Roos
2004-03-26 18:19     ` Tom Rini
2004-03-26 21:40     ` Greg Weeks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox