diff options
author | Benjamin Herrenschmidt <benh@ozlabs.org> | 2008-04-09 17:21:34 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-17 07:46:11 +1000 |
commit | a2879fef7ccd1e0891a8f147c20ce6f1501e373b (patch) | |
tree | bcde1c24f283dec86d1010b3c9f1c0dc74814a5a /drivers/net/iseries_veth.c | |
parent | e6768a4f392d05bc11ed508d35938932c73aac5a (diff) | |
download | op-kernel-dev-a2879fef7ccd1e0891a8f147c20ce6f1501e373b.zip op-kernel-dev-a2879fef7ccd1e0891a8f147c20ce6f1501e373b.tar.gz |
[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>
Diffstat (limited to 'drivers/net/iseries_veth.c')
-rw-r--r-- | drivers/net/iseries_veth.c | 3 |
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, |