All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2023-01-19  6:07 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-01-19  6:07 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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
@ 2023-01-19  8:26 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-01-19  8:26 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior; +Cc: oe-kbuild-all

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.
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 <yujie.liu@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-19  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19  6:07 [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
  -- strict thread matches above, loose matches on Subject: below --
2023-01-19  8:26 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.