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

[POWERPC] Add missing native dcr dcr_ind_lock spinlock

The include/asm-powerpc/dcr-native.h declares extern spinlock_t dcr_ind_lock;
but it's actually isn't defined. This patch adds a missing dcr_ind_lock.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>

authored by

Valentine Barshak and committed by
Josh Boyer
853265e5 c41f4af8

+3 -2
+3 -2
arch/powerpc/sysdev/dcr.c
··· 137 137 h.token = NULL; 138 138 } 139 139 EXPORT_SYMBOL_GPL(dcr_unmap); 140 - 141 - #endif /* !defined(CONFIG_PPC_DCR_NATIVE) */ 140 + #else /* defined(CONFIG_PPC_DCR_NATIVE) */ 141 + DEFINE_SPINLOCK(dcr_ind_lock); 142 + #endif /* !defined(CONFIG_PPC_DCR_NATIVE) */