RE: [PATCH v2 1/2] net: ethernet: i40e: fix build error
From: Wyborny, Carolyn
Date: Thu Sep 06 2018 - 14:15:24 EST
> -----Original Message-----
> From: netdev-owner@xxxxxxxxxxxxxxx [mailto:netdev-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Andrew Lunn
> Sent: Thursday, September 06, 2018 11:03 AM
> To: Keller, Jacob E <jacob.e.keller@xxxxxxxxx>
> Cc: Wang, Dongsheng <dongsheng.wang@xxxxxxxxxxxxxxxx>; Kirsher,
> Jeffrey T <jeffrey.t.kirsher@xxxxxxxxx>;
> sergei.shtylyov@xxxxxxxxxxxxxxxxxx; davem@xxxxxxxxxxxxx; intel-
> wired-lan@xxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH v2 1/2] net: ethernet: i40e: fix build error
>
[..]
> You have a few options here.
>
> 1) A library module, containing shared code. Use EXPORT_SYMBOL_GPL()
> in the library module, and the kernel runtime linker will link the
> calls into the library. Also, modprobe will ensure the library module
> is loaded first, before the driver module.
>
> 2) Build time sharing of code. Place the shared code into a .o file,
> and link it to both modules.
>
> There is nothing particularly difficult here, this all done lots of
> times within the kernel. Just look around and see how others do it.
Thanks Andrew,
Yes, I agree and we do have a team working on doing this.
Carolyn
Carolyn Wyborny
Linux Development
Networking Division
Intel Corporation