From d0acf215de8329e09e63044233f4e1bea162e7b9 Mon Sep 17 00:00:00 2001 From: Yu Kuai Date: Fri, 7 Apr 2023 16:59:57 +0800 Subject: [PATCH] md: fix kabi broken in struct mddev hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6T6VY CVE: NA -------------------------------- Struct mddev is just used inside raid, just in case that md_mod is compiled from new kernel, and raid1/raid10 or other out-of-tree raid are compiled from old kernel. Signed-off-by: Yu Kuai Reviewed-by: Hou Tao Signed-off-by: Yongqiang Liu --- drivers/md/md.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/md.h b/drivers/md/md.h index fe275ec34647..ea67637f7082 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -510,10 +510,12 @@ struct mddev { bool has_superblocks:1; +#ifndef __GENKSYMS__ /* Used to synchronize idle and frozen for action_store() */ struct mutex sync_mutex; /* The sequence number for sync thread */ atomic_t sync_seq; +#endif }; enum recovery_flags { -- GitLab