Fix warnings about sha2_is_supported on FreeBSD/i386

This is one problem currently preventing OpenZFS from building on
FreeBSD/i386.

Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by:	Alan Somers <asomers@gmail.com>
Sponsored by:	ConnectWise
Closes #17704
This commit is contained in:
Alan Somers 2025-09-09 10:56:38 -06:00 committed by Brian Behlendorf
parent b23eae62be
commit cfd640c3e8
2 changed files with 6 additions and 0 deletions

View File

@ -38,11 +38,14 @@
kfpu_begin(); E(s, d, b); kfpu_end(); \
}
#if defined(__x86_64) || defined(__aarch64__) || defined(__arm__) || \
defined(__PPC64__)
/* some implementation is always okay */
static inline boolean_t sha2_is_supported(void)
{
return (B_TRUE);
}
#endif
#if defined(__x86_64)

View File

@ -38,11 +38,14 @@
kfpu_begin(); E(s, d, b); kfpu_end(); \
}
#if defined(__x86_64) || defined(__aarch64__) || defined(__arm__) || \
defined(__aarch64__) || defined(__arm__) || defined(__PPC64__)
/* some implementation is always okay */
static inline boolean_t sha2_is_supported(void)
{
return (B_TRUE);
}
#endif
#if defined(__x86_64)