All of lore.kernel.org
 help / color / mirror / Atom feed
* net/bpf/test_run.c:218:14: warning: no previous prototype for 'bpf_kfunc_call_test1'
@ 2021-06-04  9:38 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-04  9:38 UTC (permalink / raw)
  To: Martin KaFai Lau; +Cc: kbuild-all, linux-kernel, Alexei Starovoitov

[-- Attachment #1: Type: text/plain, Size: 4357 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 45970 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* net/bpf/test_run.c:218:14: warning: no previous prototype for 'bpf_kfunc_call_test1'
@ 2021-06-04  9:38 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-04  9:38 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4454 bytes --]

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@intel.com>

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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45970 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-04  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04  9:38 net/bpf/test_run.c:218:14: warning: no previous prototype for 'bpf_kfunc_call_test1' kernel test robot
2021-06-04  9:38 ` kernel test robot

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.