mlxsw: spectrum: compile-in dpipe support only if devlink is enabled
authorJiri Pirko <jiri@mellanox.com>
Sat, 26 Aug 2017 06:35:38 +0000 (08:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 22:41:15 +0000 (15:41 -0700)
commit10bfec0a2b4b9d3b81e09b43266ebe370bb17760
tree51a4d6c984a060062807d3994b6579bb16a6cf11
parentae0078fcf0a5eb3a8623bfb5f988262e0911fdb9
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>
drivers/net/ethernet/mellanox/mlxsw/Makefile
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.h