git: 10d9ec31bf28 - main - qlnxe: Fix build with INET
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Jul 2025 04:02:03 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=10d9ec31bf28949221280c9ddc0816464407a43f
commit 10d9ec31bf28949221280c9ddc0816464407a43f
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-07-17 04:01:16 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-07-17 04:01:16 +0000
qlnxe: Fix build with INET
opt_inet.h is missing from 5684c8783b64, thus actually `#ifdef INET`
does not work.
PR: 287445
See also: https://redmine.pfsense.org/issues/16248
Reviewed by: kbowling
Tested by: leper <leper4@protonmail.com>
Fixes: 5684c8783b64 qlnxe: Add missing #ifdef INET to fix amd64 LINT-NOINET/NOIP builds
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D51295
---
sys/dev/qlnx/qlnxe/qlnx_os.c | 2 ++
sys/modules/qlnx/qlnxe/Makefile | 1 +
2 files changed, 3 insertions(+)
diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c
index 05ec69a70dfe..160534476688 100644
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -30,6 +30,8 @@
* Author : David C Somayajulu, Cavium, Inc., San Jose, CA 95131.
*/
+#include "opt_inet.h"
+
#include <sys/cdefs.h>
#include "qlnx_os.h"
#include "bcm_osal.h"
diff --git a/sys/modules/qlnx/qlnxe/Makefile b/sys/modules/qlnx/qlnxe/Makefile
index 3d8415cf0e57..2a44ae6ddde5 100644
--- a/sys/modules/qlnx/qlnxe/Makefile
+++ b/sys/modules/qlnx/qlnxe/Makefile
@@ -58,6 +58,7 @@ SRCS+=qlnx_rdma.c
SRCS+=qlnx_ioctl.c
SRCS+=qlnx_os.c
+SRCS+=opt_inet.h
SRCS+= ${LINUXKPI_GENSRCS}