[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210141301.ziOnd9tE-lkp@intel.com>
Date: Fri, 14 Oct 2022 13:59:10 +0800
From: kernel test robot <lkp@...el.com>
To: Mark Rutland <mark.rutland@....com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [mark:arm64/ftrace/per-callsite-ops 9/10]
kernel/trace/ftrace.c:2326:1: warning: no previous prototype for function
'ftrace_find_ops_any'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/per-callsite-ops
head: 6a9b9a69092588f97ba9a8486fd33b5c54bf3a8c
commit: 5e5f06a01f95fd00fa8f41603141ca63b08166bc [9/10] HAXX: basically working
config: x86_64-randconfig-a012
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/mark/linux.git/commit/?id=5e5f06a01f95fd00fa8f41603141ca63b08166bc
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark arm64/ftrace/per-callsite-ops
git checkout 5e5f06a01f95fd00fa8f41603141ca63b08166bc
# 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 SHELL=/bin/bash kernel/trace/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
kernel/trace/ftrace.c:299:5: warning: no previous prototype for function '__register_ftrace_function' [-Wmissing-prototypes]
int __register_ftrace_function(struct ftrace_ops *ops)
^
kernel/trace/ftrace.c:299:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __register_ftrace_function(struct ftrace_ops *ops)
^
static
kernel/trace/ftrace.c:342:5: warning: no previous prototype for function '__unregister_ftrace_function' [-Wmissing-prototypes]
int __unregister_ftrace_function(struct ftrace_ops *ops)
^
kernel/trace/ftrace.c:342:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __unregister_ftrace_function(struct ftrace_ops *ops)
^
static
>> kernel/trace/ftrace.c:2326:1: warning: no previous prototype for function 'ftrace_find_ops_any' [-Wmissing-prototypes]
ftrace_find_ops_any(struct dyn_ftrace *rec)
^
kernel/trace/ftrace.c:2325:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct ftrace_ops *
^
static
kernel/trace/ftrace.c:4053:15: warning: no previous prototype for function 'arch_ftrace_match_adjust' [-Wmissing-prototypes]
char * __weak arch_ftrace_match_adjust(char *str, const char *search)
^
kernel/trace/ftrace.c:4053:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
char * __weak arch_ftrace_match_adjust(char *str, const char *search)
^
static
4 warnings generated.
vim +/ftrace_find_ops_any +2326 kernel/trace/ftrace.c
2324
2325 struct ftrace_ops *
> 2326 ftrace_find_ops_any(struct dyn_ftrace *rec)
2327 {
2328 struct ftrace_ops *op;
2329 unsigned long ip = rec->ip;
2330
2331 do_for_each_ftrace_op(op, ftrace_ops_list) {
2332
2333 if (hash_contains_ip(ip, op->func_hash))
2334 return op;
2335 } while_for_each_ftrace_op(op);
2336
2337 return NULL;
2338 }
2339 struct ftrace_ops *
2340 ftrace_find_tramp_ops_any(struct dyn_ftrace *rec)
2341 {
2342 struct ftrace_ops *op;
2343 unsigned long ip = rec->ip;
2344
2345 do_for_each_ftrace_op(op, ftrace_ops_list) {
2346
2347 if (!op->trampoline)
2348 continue;
2349
2350 if (hash_contains_ip(ip, op->func_hash))
2351 return op;
2352 } while_for_each_ftrace_op(op);
2353
2354 return NULL;
2355 }
2356
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (164266 bytes)
Powered by blists - more mailing lists