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/icp/algs/edonr/edonr.c | |
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/icp/algs/edonr/edonr.c')
-rw-r--r-- | module/icp/algs/edonr/edonr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/icp/algs/edonr/edonr.c b/module/icp/algs/edonr/edonr.c index 345133d74..b1f710cc0 100644 --- a/module/icp/algs/edonr/edonr.c +++ b/module/icp/algs/edonr/edonr.c @@ -346,9 +346,11 @@ Q256(size_t bitlen, const uint32_t *data, uint32_t *restrict p) * which only goes over it by a hair (1248 bytes on ARM32). */ #include <sys/isa_defs.h> /* for _ILP32 */ -#ifdef _ILP32 /* We're 32-bit, assume small stack frames */ +#if defined(_ILP32) /* We're 32-bit, assume small stack frames */ +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic ignored "-Wframe-larger-than=" #endif +#endif #if defined(__IBMC__) && defined(_AIX) && defined(__64BIT__) static inline size_t |