Re: [PATCH] netdevsim: remove incorrect __net_initdata annotations

From: Arnd Bergmann
Date: Wed Apr 04 2018 - 11:42:17 EST


On Wed, Apr 4, 2018 at 5:33 PM, David Ahern <dsa@xxxxxxxxxxxxxxxxxxx> 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 driver and that code
> has been there since June 2017.

I don't see any exit call in that driver, the only caller of
unregister_pernet_operations() there is in the init function itself,
and the module cannot be removed.

Arnd