Skip to content

Commit 212ba9b

Browse files
ckanebehlendorf
authored andcommitted
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 <[email protected]> Signed-off-by: Coleman Kane <[email protected]> Closes #14040
1 parent 7ce097c commit 212ba9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/os/linux/spl/spl-procfs-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
*/
2424

2525
#include <sys/list.h>
26-
#include <sys/mutex.h>
2726
#include <sys/procfs_list.h>
2827
#include <linux/proc_fs.h>
28+
#include <sys/mutex.h>
2929

3030
/*
3131
* A procfs_list is a wrapper around a linked list which implements the seq_file

0 commit comments

Comments
 (0)