]> git.proxmox.com Git - mirror_zfs.git/commit
module/zstd: pass -U__BMI__
authorGeorgy Yakovlev <168902+gyakovlev@users.noreply.github.com>
Thu, 27 Aug 2020 22:50:13 +0000 (15:50 -0700)
committerGitHub <noreply@github.com>
Thu, 27 Aug 2020 22:50:13 +0000 (15:50 -0700)
commit735ba76104fb5d701641f1785f75b4c74809155c
treeeb574373de4626235e12e24119894e99a43d83e1
parent770269ef3acb3a5e3fe49213840f00776477d678
module/zstd: pass -U__BMI__

If kernel is compiled with -march=znver1 or -march=znver2 zstd module
compilation will fail due to SSE register return with SSE disabled.
What's interesting, is that -march=skylake also implies -mbmi which
defines __BMI__ but compilation succeeds.  It is probably due to
different BMI implementations on AMD and INTEL processors and the
way compiler uses instructions.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Closes #10758
Closes #10829
module/Makefile.bsd
module/zstd/Makefile.in