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

xtensa: use newer __SPIN_LOCK_UNLOCKED macro

SPIN_LOCK_UNLOCKED() breaks lockdep and is deprecated.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Zankel <chris@zankel.net>

authored by

Robert P. J. Day and committed by
Chris Zankel
ef9c2f04 14ac12de

+1 -1
+1 -1
arch/xtensa/platforms/iss/network.c
··· 640 640 *lp = ((struct iss_net_private) { 641 641 .device_list = LIST_HEAD_INIT(lp->device_list), 642 642 .opened_list = LIST_HEAD_INIT(lp->opened_list), 643 - .lock = SPIN_LOCK_UNLOCKED, 643 + .lock = __SPIN_LOCK_UNLOCKED(lp.lock), 644 644 .dev = dev, 645 645 .index = index, 646 646 //.fd = -1,