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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by:	Alan Somers <[email protected]>
Sponsored by:	ConnectWise
Closes #17704
This commit is contained in:
Alan Somers authored and GitHub committed 2025-09-09 09:56:38 -07:00
1 parent a2424312c4
commit e29bfa5bd0
2 files changed
+6

No files matched your search

+3
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)
+3
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)