[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210140453.BYfUhVyo-lkp@intel.com>
Date: Fri, 14 Oct 2022 04:23:19 +0800
From: kernel test robot <lkp@...el.com>
To: Mark Rutland <mark.rutland@....com>
Cc: 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
'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: parisc-allyesconfig
compiler: hppa-linux-gcc (GCC) 12.1.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://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=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc 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 '__register_ftrace_function' [-Wmissing-prototypes]
299 | int __register_ftrace_function(struct ftrace_ops *ops)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:342:5: warning: no previous prototype for '__unregister_ftrace_function' [-Wmissing-prototypes]
342 | int __unregister_ftrace_function(struct ftrace_ops *ops)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/trace/ftrace.c:2326:1: warning: no previous prototype for 'ftrace_find_ops_any' [-Wmissing-prototypes]
2326 | ftrace_find_ops_any(struct dyn_ftrace *rec)
| ^~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:4053:15: warning: no previous prototype for 'arch_ftrace_match_adjust' [-Wmissing-prototypes]
4053 | char * __weak arch_ftrace_match_adjust(char *str, const char *search)
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:4513:1: warning: 'text_section' attribute directive ignored [-Wattributes]
4513 | core_initcall(ftrace_mod_cmd_init);
| ^~~~~~~~~~~~~
kernel/trace/ftrace.c:8483:1: warning: 'text_section' attribute directive ignored [-Wattributes]
8483 | late_initcall(ftrace_sysctl_init);
| ^~~~~~~~~~~~~
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" (315945 bytes)
Powered by blists - more mailing lists