[Intel-wired-lan] [PATCH v2 1/2] net: ethernet: i40e: fix build error

Wyborny, Carolyn carolyn.wyborny at intel.com
Thu Sep 6 18:15:18 UTC 2018


> -----Original Message-----
> From: netdev-owner at vger.kernel.org [mailto:netdev-
> owner at vger.kernel.org] On Behalf Of Andrew Lunn
> Sent: Thursday, September 06, 2018 11:03 AM
> To: Keller, Jacob E <jacob.e.keller at intel.com>
> Cc: Wang, Dongsheng <dongsheng.wang at hxt-semitech.com>; Kirsher,
> Jeffrey T <jeffrey.t.kirsher at intel.com>;
> sergei.shtylyov at cogentembedded.com; davem at davemloft.net; intel-
> wired-lan at lists.osuosl.org; netdev at vger.kernel.org; linux-
> kernel at vger.kernel.org
> 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 




More information about the Intel-wired-lan mailing list