All of lore.kernel.org
 help / color / mirror / Atom feed
* [melver:ctx-analysis/dev 8/36] drivers/tty/serial/fsl_linflexuart.c:657 linflex_console_write() error: uninitialized symbol 'flags'.
@ 2025-12-18 12:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-18 12:31 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: elver@google.com

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git ctx-analysis/dev
head:   5950df0508b3b151758cb1d1d965713d93200c47
commit: 5f1642c5f2075d5dc42bfc1f5978ce33356417fa [8/36] locking/rwlock, spinlock: Support Clang's context analysis
:::::: branch date: 21 hours ago
:::::: commit date: 22 hours ago
config: nios2-randconfig-r073-20251218 (https://download.01.org/0day-ci/archive/20251218/202512182003.gapcsWar-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 8.5.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202512182003.gapcsWar-lkp@intel.com/

New smatch warnings:
drivers/tty/serial/fsl_linflexuart.c:657 linflex_console_write() error: uninitialized symbol 'flags'.
drivers/tty/serial/digicolor-usart.c:408 digicolor_uart_console_write() error: uninitialized symbol 'flags'.
drivers/tty/serial/uartlite.c:523 ulite_console_write() error: uninitialized symbol 'flags'.
drivers/tty/serial/fsl_lpuart.c:1336 lpuart_timer_func() error: uninitialized symbol 'flags'.

Old smatch warnings:
drivers/tty/serial/fsl_linflexuart.c:613 linflex_earlycon_putchar() error: we previously assumed 'earlycon_buf.content' could be null (see line 601)
drivers/tty/serial/fsl_linflexuart.c:746 linflex_console_setup() error: we previously assumed 'earlycon_port' could be null (see line 720)

vim +/flags +657 drivers/tty/serial/fsl_linflexuart.c

09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  639  
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  640  static void
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  641  linflex_console_write(struct console *co, const char *s, unsigned int count)
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  642  {
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  643  	struct uart_port *sport = linflex_ports[co->index];
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  644  	unsigned long flags;
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  645  	int locked = 1;
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  646  
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  647  	if (sport->sysrq)
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  648  		locked = 0;
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  649  	else if (oops_in_progress)
7c6725ffd58133 Thomas Gleixner      2023-09-14  650  		locked = uart_port_trylock_irqsave(sport, &flags);
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  651  	else
7c6725ffd58133 Thomas Gleixner      2023-09-14  652  		uart_port_lock_irqsave(sport, &flags);
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  653  
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  654  	linflex_string_write(sport, s, count);
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  655  
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  656  	if (locked)
7c6725ffd58133 Thomas Gleixner      2023-09-14 @657  		uart_port_unlock_irqrestore(sport, flags);
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  658  }
09864c1cdf5c53 Stefan-gabriel Mirea 2019-08-09  659  

:::::: The code at line 657 was first introduced by commit
:::::: 7c6725ffd58133536b372bdb3559e7da0c89e492 serial: linflexuart: Use port lock wrappers

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-18 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18 12:31 [melver:ctx-analysis/dev 8/36] drivers/tty/serial/fsl_linflexuart.c:657 linflex_console_write() error: uninitialized symbol 'flags' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.