[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203011147.TpujEh2h-lkp@intel.com>
Date: Tue, 1 Mar 2022 12:19:05 +0800
From: kernel test robot <lkp@...el.com>
To: Amir Goldstein <amir73il@...il.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [amir73il:sb_iostats 3/8] fs/nfsd/export.c:337:9: error: implicit
declaration of function 'percpu_counters_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: arm-versatile_defconfig (https://download.01.org/0day-ci/archive/20220301/202203011147.TpujEh2h-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 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=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
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:337:9: error: implicit declaration of function 'percpu_counters_init' [-Werror,-Wimplicit-function-declaration]
return percpu_counters_init(stats->counter, EXP_STATS_COUNTERS_NUM, 0,
^
fs/nfsd/export.c:337:9: note: did you mean 'percpu_counter_init'?
include/linux/percpu_counter.h:106:19: note: 'percpu_counter_init' declared here
static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount,
^
>> fs/nfsd/export.c:343:2: error: implicit declaration of function 'percpu_counters_set' [-Werror,-Wimplicit-function-declaration]
percpu_counters_set(stats->counter, EXP_STATS_COUNTERS_NUM, 0);
^
fs/nfsd/export.c:343:2: note: did you mean 'percpu_counter_set'?
include/linux/percpu_counter.h:117:20: note: 'percpu_counter_set' declared here
static inline void percpu_counter_set(struct percpu_counter *fbc, s64 amount)
^
>> fs/nfsd/export.c:348:2: error: implicit declaration of function 'percpu_counters_destroy' [-Werror,-Wimplicit-function-declaration]
percpu_counters_destroy(stats->counter, EXP_STATS_COUNTERS_NUM);
^
fs/nfsd/export.c:348:2: note: did you mean 'percpu_counter_destroy'?
include/linux/percpu_counter.h:113:20: note: 'percpu_counter_destroy' declared here
static inline void percpu_counter_destroy(struct percpu_counter *fbc)
^
fs/nfsd/export.c:980:17: warning: variable 'inode' set but not used [-Wunused-but-set-variable]
struct inode *inode;
^
1 warning and 3 errors generated.
--
>> fs/nfsd/nfscache.c:159:9: error: implicit declaration of function 'nfsd_percpu_counters_init' [-Werror,-Wimplicit-function-declaration]
return nfsd_percpu_counters_init(nn->counter, NFSD_NET_COUNTERS_NUM);
^
fs/nfsd/nfscache.c:159:9: note: did you mean 'percpu_counter_init'?
include/linux/percpu_counter.h:106:19: note: 'percpu_counter_init' declared here
static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount,
^
>> fs/nfsd/nfscache.c:164:2: error: implicit declaration of function 'nfsd_percpu_counters_destroy' [-Werror,-Wimplicit-function-declaration]
nfsd_percpu_counters_destroy(nn->counter, NFSD_NET_COUNTERS_NUM);
^
fs/nfsd/nfscache.c:164:2: note: did you mean 'percpu_counter_destroy'?
include/linux/percpu_counter.h:113:20: note: 'percpu_counter_destroy' declared here
static inline void percpu_counter_destroy(struct percpu_counter *fbc)
^
2 errors generated.
--
>> fs/nfsd/stats.c:89:9: error: implicit declaration of function 'percpu_counters_init' [-Werror,-Wimplicit-function-declaration]
return percpu_counters_init(nfsdstats.counter, NFSD_STATS_COUNTERS_NUM,
^
fs/nfsd/stats.c:89:9: note: did you mean 'percpu_counter_init'?
include/linux/percpu_counter.h:106:19: note: 'percpu_counter_init' declared here
static inline int percpu_counter_init(struct percpu_counter *fbc, s64 amount,
^
>> fs/nfsd/stats.c:95:2: error: implicit declaration of function 'percpu_counters_destroy' [-Werror,-Wimplicit-function-declaration]
percpu_counters_destroy(nfsdstats.counter, NFSD_STATS_COUNTERS_NUM);
^
fs/nfsd/stats.c:95:2: note: did you mean 'percpu_counter_destroy'?
include/linux/percpu_counter.h:113:20: note: 'percpu_counter_destroy' declared here
static inline void percpu_counter_destroy(struct percpu_counter *fbc)
^
2 errors generated.
vim +/percpu_counters_init +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