]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
sparc: Fix parport build warnings.
authorDavid S. Miller <davem@davemloft.net>
Fri, 19 Oct 2018 17:52:52 +0000 (10:52 -0700)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:20:53 +0000 (14:20 -0300)
commitc7502917a50835742ddb128324c286d16854f636
tree770f323b025ea05ef64c58d7fd2df2657c5dbd71
parent13775c2e1955dbbe5024daa32d7ee362ebeb8319
sparc: Fix parport build warnings.

BugLink: https://bugs.launchpad.net/bugs/1854975
[ Upstream commit 46b8306480fb424abd525acc1763da1c63a27d8a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/sparc/include/asm/parport.h