lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204221324.lemh8k10-lkp@intel.com>
Date:   Fri, 22 Apr 2022 13:17:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     John Ogness <john.ogness@...utronix.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Subject: [rt-devel:linux-5.18.y-rt-rebase 17/78]
 kernel/printk/printk.c:3182:13: warning: 'console_emit_next_record' used but
 never defined

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.18.y-rt-rebase
head:   03e7725ddbfb0ffd7f3d7b257bfa504c6f795f6b
commit: 72b5c1227b73b2cde1452cfc58717cff442ed473 [17/78] serial: 8250: implement write_atomic
config: m68k-randconfig-r021-20220421 (https://download.01.org/0day-ci/archive/20220422/202204221324.lemh8k10-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=72b5c1227b73b2cde1452cfc58717cff442ed473
        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-5.18.y-rt-rebase
        git checkout 72b5c1227b73b2cde1452cfc58717cff442ed473
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash kernel/printk/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   kernel/printk/printk.c: In function 'atomic_console_flush_all':
   kernel/printk/printk.c:3187:14: warning: variable 'any_usable' set but not used [-Wunused-but-set-variable]
    3187 |         bool any_usable = false;
         |              ^~~~~~~~~~
   kernel/printk/printk.c: At top level:
>> kernel/printk/printk.c:3182:13: warning: 'console_emit_next_record' used but never defined
    3182 | static bool console_emit_next_record(struct console *con, char *text, char *ext_text,
         |             ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/console_emit_next_record +3182 kernel/printk/printk.c

fe3d8ad31cf51b kernel/printk.c        Feng Tang   2011-03-22  3180  
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3181  #ifdef CONFIG_HAVE_ATOMIC_CONSOLE
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04 @3182  static bool console_emit_next_record(struct console *con, char *text, char *ext_text,
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3183  				     char *dropped_text, bool atomic_printing);
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3184  
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3185  static void atomic_console_flush_all(void)
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3186  {
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04 @3187  	bool any_usable = false;
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3188  	unsigned long flags;
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3189  	struct console *con;
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3190  	bool any_progress;
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3191  	int index = 0;
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3192  
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3193  	if (console_suspended)
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3194  		return;
943b66638a0519 kernel/printk/printk.c John Ogness 2022-02-04  3195  

:::::: The code at line 3182 was first introduced by commit
:::::: 943b66638a0519612cdc25dcb07f59af89d37407 printk: add infrastucture for atomic consoles

:::::: TO: John Ogness <john.ogness@...utronix.de>
:::::: CC: Sebastian Andrzej Siewior <bigeasy@...utronix.de>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ