From: Heiko Carstens Date: Mon, 12 Feb 2007 08:52:20 +0000 (-0800) Subject: [PATCH] lockdep: forward declare struct task_struct X-Git-Tag: v2.6.21-rc1~91^2~188 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=a1e96b0310d70b72012b5ecde5e97b8262785aae;p=powerpc.git [PATCH] lockdep: forward declare struct task_struct 3117df0453828bd045c16244e6f50e5714667a8a causes this: In file included from arch/s390/kernel/early.c:13: include/linux/lockdep.h:300: warning: "struct task_struct" declared inside parameter list include/linux/lockdep.h:300: warning: its scope is only this definition or declaration, which is probably not what you want Acked-by: Ingo Molnar Cc: Martin Schwidefsky Signed-off-by: Heiko Carstens Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 7e1160dde5..06fe93a3e9 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -8,6 +8,8 @@ #ifndef __LINUX_LOCKDEP_H #define __LINUX_LOCKDEP_H +struct task_struct; + #ifdef CONFIG_LOCKDEP #include