HomeFreeBSD

Linux 5.16 compat: asm/fpu/xcr.h is new location for xgetbv/xsetbv

Description

Linux 5.16 compat: asm/fpu/xcr.h is new location for xgetbv/xsetbv

Linux 5.16 moved these functions into this new header in commit
1b4fb8545f2b00f2844c4b7619d64d98440a477c. This change adds code to look
for the presence of this header, and include it so that the code using
xgetbv & xsetbv will compile again.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #12800

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Nov 16 2021, 4:23 AM
Tony Hutter <hutter2@llnl.gov>Committed on Dec 7 2021, 9:14 PM
Parents
rGac9b1aa1bfc6: tests/file_check: remove unused variable
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG806c3777e713: Linux 5.16 compat: asm/fpu/xcr.h is new location for xgetbv/xsetbv (authored by Coleman Kane <ckane@colemankane.org>).Dec 7 2021, 9:14 PM