summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-06-14 06:49:05 +0000
committerNeil Brown <neilb@suse.de>2005-06-14 06:49:05 +0000
commitc7654afc29a0f4a7920f134ccc968548b8d0a598 (patch)
treeaef70667b3f5fec7db9527970dd168c1140c3a6f /super1.c
parentfe6729fa8cde33bce8d693e3f082fae688b1ff09 (diff)
downloadmdadm-c7654afc29a0f4a7920f134ccc968548b8d0a598.tar.gz
mdadm-c7654afc29a0f4a7920f134ccc968548b8d0a598.tar.xz
mdadm-c7654afc29a0f4a7920f134ccc968548b8d0a598.zip
Fix compiling of mdassemble
(again). Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index 114ef83..31cf9a3 100644
--- a/super1.c
+++ b/super1.c
@@ -115,7 +115,7 @@ static unsigned int calc_sb_1_csum(struct mdp_superblock_1 * sb)
return csum;
}
-
+#ifndef MDASSEMBLE
static void examine_super1(void *sbv)
{
struct mdp_superblock_1 *sb = sbv;
@@ -250,6 +250,8 @@ static void brief_detail_super1(void *sbv)
}
}
+#endif
+
static void uuid_from_super1(int uuid[4], void * sbv)
{
struct mdp_superblock_1 *super = sbv;
@@ -783,10 +785,12 @@ static __u64 avail_size1(__u64 devsize)
}
struct superswitch super1 = {
+#ifndef MDASSEMBLE
.examine_super = examine_super1,
.brief_examine_super = brief_examine_super1,
.detail_super = detail_super1,
.brief_detail_super = brief_detail_super1,
+#endif
.uuid_from_super = uuid_from_super1,
.getinfo_super = getinfo_super1,
.update_super = update_super1,