diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2019-06-26 09:49:46 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-07-03 20:47:50 +1000 |
commit | 4b395fa6c6667810d878979bbf023c6a7052deba (patch) | |
tree | 7a74d722a2a44d0c287cfe5689fc9daf2f873693 | |
parent | 7645b9de7bd6014b268d6e9edff78cec468475a8 (diff) | |
download | linux-4b395fa6c6667810d878979bbf023c6a7052deba.tar.gz linux-4b395fa6c6667810d878979bbf023c6a7052deba.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index abc705716aa0..a6af73eaec11 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1350,7 +1350,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++) { |