summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2019-10-20 13:46:18 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2019-10-21 16:18:16 +1100
commit8c497fa2d36bfa8449fd67755c90f07dfc2e23f8 (patch)
tree60b08498c9cd1ff35f7be6896178620df7dc97e5
parente04f35c4ce5fdbeac724a2b0e0ac1fc80459c957 (diff)
downloadlinux-next-8c497fa2d36bfa8449fd67755c90f07dfc2e23f8.tar.gz
drivers/tty/serial/sh-sci.c: suppress warning
drivers/tty/serial/sh-sci.c: In function sci_dma_rx_submit: ./include/linux/spinlock.h:288:3: warning: flags may be used uninitialized in this function [-Wmaybe-uninitialized] _raw_spin_unlock_irqrestore(lock, flags); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/sh-sci.c:1353:16: note: flags was declared here unsigned long flags; Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jslaby@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--drivers/tty/serial/sh-sci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 58bf9d496ba5..14a702feaa8d 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -1349,7 +1349,7 @@ static int sci_dma_rx_submit(struct sci_port *s, bool port_lock_held)
{
struct dma_chan *chan = s->chan_rx;
struct uart_port *port = &s->port;
- unsigned long flags;
+ unsigned long uninitialized_var(flags);
int i;
for (i = 0; i < 2; i++) {