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]
Date:   Sat, 8 Jan 2022 17:52:21 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 2047/2372] kernel/up.c:14:5: warning: no
 previous prototype for 'smp_call_function_single'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   67f8f45b4d0cf00f8e53fc1c2b50c67608ede063
commit: 0587f672d6bfb2f51b421ca8a508a242c9969143 [2047/2372] headers/deps: genirq: Optimize <linux/interrupt.h> dependencies, remove <linux/hardirq.h>
config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20220108/202201081719.ylImExJG-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=0587f672d6bfb2f51b421ca8a508a242c9969143
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/headers
        git checkout 0587f672d6bfb2f51b421ca8a508a242c9969143
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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/up.c:14:5: warning: no previous prototype for 'smp_call_function_single' [-Wmissing-prototypes]
      14 | int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/up.c:30:5: warning: no previous prototype for 'smp_call_function_single_async' [-Wmissing-prototypes]
      30 | int smp_call_function_single_async(int cpu, struct __call_single_data *csd)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/up.c:45:6: warning: no previous prototype for 'on_each_cpu_cond_mask' [-Wmissing-prototypes]
      45 | void on_each_cpu_cond_mask(smp_cond_func_t cond_func, smp_call_func_t func,
         |      ^~~~~~~~~~~~~~~~~~~~~
>> kernel/up.c:60:5: warning: no previous prototype for 'smp_call_on_cpu' [-Wmissing-prototypes]
      60 | int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, bool phys)
         |     ^~~~~~~~~~~~~~~


vim +/smp_call_function_single +14 kernel/up.c

53ce3d95649087 Andrew Morton             2009-01-09  13  
53ce3d95649087 Andrew Morton             2009-01-09 @14  int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
53ce3d95649087 Andrew Morton             2009-01-09  15  				int wait)
53ce3d95649087 Andrew Morton             2009-01-09  16  {
081192b25c2d46 David Daney               2013-09-11  17  	unsigned long flags;
081192b25c2d46 David Daney               2013-09-11  18  
1e474b28e78897 Paul E. McKenney          2020-02-05  19  	if (cpu != 0)
1e474b28e78897 Paul E. McKenney          2020-02-05  20  		return -ENXIO;
93423b8665f43a Ingo Molnar               2009-01-11  21  
081192b25c2d46 David Daney               2013-09-11  22  	local_irq_save(flags);
081192b25c2d46 David Daney               2013-09-11  23  	func(info);
081192b25c2d46 David Daney               2013-09-11  24  	local_irq_restore(flags);
93423b8665f43a Ingo Molnar               2009-01-11  25  
53ce3d95649087 Andrew Morton             2009-01-09  26  	return 0;
53ce3d95649087 Andrew Morton             2009-01-09  27  }
53ce3d95649087 Andrew Morton             2009-01-09  28  EXPORT_SYMBOL(smp_call_function_single);
fa688207c9db48 David Daney               2013-09-11  29  
1139aeb1c521eb Arnd Bergmann             2021-05-05 @30  int smp_call_function_single_async(int cpu, struct __call_single_data *csd)
40c01e8bd5575e Christoph Hellwig         2013-11-14  31  {
40c01e8bd5575e Christoph Hellwig         2013-11-14  32  	unsigned long flags;
40c01e8bd5575e Christoph Hellwig         2013-11-14  33  
40c01e8bd5575e Christoph Hellwig         2013-11-14  34  	local_irq_save(flags);
40c01e8bd5575e Christoph Hellwig         2013-11-14  35  	csd->func(csd->info);
40c01e8bd5575e Christoph Hellwig         2013-11-14  36  	local_irq_restore(flags);
08eed44c7249d3 Jan Kara                  2014-02-24  37  	return 0;
40c01e8bd5575e Christoph Hellwig         2013-11-14  38  }
c46fff2a3b2979 Frederic Weisbecker       2014-02-24  39  EXPORT_SYMBOL(smp_call_function_single_async);
40c01e8bd5575e Christoph Hellwig         2013-11-14  40  
fa688207c9db48 David Daney               2013-09-11  41  /*
fa688207c9db48 David Daney               2013-09-11  42   * Preemption is disabled here to make sure the cond_func is called under the
f0fffaff0b8960 Bhaskar Chowdhury         2021-05-06  43   * same conditions in UP and SMP.
fa688207c9db48 David Daney               2013-09-11  44   */
5671d814dbd204 Sebastian Andrzej Siewior 2020-01-17 @45  void on_each_cpu_cond_mask(smp_cond_func_t cond_func, smp_call_func_t func,
cb923159bbb8cc Sebastian Andrzej Siewior 2020-01-17  46  			   void *info, bool wait, const struct cpumask *mask)
fa688207c9db48 David Daney               2013-09-11  47  {
fa688207c9db48 David Daney               2013-09-11  48  	unsigned long flags;
fa688207c9db48 David Daney               2013-09-11  49  
fa688207c9db48 David Daney               2013-09-11  50  	preempt_disable();
a5aa5ce3005972 Nadav Amit                2021-02-20  51  	if ((!cond_func || cond_func(0, info)) && cpumask_test_cpu(0, mask)) {
fa688207c9db48 David Daney               2013-09-11  52  		local_irq_save(flags);
fa688207c9db48 David Daney               2013-09-11  53  		func(info);
fa688207c9db48 David Daney               2013-09-11  54  		local_irq_restore(flags);
fa688207c9db48 David Daney               2013-09-11  55  	}
fa688207c9db48 David Daney               2013-09-11  56  	preempt_enable();
fa688207c9db48 David Daney               2013-09-11  57  }
7d49b28a80b830 Rik van Riel              2018-09-25  58  EXPORT_SYMBOL(on_each_cpu_cond_mask);
7d49b28a80b830 Rik van Riel              2018-09-25  59  
df8ce9d78a4e7f Juergen Gross             2016-08-29 @60  int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par, bool phys)

:::::: The code at line 14 was first introduced by commit
:::::: 53ce3d9564908794ae7dd32969089b57df5fc098 smp_call_function_single(): be slightly less stupid

:::::: TO: Andrew Morton <akpm@...ux-foundation.org>
:::::: CC: Ingo Molnar <mingo@...e.hu>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ