git: eaf1cda90610 - stable/14 - qlnxe: Fix build with INET
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Jul 2025 14:09:31 UTC
The branch stable/14 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=eaf1cda90610bfeb9d4e5486ab145b6b62669f83
commit eaf1cda90610bfeb9d4e5486ab145b6b62669f83
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-07-17 04:01:16 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-07-20 14:07:19 +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
(cherry picked from commit 10d9ec31bf28949221280c9ddc0816464407a43f)
---
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 fefddcbc3cea..f8d717c9b19c 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}