net/bpf/test_run.c:218:14: warning: no previous prototype for 'bpf_kfunc_call_test1'
From: kernel test robot
Date: Fri Jun 04 2021 - 05:39:24 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f88cd3fb9df228e5ce4e13ec3dbad671ddb2146e
commit: 7bd1590d4eba1583f6ee85e8cfe556505f761e19 bpf: selftests: Add kfunc_call test
date: 10 weeks ago
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Ubuntu 6.4.0-17ubuntu1) 6.4.0 20180424
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7bd1590d4eba1583f6ee85e8cfe556505f761e19
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7bd1590d4eba1583f6ee85e8cfe556505f761e19
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
net/bpf/test_run.c:168:14: warning: no previous prototype for 'bpf_fentry_test1' [-Wmissing-prototypes]
int noinline bpf_fentry_test1(int a)
^~~~~~~~~~~~~~~~
net/bpf/test_run.c:173:14: warning: no previous prototype for 'bpf_fentry_test2' [-Wmissing-prototypes]
int noinline bpf_fentry_test2(int a, u64 b)
^~~~~~~~~~~~~~~~
net/bpf/test_run.c:178:14: warning: no previous prototype for 'bpf_fentry_test3' [-Wmissing-prototypes]
int noinline bpf_fentry_test3(char a, int b, u64 c)
^~~~~~~~~~~~~~~~
net/bpf/test_run.c:183:14: warning: no previous prototype for 'bpf_fentry_test4' [-Wmissing-prototypes]
int noinline bpf_fentry_test4(void *a, char b, int c, u64 d)
^~~~~~~~~~~~~~~~
net/bpf/test_run.c:188:14: warning: no previous prototype for 'bpf_fentry_test5' [-Wmissing-prototypes]
int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e)
^~~~~~~~~~~~~~~~
net/bpf/test_run.c:193:14: warning: no previous prototype for 'bpf_fentry_test6' [-Wmissing-prototypes]
int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f)
^~~~~~~~~~~~~~~~
net/bpf/test_run.c:202:14: warning: no previous prototype for 'bpf_fentry_test7' [-Wmissing-prototypes]
int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg)
^~~~~~~~~~~~~~~~
net/bpf/test_run.c:207:14: warning: no previous prototype for 'bpf_fentry_test8' [-Wmissing-prototypes]
int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg)
^~~~~~~~~~~~~~~~
net/bpf/test_run.c:212:14: warning: no previous prototype for 'bpf_modify_return_test' [-Wmissing-prototypes]
int noinline bpf_modify_return_test(int a, int *b)
^~~~~~~~~~~~~~~~~~~~~~
>> net/bpf/test_run.c:218:14: warning: no previous prototype for 'bpf_kfunc_call_test1' [-Wmissing-prototypes]
u64 noinline bpf_kfunc_call_test1(struct sock *sk, u32 a, u64 b, u32 c, u64 d)
^~~~~~~~~~~~~~~~~~~~
>> net/bpf/test_run.c:223:14: warning: no previous prototype for 'bpf_kfunc_call_test2' [-Wmissing-prototypes]
int noinline bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b)
^~~~~~~~~~~~~~~~~~~~
>> net/bpf/test_run.c:228:24: warning: no previous prototype for 'bpf_kfunc_call_test3' [-Wmissing-prototypes]
struct sock * noinline bpf_kfunc_call_test3(struct sock *sk)
^~~~~~~~~~~~~~~~~~~~
vim +/bpf_kfunc_call_test1 +218 net/bpf/test_run.c
201
> 202 int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg)
203 {
204 return (long)arg;
205 }
206
> 207 int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg)
208 {
209 return (long)arg->a;
210 }
211
> 212 int noinline bpf_modify_return_test(int a, int *b)
213 {
214 *b += 1;
215 return a + *b;
216 }
217
> 218 u64 noinline bpf_kfunc_call_test1(struct sock *sk, u32 a, u64 b, u32 c, u64 d)
219 {
220 return a + b + c + d;
221 }
222
> 223 int noinline bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b)
224 {
225 return a + b;
226 }
227
> 228 struct sock * noinline bpf_kfunc_call_test3(struct sock *sk)
229 {
230 return sk;
231 }
232
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip