Messages in this thread Patch in this message | | | Date | Fri, 18 Feb 2022 15:57:26 +0800 | Subject | [PATCH 3/4] IB/qib: Compile under User-Mode Linux | From | David Gow <> |
| |
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@google.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
| |