diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-06-07 02:18:49 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-06-07 12:22:44 +0100 |
commit | f71be9d084c92e0ef36e248303f32f8e4cf623da (patch) | |
tree | 75aec24fde19d72bd15e7083d2839f1c4a935014 /drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | |
parent | 0824a987a58070470351906590a89fa5e0f88ba1 (diff) | |
download | linux-stable-f71be9d084c92e0ef36e248303f32f8e4cf623da.tar.gz linux-stable-f71be9d084c92e0ef36e248303f32f8e4cf623da.tar.bz2 linux-stable-f71be9d084c92e0ef36e248303f32f8e4cf623da.zip |
net: liquidio: fix mixed module-builtin object
With CONFIG_LIQUIDIO=m and CONFIG_LIQUIDIO_VF=y (or vice versa),
$(common-objs) are linked to a module and also to vmlinux even though
the expected CFLAGS are different between builtins and modules.
This is the same situation as fixed by commit 637a642f5ca5 ("zstd:
Fixing mixed module-builtin objects").
Introduce the new module, liquidio-core, to provide the common functions
to liquidio and liquidio-vf.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/lio_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_ethtool.c b/drivers/net/ethernet/cavium/liquidio/lio_ethtool.c index 2c10ae3f7fc1..9d56181a301f 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_ethtool.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_ethtool.c @@ -3180,3 +3180,4 @@ void liquidio_set_ethtool_ops(struct net_device *netdev) else netdev->ethtool_ops = &lio_ethtool_ops; } +EXPORT_SYMBOL_GPL(liquidio_set_ethtool_ops); |