aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@ozlabs.org>2008-04-09 17:21:34 +1000
committerPaul Mackerras <paulus@samba.org>2008-04-17 07:46:11 +1000
commita2879fef7ccd1e0891a8f147c20ce6f1501e373b (patch)
treebcde1c24f283dec86d1010b3c9f1c0dc74814a5a
parente6768a4f392d05bc11ed508d35938932c73aac5a (diff)
downloadkernel_samsung_espresso10-a2879fef7ccd1e0891a8f147c20ce6f1501e373b.zip
kernel_samsung_espresso10-a2879fef7ccd1e0891a8f147c20ce6f1501e373b.tar.gz
kernel_samsung_espresso10-a2879fef7ccd1e0891a8f147c20ce6f1501e373b.tar.bz2
[POWERPC] properly declare onstack completion in iseries veth
The iSeries veth driver uses an on-stack struct completion that it initializes using the COMPLETION_INITIALIZER instead of COMPLETION_INITIALIZER_ONSTACK macro, causing problems with lockdep. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--drivers/net/iseries_veth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c
index 58d3bb6..b8d0639 100644
--- a/drivers/net/iseries_veth.c
+++ b/drivers/net/iseries_veth.c
@@ -308,7 +308,8 @@ static void veth_complete_allocation(void *parm, int number)
static int veth_allocate_events(HvLpIndex rlp, int number)
{
- struct veth_allocation vc = { COMPLETION_INITIALIZER(vc.c), 0 };
+ struct veth_allocation vc =
+ { COMPLETION_INITIALIZER_ONSTACK(vc.c), 0 };
mf_allocate_lp_events(rlp, HvLpEvent_Type_VirtualLan,
sizeof(struct veth_lpevent), number,