Added a workaround for Linux KASAN builds
Linux passes -Wframe-larger-than=1024, which breaks our build in a number of places with -Werror. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #13450
This commit is contained in:
parent
5a142533f8
commit
bd88c036e6
@ -28,6 +28,12 @@ ZFS_MODULE_CFLAGS += -I$(zfs_include)
|
||||
ZFS_MODULE_CPPFLAGS += -D_KERNEL
|
||||
ZFS_MODULE_CPPFLAGS += @KERNEL_DEBUG_CPPFLAGS@
|
||||
|
||||
# KASAN enables -Werror=frame-larger-than=1024, which
|
||||
# breaks oh so many parts of our build.
|
||||
ifeq ($(CONFIG_KASAN),y)
|
||||
ZFS_MODULE_CFLAGS += -Wno-error=frame-larger-than=
|
||||
endif
|
||||
|
||||
ifneq ($(KBUILD_EXTMOD),)
|
||||
@CONFIG_QAT_TRUE@ZFS_MODULE_CFLAGS += -I@QAT_SRC@/include
|
||||
@CONFIG_QAT_TRUE@KBUILD_EXTRA_SYMBOLS += @QAT_SYMBOLS@
|
||||
|
Loading…
Reference in New Issue
Block a user