]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Make Incremental_container static
authorNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:24:50 +0000 (20:24 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:24:50 +0000 (20:24 +1100)
as it is only used in Incremental.c

Signed-off-by: NeilBrown <neilb@suse.de>
Incremental.c
mdadm.h

index 0978a81f8ddb390f2003e51b4a3baa1ede9625bf..724ed5f26f93df85e76c27ed7fa2c55ebc203466 100644 (file)
@@ -40,6 +40,10 @@ static void find_reject(int mdfd, struct supertype *st, struct mdinfo *sra,
 static int try_spare(char *devname, int *dfdp, struct dev_policy *pol,
                     struct supertype *st, int verbose);
 
+static int Incremental_container(struct supertype *st, char *devname,
+                                int verbose, int runstop, int autof,
+                                int trustworthy);
+
 int Incremental(char *devname, int verbose, int runstop,
                struct supertype *st, char *homehost, int require_homehost,
                int autof)
@@ -1183,8 +1187,8 @@ static char *container2devname(char *devname)
        return mdname;
 }
 
-int Incremental_container(struct supertype *st, char *devname, int verbose,
-                         int runstop, int autof, int trustworthy)
+static int Incremental_container(struct supertype *st, char *devname, int verbose,
+                                int runstop, int autof, int trustworthy)
 {
        /* Collect the contents of this container and for each
         * array, choose a device name and assemble the array.
diff --git a/mdadm.h b/mdadm.h
index 0dca8d2688111a934f5154d9bcb12f1695f6f94c..7b651e27c535c4bb47951f5165e0bd14f4ff0a5c 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -929,9 +929,6 @@ extern int WaitClean(char *dev, int sock, int verbose);
 extern int Incremental(char *devname, int verbose, int runstop,
                       struct supertype *st, char *homehost, int require_homehost,
                       int autof);
-extern int Incremental_container(struct supertype *st, char *devname,
-                                int verbose, int runstop, int autof,
-                                int trustworthy);
 extern void RebuildMap(void);
 extern int IncrementalScan(int verbose);
 extern int IncrementalRemove(char *devname, int verbose);