Skip to content

Commit 853265e

Browse files
Valentine BarshakJosh Boyer
authored andcommitted
[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>
1 parent c41f4af commit 853265e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎arch/powerpc/sysdev/dcr.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,6 @@ void dcr_unmap(dcr_host_t host, unsigned int dcr_c)
137137
h.token = NULL;
138138
}
139139
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) */

0 commit comments

Comments
 (0)