projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91daae0
)
tty/amba-pl011: fix a -Wunused-function warning
author
Qian Cai
<cai@lca.pw>
Tue, 17 Sep 2019 13:19:00 +0000
(09:19 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 12:58:05 +0000
(14:58 +0200)
pl011_dma_probe() is only used in pl011_dma_startup() which does only
exist when CONFIG_DMA_ENGINE=y, so remove the unused dummy version to
silence the warning.
Signed-off-by: Qian Cai <cai@lca.pw>
Link:
https://lore.kernel.org/r/1568726340-4518-1-git-send-email-cai@lca.pw
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/amba-pl011.c
b/drivers/tty/serial/amba-pl011.c
index
3a7d1a6
..
ae63266
100644
(file)
--- a/
drivers/tty/serial/amba-pl011.c
+++ b/
drivers/tty/serial/amba-pl011.c
@@
-1236,10
+1236,6
@@
static inline bool pl011_dma_rx_running(struct uart_amba_port *uap)
#else
/* Blank functions if the DMA engine is not available */
-static inline void pl011_dma_probe(struct uart_amba_port *uap)
-{
-}
-
static inline void pl011_dma_remove(struct uart_amba_port *uap)
{
}