Re: [PATCH] netdevsim: remove incorrect __net_initdata annotations

2018-04-04 Thread David Miller
From: Arnd Bergmann Date: Wed, 4 Apr 2018 18:03:41 +0200 > On Wed, Apr 4, 2018 at 5:52 PM, David Miller wrote: >> From: Arnd Bergmann >> Date: Wed, 4 Apr 2018 14:12:39 +0200 >> >>> The __net_initdata section cannot currently be used for structures that >>> get cleaned up in an exitcall using u

Re: [PATCH] netdevsim: remove incorrect __net_initdata annotations

2018-04-04 Thread Arnd Bergmann
On Wed, Apr 4, 2018 at 5:52 PM, David Miller wrote: > From: Arnd Bergmann > Date: Wed, 4 Apr 2018 14:12:39 +0200 > >> The __net_initdata section cannot currently be used for structures that >> get cleaned up in an exitcall using unregister_pernet_operations: >> >> WARNING: vmlinux.o(.text+0x868c

Re: [PATCH] netdevsim: remove incorrect __net_initdata annotations

2018-04-04 Thread David Miller
From: Arnd Bergmann Date: Wed, 4 Apr 2018 14:12:39 +0200 > The __net_initdata section cannot currently be used for structures that > get cleaned up in an exitcall using unregister_pernet_operations: > > WARNING: vmlinux.o(.text+0x868c34): Section mismatch in reference from the > function nsim_

Re: [PATCH] netdevsim: remove incorrect __net_initdata annotations

2018-04-04 Thread Arnd Bergmann
On Wed, Apr 4, 2018 at 5:33 PM, David Ahern wrote: > On 4/4/18 6:12 AM, Arnd Bergmann wrote: >> The __net_initdata section cannot currently be used for structures that >> get cleaned up in an exitcall using unregister_pernet_operations: >> > > I am confused ... I do the same thing in the VRF driv

Re: [PATCH] netdevsim: remove incorrect __net_initdata annotations

2018-04-04 Thread David Ahern
On 4/4/18 6:12 AM, Arnd Bergmann wrote: > The __net_initdata section cannot currently be used for structures that > get cleaned up in an exitcall using unregister_pernet_operations: > > WARNING: vmlinux.o(.text+0x868c34): Section mismatch in reference from the > function nsim_devlink_exit() to th

[PATCH] netdevsim: remove incorrect __net_initdata annotations

2018-04-04 Thread Arnd Bergmann
The __net_initdata section cannot currently be used for structures that get cleaned up in an exitcall using unregister_pernet_operations: WARNING: vmlinux.o(.text+0x868c34): Section mismatch in reference from the function nsim_devlink_exit() to the (unknown reference) .init.data:(unknown) The fun