From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
Subject: [ammarfaizi2-block:google/android/kernel/common/android14-5.15 9/11] arch/arm64/kvm/hyp_events.c:204:6: warning: no previous prototype for function 'kvm_hyp_events_enable_early'
Date: Tue, 14 Feb 2023 20:46:21 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android14-5.15
head: 27e5fbdd8569f72e6fc38ffd7f3b6b4992099026
commit: 8f1f4a1b65a4aa9b4ab2c37052d08d59404a06db [9/11] ANDROID: KVM: arm64: add support for early enablement nVHE hyp events
config: arm64-randconfig-r032-20230213 (https://download.01.org/0day-ci/archive/20230214/[email protected]/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db89896bbbd2251fff457699635acbbedeead27f)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/ammarfaizi2/linux-block/commit/8f1f4a1b65a4aa9b4ab2c37052d08d59404a06db
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android14-5.15
git checkout 8f1f4a1b65a4aa9b4ab2c37052d08d59404a06db
# 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=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from arch/arm64/kvm/hyp_events.c:37:
arch/arm64/include/asm/kvm_hypevents.h:14:1: warning: no previous prototype for function 'hyp_event_trace_hyp_enter' [-Wmissing-prototypes]
HYP_EVENT(hyp_enter,
^
arch/arm64/kvm/hyp_events.c:25:20: note: expanded from macro 'HYP_EVENT'
enum print_line_t hyp_event_trace_##__name(struct trace_iterator *iter, \
^
<scratch space>:80:1: note: expanded from here
hyp_event_trace_hyp_enter
^
arch/arm64/include/asm/kvm_hypevents.h:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/kvm/hyp_events.c:25:2: note: expanded from macro 'HYP_EVENT'
enum print_line_t hyp_event_trace_##__name(struct trace_iterator *iter, \
^
In file included from arch/arm64/kvm/hyp_events.c:37:
arch/arm64/include/asm/kvm_hypevents.h:23:1: warning: no previous prototype for function 'hyp_event_trace_hyp_exit' [-Wmissing-prototypes]
HYP_EVENT(hyp_exit,
^
arch/arm64/kvm/hyp_events.c:25:20: note: expanded from macro 'HYP_EVENT'
enum print_line_t hyp_event_trace_##__name(struct trace_iterator *iter, \
^
<scratch space>:85:1: note: expanded from here
hyp_event_trace_hyp_exit
^
arch/arm64/include/asm/kvm_hypevents.h:23:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/kvm/hyp_events.c:25:2: note: expanded from macro 'HYP_EVENT'
enum print_line_t hyp_event_trace_##__name(struct trace_iterator *iter, \
^
>> arch/arm64/kvm/hyp_events.c:204:6: warning: no previous prototype for function 'kvm_hyp_events_enable_early' [-Wmissing-prototypes]
bool kvm_hyp_events_enable_early(void)
^
arch/arm64/kvm/hyp_events.c:204:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool kvm_hyp_events_enable_early(void)
^
static
arch/arm64/kvm/hyp_events.c:239:6: warning: no previous prototype for function 'kvm_hyp_init_events_tracefs' [-Wmissing-prototypes]
void kvm_hyp_init_events_tracefs(struct dentry *parent)
^
arch/arm64/kvm/hyp_events.c:239:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_hyp_init_events_tracefs(struct dentry *parent)
^
static
arch/arm64/kvm/hyp_events.c:271:5: warning: no previous prototype for function 'kvm_hyp_init_events' [-Wmissing-prototypes]
int kvm_hyp_init_events(void)
^
arch/arm64/kvm/hyp_events.c:271:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kvm_hyp_init_events(void)
^
static
5 warnings generated.
vim +/kvm_hyp_events_enable_early +204 arch/arm64/kvm/hyp_events.c
203
> 204 bool kvm_hyp_events_enable_early(void)
205 {
206 char *token, *buf = early_events;
207 bool enabled = false;
208
209 while (true) {
210 token = strsep(&buf, ",");
211
212 if (!token)
213 break;
214
215 if (*token) {
216 struct hyp_event *event;
217 int ret;
218
219 event = find_hyp_event(token);
220 if (event) {
221 ret = enable_hyp_event(event, true);
222 if (ret)
223 pr_warn("Couldn't enable hyp event %s:%d\n",
224 token, ret);
225 else
226 enabled = true;
227 } else {
228 pr_warn("Couldn't find hyp event %s\n", token);
229 }
230 }
231
232 if (buf)
233 *(buf - 1) = ',';
234 }
235
236 return enabled;
237 }
238
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-14 12:47 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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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