aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxfw
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-05-30 11:26:14 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-31 12:53:12 -0400
commit9831724a08f06f9560fcc3f1132cbd290e5f9149 (patch)
tree02b409e21245036c3a5ac3d7526f934e5d409825 /drivers/net/ethernet/mellanox/mlxfw
parentnet: dsa: remove dev arg of dsa_register_switch (diff)
downloadlinux-dev-9831724a08f06f9560fcc3f1132cbd290e5f9149.tar.xz
linux-dev-9831724a08f06f9560fcc3f1132cbd290e5f9149.zip
net/mlxfw: select CONFIG_XZ_DEC
The new mlxfw code fails to build without the xz library: drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.o: In function `mlxfw_mfa2_xz_dec_run': :(.text.mlxfw_mfa2_xz_dec_run+0x8): undefined reference to `xz_dec_run' drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.o: In function `mlxfw_mfa2_file_component_get': :(.text.mlxfw_mfa2_file_component_get+0x218): undefined reference to `xz_dec_init' :(.text.mlxfw_mfa2_file_component_get+0x2c0): undefined reference to `xz_dec_end' This adds a Kconfig 'select' statement for it, which is also what the other user of that library has. Fixes: 410ed13cae39 ("Add the mlxfw module for Mellanox firmware flash process") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Yotam Gigi <yotamg@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxfw')
-rw-r--r--drivers/net/ethernet/mellanox/mlxfw/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxfw/Kconfig b/drivers/net/ethernet/mellanox/mlxfw/Kconfig
index 56b60ac7bc34..2b21af8a2b1d 100644
--- a/drivers/net/ethernet/mellanox/mlxfw/Kconfig
+++ b/drivers/net/ethernet/mellanox/mlxfw/Kconfig
@@ -4,3 +4,4 @@
config MLXFW
tristate "mlxfw" if COMPILE_TEST
+ select XZ_DEC