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
This commit is contained in:
Coleman Kane 2022-10-18 15:29:44 -04:00 committed by Brian Behlendorf
parent 7ce097c874
commit 212ba9bd97
1 changed files with 1 additions and 1 deletions

View File

@ -23,9 +23,9 @@
*/ */
#include <sys/list.h> #include <sys/list.h>
#include <sys/mutex.h>
#include <sys/procfs_list.h> #include <sys/procfs_list.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <sys/mutex.h>
/* /*
* A procfs_list is a wrapper around a linked list which implements the seq_file * A procfs_list is a wrapper around a linked list which implements the seq_file