Skip to content

Commit aff9077

Browse files
elic307imstsirkin
authored andcommitted
vdpa/mlx5: Fix dependency on MLX5_CORE
Remove propmt for selecting MLX5_VDPA by the user and modify MLX5_VDPA_NET to select MLX5_VDPA. Also modify MLX5_VDPA_NET to depend on mlx5_core. This fixes an issue where configuration sets 'y' for MLX5_VDPA_NET while MLX5_CORE is compiled as a module causing link errors. Reported-by: kernel test robot <[email protected]> Fixes: 1a86b37 ("vdpa/mlx5: Add VDPA driver for supported mlx5 device")s Signed-off-by: Eli Cohen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 3176e97 commit aff9077

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/vdpa/Kconfig

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,16 @@ config IFCVF
3030
be called ifcvf.
3131

3232
config MLX5_VDPA
33-
bool "MLX5 VDPA support library for ConnectX devices"
34-
depends on MLX5_CORE
35-
default n
33+
bool
3634
help
3735
Support library for Mellanox VDPA drivers. Provides code that is
3836
common for all types of VDPA drivers. The following drivers are planned:
3937
net, block.
4038

4139
config MLX5_VDPA_NET
4240
tristate "vDPA driver for ConnectX devices"
43-
depends on MLX5_VDPA
41+
select MLX5_VDPA
42+
depends on MLX5_CORE
4443
default n
4544
help
4645
VDPA network driver for ConnectX6 and newer. Provides offloading

0 commit comments

Comments
 (0)