zfs/module/icp/algs
szubersk 893549d625 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.

Porting notes:
- Moved the stanzas removing -mgeneral-regs-only to Makefile.in
  since they wouldn't readily work in Kbuild.in and that did.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #13260
Closes #14150

Closes #14624
Ported-by: Rich Ercolani <rincebrain@gmail.com
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
2023-06-05 16:10:16 -07:00
..
aes Prefix zfs internal endian checks with _ZFS 2020-07-28 13:02:49 -07:00
edonr Fix Clang 15 compilation errors 2023-06-05 16:10:16 -07:00
modes Fix functions without a prototype 2022-05-20 10:33:24 -07:00
sha2 Prefix zfs internal endian checks with _ZFS 2020-07-28 13:02:49 -07:00
skein Fix Clang 15 compilation errors 2023-06-05 16:10:16 -07:00