git: 8ea35c45d520 - main - Include ccompile.h after opt_global.h.
Alexander Motin
mav at FreeBSD.org
Mon Mar 15 17:52:26 UTC 2021
The branch main has been updated by mav:
URL: https://cgit.FreeBSD.org/src/commit/?id=8ea35c45d5206ad57945ba160484f04450c88b75
commit 8ea35c45d5206ad57945ba160484f04450c88b75
Author: Alexander Motin <mav at FreeBSD.org>
AuthorDate: 2021-03-15 17:48:50 +0000
Commit: Alexander Motin <mav at FreeBSD.org>
CommitDate: 2021-03-15 17:52:23 +0000
Include ccompile.h after opt_global.h.
This restores INVARIANTS enabling ZFS_DEBUG when built as module.
Discussed with: freqlabs
MFC after: 1 week
---
sys/modules/zfs/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile
index 0fab9f552314..983f0aa0e994 100644
--- a/sys/modules/zfs/Makefile
+++ b/sys/modules/zfs/Makefile
@@ -22,8 +22,6 @@ CFLAGS+= -I${INCDIR}/os/freebsd
CFLAGS+= -I${INCDIR}/os/freebsd/spl
CFLAGS+= -I${INCDIR}/os/freebsd/zfs
CFLAGS+= -I${SRCDIR}/zstd/include
-CFLAGS+= -include ${INCDIR}/os/freebsd/spl/sys/ccompile.h
-CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/static_ccompile.h
CFLAGS+= -I${.CURDIR}
CFLAGS+= -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS \
@@ -284,6 +282,8 @@ SRCS+= zfs_zstd.c \
.include <bsd.kmod.mk>
CFLAGS+= -include ${SRCTOP}/sys/cddl/compat/opensolaris/sys/debug_compat.h
+CFLAGS+= -include ${INCDIR}/os/freebsd/spl/sys/ccompile.h
+CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/static_ccompile.h
CWARNFLAGS+= ${OPENZFS_CWARNFLAGS}
More information about the dev-commits-src-main
mailing list