Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Benjamin Herrenschmidt and committed by
Paul Mackerras
a2879fef e6768a4f

+2 -1
+2 -1
drivers/net/iseries_veth.c
··· 308 308 309 309 static int veth_allocate_events(HvLpIndex rlp, int number) 310 310 { 311 - struct veth_allocation vc = { COMPLETION_INITIALIZER(vc.c), 0 }; 311 + struct veth_allocation vc = 312 + { COMPLETION_INITIALIZER_ONSTACK(vc.c), 0 }; 312 313 313 314 mf_allocate_lp_events(rlp, HvLpEvent_Type_VirtualLan, 314 315 sizeof(struct veth_lpevent), number,