diff options
author | Rich Ercolani <[email protected]> | 2022-05-11 16:26:55 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-11 13:26:55 -0700 |
commit | bd88c036e61811ced1d8d3dfa89d590b9aa133a6 (patch) | |
tree | 0aff111bbe9303ab18320535d127a78fbbec2edf /module/Kbuild.in | |
parent | 5a142533f8b117f6ac3ad7490ae4ac2cef3d78e9 (diff) |
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 <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes #13450
Diffstat (limited to 'module/Kbuild.in')
-rw-r--r-- | module/Kbuild.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/module/Kbuild.in b/module/Kbuild.in index 4307c3da0..11099999f 100644 --- a/module/Kbuild.in +++ b/module/Kbuild.in @@ -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@ |