From 212ba9bd97222613fe17bd8f0cc3e957e7f5d29b Mon Sep 17 00:00:00 2001 From: Coleman Kane Date: Tue, 18 Oct 2022 15:29:44 -0400 Subject: [PATCH] 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 Signed-off-by: Coleman Kane Closes #14040 --- module/os/linux/spl/spl-procfs-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/os/linux/spl/spl-procfs-list.c b/module/os/linux/spl/spl-procfs-list.c index 2cba1a3022..71b7f75a2a 100644 --- a/module/os/linux/spl/spl-procfs-list.c +++ b/module/os/linux/spl/spl-procfs-list.c @@ -23,9 +23,9 @@ */ #include -#include #include #include +#include /* * A procfs_list is a wrapper around a linked list which implements the seq_file