From: kernel test robot <lkp@intel.com>
To: Tom Zanussi <zanussi@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [zanussi-trace:ftrace/cleanup-hist-func-v1 1/2] kernel/trace/trace_events_trigger.c:685:6: error: no previous prototype for function 'event_trigger_remove'
Date: Sat, 6 Nov 2021 18:52:04 +0800 [thread overview]
Message-ID: <202111061802.arJc7dFO-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2483 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git ftrace/cleanup-hist-func-v1
head: 61eeb0efea39a7cae67ea43f3fe553559e0eb2b7
commit: bc058fce125e0728485b35332e34319cc6d51832 [1/2] tracing: Add helper functions to simplify event_command callback handling
config: x86_64-buildonly-randconfig-r006-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 627868263cd4d57c230b61904483a3dad9e1a1da)
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/zanussi/linux-trace.git/commit/?id=bc058fce125e0728485b35332e34319cc6d51832
git remote add zanussi-trace https://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git
git fetch --no-tags zanussi-trace ftrace/cleanup-hist-func-v1
git checkout bc058fce125e0728485b35332e34319cc6d51832
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> kernel/trace/trace_events_trigger.c:685:6: error: no previous prototype for function 'event_trigger_remove' [-Werror,-Wmissing-prototypes]
void event_trigger_remove(struct event_command *cmd_ops,
^
kernel/trace/trace_events_trigger.c:685:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void event_trigger_remove(struct event_command *cmd_ops,
^
static
1 error generated.
vim +/event_trigger_remove +685 kernel/trace/trace_events_trigger.c
684
> 685 void event_trigger_remove(struct event_command *cmd_ops,
686 struct trace_event_file *file,
687 char *glob,
688 char *cmd,
689 char *trigger,
690 struct event_trigger_data **trigger_data)
691 {
692 struct event_trigger_ops *trigger_ops;
693
694 trigger_ops = cmd_ops->get_trigger_ops(cmd, trigger);
695
696 cmd_ops->unreg(glob+1, trigger_ops, *trigger_data, file);
697
698 kfree(*trigger_data);
699
700 *trigger_data = NULL;
701 }
702
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 45364 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [zanussi-trace:ftrace/cleanup-hist-func-v1 1/2] kernel/trace/trace_events_trigger.c:685:6: error: no previous prototype for function 'event_trigger_remove'
Date: Sat, 06 Nov 2021 18:52:04 +0800 [thread overview]
Message-ID: <202111061802.arJc7dFO-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2540 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git ftrace/cleanup-hist-func-v1
head: 61eeb0efea39a7cae67ea43f3fe553559e0eb2b7
commit: bc058fce125e0728485b35332e34319cc6d51832 [1/2] tracing: Add helper functions to simplify event_command callback handling
config: x86_64-buildonly-randconfig-r006-20211105 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 627868263cd4d57c230b61904483a3dad9e1a1da)
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/zanussi/linux-trace.git/commit/?id=bc058fce125e0728485b35332e34319cc6d51832
git remote add zanussi-trace https://git.kernel.org/pub/scm/linux/kernel/git/zanussi/linux-trace.git
git fetch --no-tags zanussi-trace ftrace/cleanup-hist-func-v1
git checkout bc058fce125e0728485b35332e34319cc6d51832
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> kernel/trace/trace_events_trigger.c:685:6: error: no previous prototype for function 'event_trigger_remove' [-Werror,-Wmissing-prototypes]
void event_trigger_remove(struct event_command *cmd_ops,
^
kernel/trace/trace_events_trigger.c:685:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void event_trigger_remove(struct event_command *cmd_ops,
^
static
1 error generated.
vim +/event_trigger_remove +685 kernel/trace/trace_events_trigger.c
684
> 685 void event_trigger_remove(struct event_command *cmd_ops,
686 struct trace_event_file *file,
687 char *glob,
688 char *cmd,
689 char *trigger,
690 struct event_trigger_data **trigger_data)
691 {
692 struct event_trigger_ops *trigger_ops;
693
694 trigger_ops = cmd_ops->get_trigger_ops(cmd, trigger);
695
696 cmd_ops->unreg(glob+1, trigger_ops, *trigger_data, file);
697
698 kfree(*trigger_data);
699
700 *trigger_data = NULL;
701 }
702
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45364 bytes --]
next reply other threads:[~2021-11-06 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-06 10:52 kernel test robot [this message]
2021-11-06 10:52 ` [zanussi-trace:ftrace/cleanup-hist-func-v1 1/2] kernel/trace/trace_events_trigger.c:685:6: error: no previous prototype for function 'event_trigger_remove' kernel test robot
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=202111061802.arJc7dFO-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=zanussi@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.