linux/drivers/tty
Kurt Kanzenbach 9fb9b835bb tty: serial: pl011: explicitly initialize the flags variable
Silence the following gcc warning:

drivers/tty/serial/amba-pl011.c: In function ‘pl011_console_write’:
./include/linux/spinlock.h:260:3: warning: ‘flags’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   _raw_spin_unlock_irqrestore(lock, flags); \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/tty/serial/amba-pl011.c:2214:16: note: ‘flags’ was declared here
  unsigned long flags;
                ^~~~~

The code is correct. Thus, initializing flags to zero doesn't change the
behavior and resolves the warning.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
2023-03-25 04:21:33 +03:00
..
hvc tty: hvc: fix return value of __setup handler 2022-04-15 14:18:20 +02:00
ipwireless
serdev
serial tty: serial: pl011: explicitly initialize the flags variable 2023-03-25 04:21:33 +03:00
vt vt_ioctl: add array_index_nospec to VT_ACTIVATE 2022-02-16 12:52:52 +01:00
Kconfig
Makefile
amiserial.c tty: amiserial: fix TIOCSSERIAL permission check 2021-05-14 09:44:10 +02:00
cyclades.c
ehv_bytechan.c
goldfish.c
isicom.c
mips_ejtag_fdc.c
moxa.c tty: moxa: fix TIOCSSERIAL permission check 2021-05-14 09:44:11 +02:00
moxa.h
mxser.c mxser: fix xmit_buf leak in activate when LSR == 0xff 2022-04-15 14:18:17 +02:00
mxser.h
n_gsm.c tty: n_gsm: fix incorrect UA handling 2022-05-09 09:03:27 +02:00
n_hdlc.c
n_null.c
n_r3964.c
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c n_tty: wake up poll(POLLRDNORM) on receiving data 2022-02-16 12:52:52 +01:00
nozomi.c tty: nozomi: Fix the error handling path of 'nozomi_card_init()' 2021-07-14 16:53:41 +02:00
pty.c
rocket.c
rocket.h
rocket_int.h
synclink.c
synclink_gt.c tty: synclink_gt: rename a conflicting function name 2021-09-30 10:09:23 +02:00
synclinkmp.c
sysrq.c
tty_audit.c
tty_baudrate.c
tty_buffer.c tty: tty_buffer: Fix the softlockup issue in flush_to_ldisc 2021-11-26 10:47:16 +01:00
tty_io.c tty: Fix data race between tiocsti() and flush_to_ldisc() 2021-09-15 09:47:39 +02:00
tty_ioctl.c
tty_jobctrl.c
tty_ldisc.c
tty_ldsem.c
tty_mutex.c
tty_port.c
ttynull.c
vcc.c