bnxt_en: fix module Makefile for LinuxKPI

Rather than manually including the include directory for LinuxKPI
use the provided macro.  Before there was no -I for the dummy
directory and as files synced from Linux under a permissive license
may include them the build would fail.  overflow.h will include
linux/const.h which only exists as a dummy header at this point
on FreeBSD.

Sponsored by:	The FreeBSD Foundation
Fixes:		35b53f8c98
MFC after:	3 days
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D56424
This commit is contained in:
Bjoern A. Zeeb
2026-04-16 10:05:51 +00:00
parent 99bbfb77e3
commit f5cd992fa9
+1 -1
View File
@@ -14,6 +14,6 @@ SRCS += ${LINUXKPI_GENSRCS}
CFLAGS+= -DIFLIB
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
CFLAGS+= ${LINUXKPI_INCLUDES}
.include <bsd.kmod.mk>