From: kernel test robot <lkp@intel.com>
To: Qais Yousef <qais.yousef@arm.com>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>
Subject: tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:35:1: warning: no previous prototype for function 'bpf_testmod_test_write'
Date: Sat, 7 Aug 2021 04:27:51 +0800 [thread overview]
Message-ID: <202108070443.PU9FKKiZ-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2900 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 894d6f401b21865962aba776ecaa918b2f0abaa6
commit: 407be92206d54517765e028c8b79032eb8f8ac86 selftests: bpf: Add a new test for bare tracepoints
date: 7 months ago
config: x86_64-randconfig-r016-20210805 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 31a71a393f65d9e07b5b0756fef9dd16690950ee)
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/torvalds/linux.git/commit/?id=407be92206d54517765e028c8b79032eb8f8ac86
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 407be92206d54517765e028c8b79032eb8f8ac86
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:17:1: warning: no previous prototype for function 'bpf_testmod_test_read' [-Wmissing-prototypes]
bpf_testmod_test_read(struct file *file, struct kobject *kobj,
^
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:16:10: note: declare 'static' if the function is not intended to be used outside of this translation unit
noinline ssize_t
^
static
>> tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:35:1: warning: no previous prototype for function 'bpf_testmod_test_write' [-Wmissing-prototypes]
bpf_testmod_test_write(struct file *file, struct kobject *kobj,
^
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:34:10: note: declare 'static' if the function is not intended to be used outside of this translation unit
noinline ssize_t
^
static
2 warnings generated.
vim +/bpf_testmod_test_write +35 tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
33
34 noinline ssize_t
> 35 bpf_testmod_test_write(struct file *file, struct kobject *kobj,
36 struct bin_attribute *bin_attr,
37 char *buf, loff_t off, size_t len)
38 {
39 struct bpf_testmod_test_write_ctx ctx = {
40 .buf = buf,
41 .off = off,
42 .len = len,
43 };
44
45 trace_bpf_testmod_test_write_bare(current, &ctx);
46
47 return -EIO; /* always fail */
48 }
49 EXPORT_SYMBOL(bpf_testmod_test_write);
50 ALLOW_ERROR_INJECTION(bpf_testmod_test_write, ERRNO);
51
---
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: 32969 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:35:1: warning: no previous prototype for function 'bpf_testmod_test_write'
Date: Sat, 07 Aug 2021 04:27:51 +0800 [thread overview]
Message-ID: <202108070443.PU9FKKiZ-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2965 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 894d6f401b21865962aba776ecaa918b2f0abaa6
commit: 407be92206d54517765e028c8b79032eb8f8ac86 selftests: bpf: Add a new test for bare tracepoints
date: 7 months ago
config: x86_64-randconfig-r016-20210805 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 31a71a393f65d9e07b5b0756fef9dd16690950ee)
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/torvalds/linux.git/commit/?id=407be92206d54517765e028c8b79032eb8f8ac86
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 407be92206d54517765e028c8b79032eb8f8ac86
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:17:1: warning: no previous prototype for function 'bpf_testmod_test_read' [-Wmissing-prototypes]
bpf_testmod_test_read(struct file *file, struct kobject *kobj,
^
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:16:10: note: declare 'static' if the function is not intended to be used outside of this translation unit
noinline ssize_t
^
static
>> tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:35:1: warning: no previous prototype for function 'bpf_testmod_test_write' [-Wmissing-prototypes]
bpf_testmod_test_write(struct file *file, struct kobject *kobj,
^
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:34:10: note: declare 'static' if the function is not intended to be used outside of this translation unit
noinline ssize_t
^
static
2 warnings generated.
vim +/bpf_testmod_test_write +35 tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
33
34 noinline ssize_t
> 35 bpf_testmod_test_write(struct file *file, struct kobject *kobj,
36 struct bin_attribute *bin_attr,
37 char *buf, loff_t off, size_t len)
38 {
39 struct bpf_testmod_test_write_ctx ctx = {
40 .buf = buf,
41 .off = off,
42 .len = len,
43 };
44
45 trace_bpf_testmod_test_write_bare(current, &ctx);
46
47 return -EIO; /* always fail */
48 }
49 EXPORT_SYMBOL(bpf_testmod_test_write);
50 ALLOW_ERROR_INJECTION(bpf_testmod_test_write, ERRNO);
51
---
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: 32969 bytes --]
next reply other threads:[~2021-08-06 20:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-06 20:27 kernel test robot [this message]
2021-08-06 20:27 ` tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:35:1: warning: no previous prototype for function 'bpf_testmod_test_write' 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=202108070443.PU9FKKiZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=ast@kernel.org \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qais.yousef@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 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.