git: bce36dfef81e - stable/14 - bnxt: Do not compile on 32-bit platforms

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 03 Jun 2024 19:25:14 UTC
The branch stable/14 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=bce36dfef81e95f9382de4fecafbb5df54b50204

commit bce36dfef81e95f9382de4fecafbb5df54b50204
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-05-28 13:05:14 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-06-03 19:23:15 +0000

    bnxt: Do not compile on 32-bit platforms
    
    The new bnxt_re driver doesn't compile on any of them (it uses writeq()
    from the LinuxKPI, which isn't implemented there), and had already been
    disconnected from the build on i386.
    
    Reported by:    Jenkins
    Fixes:  acd884dec99a ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
    
    (cherry picked from commit c867ba72889de51b0bd2c6a7049f539abaafd46e)
---
 sys/modules/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 4b4534aee076..24e2bbabe481 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -436,8 +436,8 @@ SUBDIR+=	dtrace
 SUBDIR+=	opensolaris
 .endif
 
-# Requires bus_space_read_8
-.if ${MACHINE_ARCH} != "i386"
+.if ${MACHINE_ARCH} != "i386" && ${MACHINE_CPUARCH} != "arm" && \
+    ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe"
 _bnxt=		bnxt
 .endif