]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - util.c
mdassemble - fix new compile-time problems.
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index a5eb8ed5c356814b3b765a04a95161011ffa6c26..7e2bbad14ed89a3035d0969eab6ad64d204b8612 100644 (file)
--- a/util.c
+++ b/util.c
@@ -777,7 +777,6 @@ int get_data_disks(int level, int layout, int raid_disks)
        return data_disks;
 }
 
-#if !defined(MDASSEMBLE) || defined(MDASSEMBLE) && defined(MDASSEMBLE_AUTO)
 
 int devnm2devid(char *devnm)
 {
@@ -815,6 +814,7 @@ int devnm2devid(char *devnm)
        return 0;
 }
 
+#if !defined(MDASSEMBLE) || defined(MDASSEMBLE) && defined(MDASSEMBLE_AUTO)
 char *get_md_name(char *devnm)
 {
        /* find /dev/md%d or /dev/md/%d or make a device /dev/.tmp.md%d */