diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-08-26 08:35:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-28 15:41:15 -0700 |
commit | 10bfec0a2b4b9d3b81e09b43266ebe370bb17760 (patch) | |
tree | 51a4d6c984a060062807d3994b6579bb16a6cf11 /drivers/net/ethernet/mellanox/mlxsw/Makefile | |
parent | ae0078fcf0a5eb3a8623bfb5f988262e0911fdb9 (diff) | |
download | linux-stable-10bfec0a2b4b9d3b81e09b43266ebe370bb17760.tar.gz linux-stable-10bfec0a2b4b9d3b81e09b43266ebe370bb17760.tar.bz2 linux-stable-10bfec0a2b4b9d3b81e09b43266ebe370bb17760.zip |
mlxsw: spectrum: compile-in dpipe support only if devlink is enabled
Makes no sense to have dpipe compiled in when devlink is not enabled,
because the devlink dpipe registation is noop function. So don't compile
it in. This also fixes missing extern structs errors.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: a86f030915f2 ("mlxsw: spectrum_dpipe: Add support for IPv4 host table dump")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/Makefile')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/Makefile b/drivers/net/ethernet/mellanox/mlxsw/Makefile index 62fc42f396bb..f9956f3bc45c 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/Makefile +++ b/drivers/net/ethernet/mellanox/mlxsw/Makefile @@ -16,8 +16,9 @@ mlxsw_spectrum-objs := spectrum.o spectrum_buffers.o \ spectrum_switchdev.o spectrum_router.o \ spectrum_kvdl.o spectrum_acl_tcam.o \ spectrum_acl.o spectrum_flower.o \ - spectrum_cnt.o spectrum_dpipe.o \ + spectrum_cnt.o \ spectrum_fid.o mlxsw_spectrum-$(CONFIG_MLXSW_SPECTRUM_DCB) += spectrum_dcb.o +mlxsw_spectrum-$(CONFIG_NET_DEVLINK) += spectrum_dpipe.o obj-$(CONFIG_MLXSW_MINIMAL) += mlxsw_minimal.o mlxsw_minimal-objs := minimal.o |