Hi Greg, On 2019/1/8 0:35, Greg KH wrote: > On Mon, Jan 07, 2019 at 10:58:12PM +0800, Shaokun Zhang wrote: >> In file included from ./include/linux/rwsem.h:16:0, >> from ./include/linux/notifier.h:15, >> from ./include/linux/clk.h:17, >> from drivers/tty/serial/sh-sci.c:24: >> drivers/tty/serial/sh-sci.c: In function ‘sci_submit_rx’: >> ./include/linux/spinlock.h:279:3: warning: ‘flags’ may be used uninitialized in this function [-Wmaybe-uninitialized] >> _raw_spin_unlock_irqrestore(lock, flags); \ >> ^ >> drivers/tty/serial/sh-sci.c:1338:16: note: ‘flags’ was declared here >> unsigned long flags; >> GCC version is gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609. > > That is a very old version of gcc, please use a newer one that actually > has fixed this bug... > Thanks your reply and guidance. It's ok when I change to gcc 7.2. Thanks, Shaokun. > thanks, > > greg k-h > >