diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2007-02-12 00:52:20 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 09:48:29 -0800 |
commit | a1e96b0310d70b72012b5ecde5e97b8262785aae (patch) | |
tree | 45c507f1f55b991d2c6696c7585e0935adf0ef06 /include/linux/lockdep.h | |
parent | 473e66fd24a230e03f6f164913bedb81c0ba052a (diff) | |
download | blackbird-op-linux-a1e96b0310d70b72012b5ecde5e97b8262785aae.tar.gz blackbird-op-linux-a1e96b0310d70b72012b5ecde5e97b8262785aae.zip |
[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 <mingo@elte.hu>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/lockdep.h')
-rw-r--r-- | include/linux/lockdep.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 7e1160dde5e7..06fe93a3e916 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 <linux/linkage.h> |