Skip to content

Commit

Permalink
Linux 6.1 compat: change order of sys/mutex.h includes
Browse files Browse the repository at this point in the history
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 openzfs#14040
  • Loading branch information
ckane authored and Wenri committed Mar 13, 2023
1 parent 4466c5a commit 0b35224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/linux/spl/spl-procfs-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
*/

#include <sys/list.h>
#include <sys/mutex.h>
#include <sys/procfs_list.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
Expand Down

0 comments on commit 0b35224

Please sign in to comment.