From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mark:stacktrace/testing 1/1] lib/test_stacktrace/kunit.c:54:5: warning: no previous prototype for 'st_find_func_idx'
Date: Wed, 13 Apr 2022 09:31:14 +0800 [thread overview]
Message-ID: <202204130918.xY2l2rUd-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git stacktrace/testing
head: a8e8825116626f8c3e8be3bb889b6442a7465cb8
commit: a8e8825116626f8c3e8be3bb889b6442a7465cb8 [1/1] WIP: stacktrace tests
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20220413/202204130918.xY2l2rUd-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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=a8e8825116626f8c3e8be3bb889b6442a7465cb8
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark stacktrace/testing
git checkout a8e8825116626f8c3e8be3bb889b6442a7465cb8
# 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 lib/test_stacktrace/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
lib/test_stacktrace/kunit.c: In function 'callback_st_save':
lib/test_stacktrace/kunit.c:35:26: error: implicit declaration of function 'stack_trace_save'; did you mean 'stack_depot_save'? [-Werror=implicit-function-declaration]
35 | st->nr_entries = stack_trace_save(st->store, MAX_STACK_ENTRIES, 0);
| ^~~~~~~~~~~~~~~~
| stack_depot_save
lib/test_stacktrace/kunit.c: At top level:
>> lib/test_stacktrace/kunit.c:54:5: warning: no previous prototype for 'st_find_func_idx' [-Wmissing-prototypes]
54 | int st_find_func_idx(struct st_data *st, void *func, int start)
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/st_find_func_idx +54 lib/test_stacktrace/kunit.c
49
50 /*
51 * Find the index of the first instance of `func` within a trace, starting from
52 * `start`.
53 */
> 54 int st_find_func_idx(struct st_data *st, void *func, int start)
55 {
56 unsigned long size;
57 unsigned long offset;
58 unsigned long addr = (unsigned long)func;
59
60 if (!kallsyms_lookup_size_offset(addr, &size, &offset))
61 return st->nr_entries;
62
63 for (int i = start; i < st->nr_entries; i++) {
64 unsigned long elem = st->store[i];
65
66 if (elem < addr)
67 continue;
68 if (elem >= addr + size)
69 continue;
70
71 return i;
72 }
73
74 return st->nr_entries;
75 }
76
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-04-13 1:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202204130918.xY2l2rUd-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®