diff options
author | David S. Miller <davem@davemloft.net> | 2018-10-19 19:52:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-19 19:52:52 +0200 |
commit | 46b8306480fb424abd525acc1763da1c63a27d8a (patch) | |
tree | e59c5bb02582daf369dd99cf0f8fe7029b6ca0e0 /arch/sparc/vdso/vdso2c.h | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-46b8306480fb424abd525acc1763da1c63a27d8a.tar.xz linux-46b8306480fb424abd525acc1763da1c63a27d8a.zip |
sparc: Fix parport build warnings.
If PARPORT_PC_FIFO is not enabled, do not provide the dma lock
macros and lock definition. Otherwise:
./arch/sparc/include/asm/parport.h:24:24: warning: ‘dma_spin_lock’ defined but not used [-Wunused-variable]
static DEFINE_SPINLOCK(dma_spin_lock);
^~~~~~~~~~~~~
./include/linux/spinlock_types.h:81:39: note: in definition of macro ‘DEFINE_SPINLOCK’
#define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/vdso/vdso2c.h')
0 files changed, 0 insertions, 0 deletions