]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.20.2/lockdep-forward-declare-struct-task_struct.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.20.2 / lockdep-forward-declare-struct-task_struct.patch
CommitLineData
db3ec075
GKH
1From stable-bounces@linux.kernel.org Mon Feb 12 00:54:10 2007
2Date: Mon, 12 Feb 2007 00:52:20 -0800
3From: Heiko Carstens <heiko.carstens@de.ibm.com>
4Subject: lockdep: forward declare struct task_struct
5To: torvalds@linux-foundation.org
6Cc: schwidefsky@de.ibm.com, akpm@linux-foundation.org, heiko.carstens@de.ibm.com, mingo@elte.hu, stable@kernel.org
7Message-ID: <200702120852.l1C8qKJr026562@shell0.pdx.osdl.net>
8
9
10From: Heiko Carstens <heiko.carstens@de.ibm.com>
11
123117df0453828bd045c16244e6f50e5714667a8a causes this:
13
14In file included from arch/s390/kernel/early.c:13:
15include/linux/lockdep.h:300: warning:
16 "struct task_struct" declared inside parameter list
17include/linux/lockdep.h:300:
18 warning: its scope is only this definition or
19 declaration, which is probably not what you want
20
21Acked-by: Ingo Molnar <mingo@elte.hu>
22Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
23Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
24Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
25Signed-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>