HomeFreeBSD

Linux 6.1 compat: change order of sys/mutex.h includes

Description

Linux 6.1 compat: change order of sys/mutex.h includes

After Linux 6.1-rc1 came out, the build started failing to build a
couple of the files in the linux spl code due to the mutex_init
redefinition. Moving the sys/mutex.h include to a lower position within
these two files appears to fix the problem.

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

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Oct 18 2022, 7:29 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 1 2022, 7:44 PM
Parents
rG7ce097c8747a: Linux 6.0 compat: META
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG212ba9bd9722: Linux 6.1 compat: change order of sys/mutex.h includes (authored by Coleman Kane <ckane@colemankane.org>).Nov 1 2022, 7:44 PM