All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [melver:ctx-analysis/dev 8/36] drivers/tty/serial/fsl_linflexuart.c:657 linflex_console_write() error: uninitialized symbol 'flags'.
Date: Thu, 18 Dec 2025 20:31:34 +0800	[thread overview]
Message-ID: <202512182003.gapcsWar-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-12-18 12:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202512182003.gapcsWar-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.