mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-25 10:12:13 +03:00
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:
parent
b23eae62be
commit
cfd640c3e8
@ -38,11 +38,14 @@
|
|||||||
kfpu_begin(); E(s, d, b); kfpu_end(); \
|
kfpu_begin(); E(s, d, b); kfpu_end(); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__x86_64) || defined(__aarch64__) || defined(__arm__) || \
|
||||||
|
defined(__PPC64__)
|
||||||
/* some implementation is always okay */
|
/* some implementation is always okay */
|
||||||
static inline boolean_t sha2_is_supported(void)
|
static inline boolean_t sha2_is_supported(void)
|
||||||
{
|
{
|
||||||
return (B_TRUE);
|
return (B_TRUE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__x86_64)
|
#if defined(__x86_64)
|
||||||
|
|
||||||
|
|||||||
@ -38,11 +38,14 @@
|
|||||||
kfpu_begin(); E(s, d, b); kfpu_end(); \
|
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 */
|
/* some implementation is always okay */
|
||||||
static inline boolean_t sha2_is_supported(void)
|
static inline boolean_t sha2_is_supported(void)
|
||||||
{
|
{
|
||||||
return (B_TRUE);
|
return (B_TRUE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__x86_64)
|
#if defined(__x86_64)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user