diff options
author | szubersk <[email protected]> | 2022-11-30 20:27:28 +1000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-11-30 13:46:26 -0800 |
commit | fe975048da29c4756bafd9f63a192db17e3acb7c (patch) | |
tree | 30c89360b88aeb882e0c5ee14dd5916f9c623747 /module/Kbuild.in | |
parent | 3c1e1933b681cb68e0494c09d902e0187673ecc3 (diff) |
Fix Clang 15 compilation errors
- Clang 15 doesn't support `-fno-ipa-sra` anymore. Do a separate
check for `-fno-ipa-sra` support by $KERNEL_CC.
- Don't enable `-mgeneral-regs-only` for certain module files.
Fix #13260
- Scope `GCC diagnostic ignored` statements to GCC only. Clang
doesn't need them to compile the code.
Reviewed-by: Richard Yao <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #13260
Closes #14150
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 581d50e64..a39f9d9d0 100644 --- a/module/Kbuild.in +++ b/module/Kbuild.in @@ -42,6 +42,12 @@ endif asflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS) ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS) +ifeq ($(CONFIG_ARM64),y) +CFLAGS_REMOVE_zcommon/zfs_fletcher_aarch64_neon.o += -mgeneral-regs-only +CFLAGS_REMOVE_zfs/vdev_raidz_math_aarch64_neon.o += -mgeneral-regs-only +CFLAGS_REMOVE_zfs/vdev_raidz_math_aarch64_neonx2.o += -mgeneral-regs-only +endif + # Suppress unused-value warnings in sparc64 architecture headers ccflags-$(CONFIG_SPARC64) += -Wno-unused-value |