[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 <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Andrew Morton 2006-12-06 20:41:39 -08:00 коммит произвёл Linus Torvalds
Родитель d3ed11c356
Коммит 6cf24f031b
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -6,6 +6,8 @@
#include <linux/elf-em.h>
#include <asm/elf.h>
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.