]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlxfw: select CONFIG_XZ_DEC
authorArnd Bergmann <arnd@arndb.de>
Tue, 30 May 2017 09:26:14 +0000 (11:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 16:53:12 +0000 (12:53 -0400)
commit47a1e78208aa98c89abd131c9152acc4ef756f79
tree02b409e21245036c3a5ac3d7526f934e5d409825
parent41d104990bca0643b938655b783ebbdd420b0621
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: a8a8987bd938 ("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>
drivers/net/ethernet/mellanox/mlxfw/Kconfig