[RFC PATCH v2 2/3] net/mlx5: Kconfig: Use "uses" instead of "imply"
From: Saeed Mahameed
Date: Fri Apr 17 2020 - 16:07:33 EST
mlx5 uses the imply keyword to force weak dependencies on the implied
modules, to make sure they are always reachable by mlx5.
"imply" doesn't work this way any more, and it was wrong to use it in
first place.
The right solution is to use: "depends on symbol || !symbol", which is
exactly what the uses keyword is there for.
Use the new "uses" keyword to replace all mlx5 implied dependencies.
Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxxxx>
Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Cc: linux-kbuild@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
---
drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
index 312e0a1ad43d..4e07179217e8 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
+++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
@@ -7,10 +7,10 @@ config MLX5_CORE
tristate "Mellanox 5th generation network adapters (ConnectX series) core driver"
depends on PCI
select NET_DEVLINK
- imply PTP_1588_CLOCK
- imply VXLAN
- imply MLXFW
- imply PCI_HYPERV_INTERFACE
+ uses PTP_1588_CLOCK
+ uses VXLAN
+ uses MLXFW
+ uses PCI_HYPERV_INTERFACE
default n
---help---
Core driver for low level functionality of the ConnectX-4 and
--
2.25.2