[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220218075727.2737623-4-davidgow@google.com>
Date: Fri, 18 Feb 2022 15:57:26 +0800
From: David Gow <davidgow@...gle.com>
To: Jeff Dike <jdike@...toit.com>, Richard Weinberger <richard@....at>,
Anton Ivanov <anton.ivanov@...bridgegreys.com>,
Shuah Khan <skhan@...uxfoundation.org>,
Brendan Higgins <brendanhiggins@...gle.com>,
Randy Dunlap <rdunlap@...radead.org>
Cc: David Gow <davidgow@...gle.com>, linux-um@...ts.infradead.org,
amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
kunit-dev@...glegroups.com, linux-kselftest@...r.kernel.org,
linux-rdma@...r.kernel.org, x86@...nel.org, felix.kuehling@....com,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/4] IB/qib: Compile under User-Mode Linux
The User-Mode-Linux architecture (with the x86_64 subarch) defines
CONFIG_X86_64, but doesn't expose the cpuinfo_x86 struct (instead
there's a cpuinfo_um struct).
In order to allow UML to build with allyesconfig, only check cpuinfo_x86
on non-UML architectures.
Signed-off-by: David Gow <davidgow@...gle.com>
---
drivers/infiniband/hw/qib/qib_wc_x86_64.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/infiniband/hw/qib/qib_wc_x86_64.c b/drivers/infiniband/hw/qib/qib_wc_x86_64.c
index edd0ddbd4481..76fef1321c26 100644
--- a/drivers/infiniband/hw/qib/qib_wc_x86_64.c
+++ b/drivers/infiniband/hw/qib/qib_wc_x86_64.c
@@ -146,5 +146,9 @@ void qib_disable_wc(struct qib_devdata *dd)
*/
int qib_unordered_wc(void)
{
+#ifndef CONFIG_UML
return boot_cpu_data.x86_vendor != X86_VENDOR_AMD;
+#else
+ return 0;
+#endif
}
--
2.35.1.265.g69c8d7142f-goog
Powered by blists - more mailing lists