From: Andrew Morton Date: Thu, 7 Dec 2006 04:41:39 +0000 (-0800) Subject: [PATCH] elf.h: forward declare struct file X-Git-Tag: v2.6.20-rc1~145^2^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cf24f031bc97cb5a7c9df3b6e73c45b628b2b28;p=linux-2.6 [PATCH] elf.h: forward declare struct file In file included from include/asm/patch.h:14, from arch/ia64/kernel/patch.c:10: include/linux/elf.h:375: warning: "struct file" declared inside parameter list include/linux/elf.h:375: warning: its scope is only this definition or declaration, which is probably not what you want Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/elf.h b/include/linux/elf.h index b403516d5c..60713e6ea2 100644 --- a/include/linux/elf.h +++ b/include/linux/elf.h @@ -6,6 +6,8 @@ #include #include +struct file; + #ifndef elf_read_implies_exec /* Executables for which elf_read_implies_exec() returns TRUE will have the READ_IMPLIES_EXEC personality flag set automatically.