]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1b5f43ad009d2cad2b90b701f736742cb164a2a
tree51a4d6c984a060062807d3994b6579bb16a6cf11
parenta960e520eaf34693c9d3ac2151bb49a472de8df0
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: 20def5a4562e ("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