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
Subject: [rt-devel:linux-6.2.y-rt-rebase 14/46] kernel/printk/printk.c:2903:13: warning: 'console_is_usable_unlocked' defined but not used
Date: Thu, 19 Jan 2023 14:07:45 +0800	[thread overview]
Message-ID: <202301191434.kRWtbfc2-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "gcc: unused function warning for stub function"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-6.2.y-rt-rebase
head:   bee0efc1fe1add1df7d677cee5a9c4c325196403
commit: 5342b8e20b15e5fb37e49de2435e62dd00ff20fe [14/46] printk: Bring back the RT bits.
:::::: branch date: 7 days ago
:::::: commit date: 7 days ago
config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20230119/202301191434.kRWtbfc2-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=5342b8e20b15e5fb37e49de2435e62dd00ff20fe
        git remote add rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
        git fetch --no-tags rt-devel linux-6.2.y-rt-rebase
        git checkout 5342b8e20b15e5fb37e49de2435e62dd00ff20fe
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/printk/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> kernel/printk/printk.c:2903:13: warning: 'console_is_usable_unlocked' defined but not used [-Wunused-function]
    2903 | static bool console_is_usable_unlocked(struct console *con)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/console_is_usable_unlocked +2903 kernel/printk/printk.c

a8199371afc279 Sergey Senozhatsky        2016-03-17  2902  
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19 @2903  static bool console_is_usable_unlocked(struct console *con)
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2904  {
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2905  	int cookie;
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2906  	bool ret;
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2907  
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2908  	cookie = console_srcu_read_lock();
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2909  	ret = console_is_usable(con);
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2910  	console_srcu_read_unlock(cookie);
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2911  
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2912  	return ret;
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2913  }
5342b8e20b15e5 Sebastian Andrzej Siewior 2022-07-19  2914  

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

             reply	other threads:[~2023-01-19  6:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-19  6:07 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-19  8:26 [rt-devel:linux-6.2.y-rt-rebase 14/46] kernel/printk/printk.c:2903:13: warning: 'console_is_usable_unlocked' defined but not used kernel test robot

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=202301191434.kRWtbfc2-lkp@intel.com \
    --to=lkp@intel.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.