From ecb6a50819448cd2d6570298a5ba46b45eded216 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 +- module/os/linux/spl/spl-zone.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/os/linux/spl/spl-procfs-list.c b/module/os/linux/spl/spl-procfs-list.c index a4a24dcae..5e073950d 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 diff --git a/module/os/linux/spl/spl-zone.c b/module/os/linux/spl/spl-zone.c index 9421f81bf..b489179f1 100644 --- a/module/os/linux/spl/spl-zone.c +++ b/module/os/linux/spl/spl-zone.c @@ -25,7 +25,6 @@ */ #include -#include #include #include #include @@ -37,6 +36,8 @@ #include #endif +#include + static kmutex_t zone_datasets_lock; static struct list_head zone_datasets;