Skip to content

Commit

Permalink
[POWERPC] properly declare onstack completion in iseries veth
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Apr 16, 2008
1 parent e6768a4 commit a2879fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/iseries_veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a2879fe

Please sign in to comment.