]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
lockdep: forward declare struct task_struct
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 12 Feb 2007 08:52:20 +0000 (00:52 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:30 +0000 (10:50 -0800)
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 <mingo@elte.hu>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/lockdep.h

index ea097dddc44f791d34a599aa12b3a251413aa47d..782abafa2543578b8deb490dc9bc2e8fc1b1ee18 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __LINUX_LOCKDEP_H
 #define __LINUX_LOCKDEP_H
 
+struct task_struct;
+
 #ifdef CONFIG_LOCKDEP
 
 #include <linux/linkage.h>