]> 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)
commit1f9cf5392fc021251351b9089a6a4ebf3f459020
tree51a4d6c984a060062807d3994b6579bb16a6cf11
parentd08aff25200a32bcbba4383b580387bf8de7c323
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: cc520edcf6b5 ("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