RDMA/hfi1: Depend on !UML
authorEhab Ababneh <ehab.ababneh@cornelisnetworks.com>
Mon, 11 Jul 2022 14:54:38 +0000 (10:54 -0400)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 18 Jul 2022 10:40:38 +0000 (13:40 +0300)
Both hfi1 and UML depend on x86_64, this can trigger build errors.
This driver must depends on !UML because it accesses x86_64
features that are not supported by UML.

Link: https://lore.kernel.org/r/165755127879.2996325.5668395672492732376.stgit@awfm-02.cornelisnetworks.com
Signed-off-by: Ehab Ababneh <ehab.ababneh@cornelisnetworks.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hfi1/Kconfig

index 6eb7390..14b92e1 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config INFINIBAND_HFI1
        tristate "Cornelis OPX Gen1 support"
-       depends on X86_64 && INFINIBAND_RDMAVT && I2C
+       depends on X86_64 && INFINIBAND_RDMAVT && I2C && !UML
        select MMU_NOTIFIER
        select CRC32
        select I2C_ALGOBIT