git: acdfbc6cbe0a - main - irdma: fix LINT-NOIP/NOINET/NOINET6 builds

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Mon, 30 May 2022 20:48:17 UTC
The branch main has been updated by mhorne:

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

commit acdfbc6cbe0a8a976d446216be84994c8ee8d5c1
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2022-05-30 20:47:32 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2022-05-30 20:47:55 +0000

    irdma: fix LINT-NOIP/NOINET/NOINET6 builds
    
    This module depends on the presence of both INET and INET6 options in
    order to compile.
    
    Reviewed by:    erj
    Fixes:  cdcd52d41e24 ("irdma: Add RDMA driver for Intel(R) Ethernet...")
    Differential Revision:  https://reviews.freebsd.org/D35343
---
 sys/conf/files       | 30 +++++++++++++++---------------
 sys/modules/Makefile |  2 ++
 2 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/sys/conf/files b/sys/conf/files
index 0dfb4fd9923f..816b6e521b89 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -4715,35 +4715,35 @@ ofed/drivers/infiniband/ulp/sdp/sdp_cma.c	optional sdp inet 	\
 ofed/drivers/infiniband/ulp/sdp/sdp_tx.c	optional sdp inet 	\
 	compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/sdp/ ${NO_WUNUSED_BUT_SET_VARIABLE}"
 
-dev/irdma/icrdma.c		optional irdma ice pci ofed \
+dev/irdma/icrdma.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_cm.c		optional irdma ice pci ofed \
+dev/irdma/irdma_cm.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_ctrl.c		optional irdma ice pci ofed \
+dev/irdma/irdma_ctrl.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_hmc.c		optional irdma ice pci ofed \
+dev/irdma/irdma_hmc.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_hw.c		optional irdma ice pci ofed \
+dev/irdma/irdma_hw.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/icrdma_hw.c		optional irdma ice pci ofed \
+dev/irdma/icrdma_hw.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/fbsd_kcompat.c	optional irdma ice pci ofed \
+dev/irdma/fbsd_kcompat.c	optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_kcompat.c	optional irdma ice pci ofed \
+dev/irdma/irdma_kcompat.c	optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_pble.c		optional irdma ice pci ofed \
+dev/irdma/irdma_pble.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_puda.c		optional irdma ice pci ofed \
+dev/irdma/irdma_puda.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_uda.c		optional irdma ice pci ofed \
+dev/irdma/irdma_uda.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_uk.c		optional irdma ice pci ofed \
+dev/irdma/irdma_uk.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_utils.c		optional irdma ice pci ofed \
+dev/irdma/irdma_utils.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_verbs.c		optional irdma ice pci ofed \
+dev/irdma/irdma_verbs.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
-dev/irdma/irdma_ws.c		optional irdma ice pci ofed \
+dev/irdma/irdma_ws.c		optional irdma ice inet inet6 pci ofed \
 	compile-with "${OFED_C} -I$S/dev/ice/"
 
 dev/mthca/mthca_allocator.c		optional mthca pci ofed \
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index fa50c793f29b..29a77e07399e 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -577,9 +577,11 @@ _ice=		ice
 _ice_ddp=	ice_ddp
 .endif
 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
+.if ${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no"
 _irdma=		irdma
 .endif
 .endif
+.endif
 
 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
 	${MACHINE_CPUARCH} == "riscv"