]>
Commit | Line | Data |
---|---|---|
db3ec075 GKH |
1 | From stable-bounces@linux.kernel.org Mon Feb 12 00:54:10 2007 |
2 | Date: Mon, 12 Feb 2007 00:52:20 -0800 | |
3 | From: Heiko Carstens <heiko.carstens@de.ibm.com> | |
4 | Subject: lockdep: forward declare struct task_struct | |
5 | To: torvalds@linux-foundation.org | |
6 | Cc: schwidefsky@de.ibm.com, akpm@linux-foundation.org, heiko.carstens@de.ibm.com, mingo@elte.hu, stable@kernel.org | |
7 | Message-ID: <200702120852.l1C8qKJr026562@shell0.pdx.osdl.net> | |
8 | ||
9 | ||
10 | From: Heiko Carstens <heiko.carstens@de.ibm.com> | |
11 | ||
12 | 3117df0453828bd045c16244e6f50e5714667a8a causes this: | |
13 | ||
14 | In file included from arch/s390/kernel/early.c:13: | |
15 | include/linux/lockdep.h:300: warning: | |
16 | "struct task_struct" declared inside parameter list | |
17 | include/linux/lockdep.h:300: | |
18 | warning: its scope is only this definition or | |
19 | declaration, which is probably not what you want | |
20 | ||
21 | Acked-by: Ingo Molnar <mingo@elte.hu> | |
22 | Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> | |
23 | Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> | |
24 | Signed-off-by: Andrew Morton <akpm@linux-foundation.org> | |
25 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
26 | ||
27 | --- | |
28 | include/linux/lockdep.h | 2 ++ | |
29 | 1 file changed, 2 insertions(+) | |
30 | ||
31 | --- linux-2.6.20.1.orig/include/linux/lockdep.h | |
32 | +++ linux-2.6.20.1/include/linux/lockdep.h | |
33 | @@ -8,6 +8,8 @@ | |
34 | #ifndef __LINUX_LOCKDEP_H | |
35 | #define __LINUX_LOCKDEP_H | |
36 | ||
37 | +struct task_struct; | |
38 | + | |
39 | #ifdef CONFIG_LOCKDEP | |
40 | ||
41 | #include <linux/linkage.h> |