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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202305190259.Rm6JC6Nz-lkp@intel.com>
Date:   Fri, 19 May 2023 02:30:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Paul E. McKenney" <paulmck@...nel.org>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        linux-kernel@...r.kernel.org
Subject: [paulmck-rcu:rcu/next 19/19] kernel/rcu/rcuscale.c:340:20: error:
 use of undeclared identifier 'get_rcu_tasks_trace_gp_kthread'; did you mean
 'show_rcu_tasks_trace_gp_kthread'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
head:   9bb839a83e1bbbfd4f7f20827aafd0a39fad00c7
commit: 9bb839a83e1bbbfd4f7f20827aafd0a39fad00c7 [19/19] rcuscale: Measure grace-period kthread CPU time
config: x86_64-randconfig-a001
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/paulmck/linux-rcu.git/commit/?id=9bb839a83e1bbbfd4f7f20827aafd0a39fad00c7
        git remote add paulmck-rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
        git fetch --no-tags paulmck-rcu rcu/next
        git checkout 9bb839a83e1bbbfd4f7f20827aafd0a39fad00c7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/rcu/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305190259.Rm6JC6Nz-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/rcu/rcuscale.c:340:20: error: use of undeclared identifier 'get_rcu_tasks_trace_gp_kthread'; did you mean 'show_rcu_tasks_trace_gp_kthread'?
           .rso_gp_kthread = get_rcu_tasks_trace_gp_kthread,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                             show_rcu_tasks_trace_gp_kthread
   kernel/rcu/rcu.h:642:20: note: 'show_rcu_tasks_trace_gp_kthread' declared here
   static inline void show_rcu_tasks_trace_gp_kthread(void) {}
                      ^
>> kernel/rcu/rcuscale.c:340:20: error: incompatible function pointer types initializing 'struct task_struct *(*)(void)' with an expression of type 'void (void)' [-Werror,-Wincompatible-function-pointer-types]
           .rso_gp_kthread = get_rcu_tasks_trace_gp_kthread,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +340 kernel/rcu/rcuscale.c

   328	
   329	static struct rcu_scale_ops tasks_tracing_ops = {
   330		.ptype		= RCU_TASKS_FLAVOR,
   331		.init		= rcu_sync_scale_init,
   332		.readlock	= tasks_trace_scale_read_lock,
   333		.readunlock	= tasks_trace_scale_read_unlock,
   334		.get_gp_seq	= rcu_no_completed,
   335		.gp_diff	= rcu_seq_diff,
   336		.async		= call_rcu_tasks_trace,
   337		.gp_barrier	= rcu_barrier_tasks_trace,
   338		.sync		= synchronize_rcu_tasks_trace,
   339		.exp_sync	= synchronize_rcu_tasks_trace,
 > 340		.rso_gp_kthread	= get_rcu_tasks_trace_gp_kthread,
   341		.name		= "tasks-tracing"
   342	};
   343	

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

View attachment "config" of type "text/plain" (154581 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ