When mdadm is compiled using e.g. 'everything' option, mdassemble compilation is broken. Change code to enable mdassemble compilation. Signed-off-by: Lukasz Dorau <lukasz.dorau@xxxxxxxxx> --- super-intel.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/super-intel.c b/super-intel.c index ed7792d..3bfeda6 100644 --- a/super-intel.c +++ b/super-intel.c @@ -910,6 +910,7 @@ static unsigned long long blocks_per_member(struct imsm_map *map) return join_u32(map->blocks_per_member_lo, map->blocks_per_member_hi); } +#ifndef MDASSEMBLE static unsigned long long num_data_stripes(struct imsm_map *map) { if (map == NULL) @@ -921,6 +922,7 @@ static void set_total_blocks(struct imsm_disk *disk, unsigned long long n) { split_ull(n, &disk->total_blocks_lo, &disk->total_blocks_hi); } +#endif static void set_pba_of_lba0(struct imsm_map *map, unsigned long long n) { -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html