All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-review:Eric-Sage/samples-bpf-Add-xdp_stat-sample-program/20200330-072019 1440/1453] net/core/net_namespace.c:74:5: error: redefinition of 'net_gen_cookie'
@ 2020-03-30  7:27 kbuild test robot
  2020-03-30  7:51 ` Daniel Borkmann
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-03-30  7:27 UTC (permalink / raw)
  To: kbuild-all

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

Hi Daniel,

FYI, the error/warning still remains.

tree:   https://github.com/0day-ci/linux/commits/Eric-Sage/samples-bpf-Add-xdp_stat-sample-program/20200330-072019
head:   ea1b34dc9e2f8a1ea08f18fb1512457a99dd596d
commit: f318903c0bf42448b4c884732df2bbb0ef7a2284 [1440/1453] bpf: Add netns cookie and enable it for bpf cgroup hooks
config: i386-randconfig-f002-20200330 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
        git checkout f318903c0bf42448b4c884732df2bbb0ef7a2284
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> net/core/net_namespace.c:74:5: error: redefinition of 'net_gen_cookie'
    u64 net_gen_cookie(struct net *net)
        ^~~~~~~~~~~~~~
   In file included from include/linux/netdevice.h:38:0,
                    from include/linux/rtnetlink.h:7,
                    from net/core/net_namespace.c:5:
   include/net/net_namespace.h:308:19: note: previous definition of 'net_gen_cookie' was here
    static inline u64 net_gen_cookie(struct net *net)
                      ^~~~~~~~~~~~~~

vim +/net_gen_cookie +74 net/core/net_namespace.c

    73	
  > 74	u64 net_gen_cookie(struct net *net)
    75	{
    76		while (1) {
    77			u64 res = atomic64_read(&net->net_cookie);
    78	
    79			if (res)
    80				return res;
    81			res = atomic64_inc_return(&cookie_gen);
    82			atomic64_cmpxchg(&net->net_cookie, 0, res);
    83		}
    84	}
    85	

---
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: 28600 bytes --]

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

* Re: [linux-review:Eric-Sage/samples-bpf-Add-xdp_stat-sample-program/20200330-072019 1440/1453] net/core/net_namespace.c:74:5: error: redefinition of 'net_gen_cookie'
  2020-03-30  7:27 [linux-review:Eric-Sage/samples-bpf-Add-xdp_stat-sample-program/20200330-072019 1440/1453] net/core/net_namespace.c:74:5: error: redefinition of 'net_gen_cookie' kbuild test robot
@ 2020-03-30  7:51 ` Daniel Borkmann
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2020-03-30  7:51 UTC (permalink / raw)
  To: kbuild-all

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

On 3/30/20 9:27 AM, kbuild test robot wrote:
> Hi Daniel,
> 
> FYI, the error/warning still remains.
> 
> tree:   https://github.com/0day-ci/linux/commits/Eric-Sage/samples-bpf-Add-xdp_stat-sample-program/20200330-072019
> head:   ea1b34dc9e2f8a1ea08f18fb1512457a99dd596d
> commit: f318903c0bf42448b4c884732df2bbb0ef7a2284 [1440/1453] bpf: Add netns cookie and enable it for bpf cgroup hooks
> config: i386-randconfig-f002-20200330 (attached as .config)
> compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
> reproduce:
>          git checkout f318903c0bf42448b4c884732df2bbb0ef7a2284
>          # save the attached .config to linux build tree
>          make ARCH=i386
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>>> net/core/net_namespace.c:74:5: error: redefinition of 'net_gen_cookie'
>      u64 net_gen_cookie(struct net *net)
>          ^~~~~~~~~~~~~~
>     In file included from include/linux/netdevice.h:38:0,
>                      from include/linux/rtnetlink.h:7,
>                      from net/core/net_namespace.c:5:
>     include/net/net_namespace.h:308:19: note: previous definition of 'net_gen_cookie' was here
>      static inline u64 net_gen_cookie(struct net *net)
>                        ^~~~~~~~~~~~~~

Fyi, fixed since yesterday night, so probably kbuild bot didn't update the tree yet here.

> vim +/net_gen_cookie +74 net/core/net_namespace.c
> 
>      73	
>    > 74	u64 net_gen_cookie(struct net *net)
>      75	{
>      76		while (1) {
>      77			u64 res = atomic64_read(&net->net_cookie);
>      78	
>      79			if (res)
>      80				return res;
>      81			res = atomic64_inc_return(&cookie_gen);
>      82			atomic64_cmpxchg(&net->net_cookie, 0, res);
>      83		}
>      84	}
>      85	
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
> 

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

end of thread, other threads:[~2020-03-30  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30  7:27 [linux-review:Eric-Sage/samples-bpf-Add-xdp_stat-sample-program/20200330-072019 1440/1453] net/core/net_namespace.c:74:5: error: redefinition of 'net_gen_cookie' kbuild test robot
2020-03-30  7:51 ` Daniel Borkmann

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.