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>] [day] [month] [year] [list]
Date:   Tue, 1 Mar 2022 08:45:03 +0800
From:   kernel test robot <lkp@...el.com>
To:     Amir Goldstein <amir73il@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [amir73il:sb_iostats 3/8] fs/nfsd/export.c:337:16: error: implicit
 declaration of function 'percpu_counters_init'; did you mean
 'percpu_counter_init'?

tree:   https://github.com/amir73il/linux sb_iostats
head:   ecfdb413f2105083296e9cb45290eb1f01b0ef5c
commit: ec86002f8d5abb285345a931587f2f554d995825 [3/8] lib/percpu_counter: add helpers for arrays of counters
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20220301/202203010840.WX3EvHHw-lkp@intel.com/config)
compiler: alpha-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://github.com/amir73il/linux/commit/ec86002f8d5abb285345a931587f2f554d995825
        git remote add amir73il https://github.com/amir73il/linux
        git fetch --no-tags amir73il sb_iostats
        git checkout ec86002f8d5abb285345a931587f2f554d995825
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash fs/nfsd/

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

All errors (new ones prefixed by >>):

   fs/nfsd/export.c: In function 'export_stats_init':
>> fs/nfsd/export.c:337:16: error: implicit declaration of function 'percpu_counters_init'; did you mean 'percpu_counter_init'? [-Werror=implicit-function-declaration]
     337 |         return percpu_counters_init(stats->counter, EXP_STATS_COUNTERS_NUM, 0,
         |                ^~~~~~~~~~~~~~~~~~~~
         |                percpu_counter_init
   fs/nfsd/export.c: In function 'export_stats_reset':
>> fs/nfsd/export.c:343:9: error: implicit declaration of function 'percpu_counters_set'; did you mean 'percpu_counter_set'? [-Werror=implicit-function-declaration]
     343 |         percpu_counters_set(stats->counter, EXP_STATS_COUNTERS_NUM, 0);
         |         ^~~~~~~~~~~~~~~~~~~
         |         percpu_counter_set
   fs/nfsd/export.c: In function 'export_stats_destroy':
>> fs/nfsd/export.c:348:9: error: implicit declaration of function 'percpu_counters_destroy'; did you mean 'percpu_counter_destroy'? [-Werror=implicit-function-declaration]
     348 |         percpu_counters_destroy(stats->counter, EXP_STATS_COUNTERS_NUM);
         |         ^~~~~~~~~~~~~~~~~~~~~~~
         |         percpu_counter_destroy
   fs/nfsd/export.c: In function 'exp_rootfh':
   fs/nfsd/export.c:980:34: warning: variable 'inode' set but not used [-Wunused-but-set-variable]
     980 |         struct inode            *inode;
         |                                  ^~~~~
   cc1: some warnings being treated as errors
--
   fs/nfsd/nfscache.c: In function 'nfsd_reply_cache_stats_init':
>> fs/nfsd/nfscache.c:159:16: error: implicit declaration of function 'nfsd_percpu_counters_init'; did you mean 'percpu_counter_init'? [-Werror=implicit-function-declaration]
     159 |         return nfsd_percpu_counters_init(nn->counter, NFSD_NET_COUNTERS_NUM);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                percpu_counter_init
   fs/nfsd/nfscache.c: In function 'nfsd_reply_cache_stats_destroy':
>> fs/nfsd/nfscache.c:164:9: error: implicit declaration of function 'nfsd_percpu_counters_destroy'; did you mean 'percpu_counter_destroy'? [-Werror=implicit-function-declaration]
     164 |         nfsd_percpu_counters_destroy(nn->counter, NFSD_NET_COUNTERS_NUM);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         percpu_counter_destroy
   cc1: some warnings being treated as errors
--
   fs/nfsd/stats.c: In function 'nfsd_stat_counters_init':
>> fs/nfsd/stats.c:89:16: error: implicit declaration of function 'percpu_counters_init'; did you mean 'percpu_counter_init'? [-Werror=implicit-function-declaration]
      89 |         return percpu_counters_init(nfsdstats.counter, NFSD_STATS_COUNTERS_NUM,
         |                ^~~~~~~~~~~~~~~~~~~~
         |                percpu_counter_init
   fs/nfsd/stats.c: In function 'nfsd_stat_counters_destroy':
>> fs/nfsd/stats.c:95:9: error: implicit declaration of function 'percpu_counters_destroy'; did you mean 'percpu_counter_destroy'? [-Werror=implicit-function-declaration]
      95 |         percpu_counters_destroy(nfsdstats.counter, NFSD_STATS_COUNTERS_NUM);
         |         ^~~~~~~~~~~~~~~~~~~~~~~
         |         percpu_counter_destroy
   cc1: some warnings being treated as errors


vim +337 fs/nfsd/export.c

   333	
   334	static int export_stats_init(struct export_stats *stats)
   335	{
   336		stats->start_time = ktime_get_seconds();
 > 337		return percpu_counters_init(stats->counter, EXP_STATS_COUNTERS_NUM, 0,
   338					    GFP_KERNEL);
   339	}
   340	
   341	static void export_stats_reset(struct export_stats *stats)
   342	{
 > 343		percpu_counters_set(stats->counter, EXP_STATS_COUNTERS_NUM, 0);
   344	}
   345	
   346	static void export_stats_destroy(struct export_stats *stats)
   347	{
 > 348		percpu_counters_destroy(stats->counter, EXP_STATS_COUNTERS_NUM);
   349	}
   350	

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