diff options
author | NeilBrown <neilb@suse.de> | 2011-12-13 13:24:52 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-12-13 13:24:52 +1100 |
commit | a6482415178f1a834e15d7017a70547d0e965ff0 (patch) | |
tree | 2f29a761afa4df15e02b468af4e240688c720c93 /super-intel.c | |
parent | b4ab44d8cd5263bc2d082b5e8abbdc91f6a6ed79 (diff) |
Resolve some more warnings
unused variables when MDASSEMBLE is defined, and a typo in mdadm.8
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/super-intel.c b/super-intel.c index 6b31ce3f..e8e21f42 100644 --- a/super-intel.c +++ b/super-intel.c @@ -5900,7 +5900,10 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra struct imsm_map *map; struct imsm_map *map2; struct mdinfo *this; - int slot, chunk; + int slot; +#ifndef MDASSEMBLE + int chunk; +#endif char *ep; if (subarray && @@ -5925,7 +5928,6 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra * OROM/EFI */ - chunk = __le16_to_cpu(map->blocks_per_strip) >> 1; this = malloc(sizeof(*this)); if (!this) { fprintf(stderr, Name ": failed to allocate %zu bytes\n", @@ -5937,6 +5939,7 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra getinfo_super_imsm_volume(st, this, NULL); this->next = rest; #ifndef MDASSEMBLE + chunk = __le16_to_cpu(map->blocks_per_strip) >> 1; /* mdadm does not support all metadata features- set the bit in all arrays state */ if (!validate_geometry_imsm_orom(super, get_imsm_raid_level(map), /* RAID level */ |