int swapuuid; /* true if uuid is bigending rather than hostendian */
int external;
-} super0, super1, super_ddf, super_ddf_bvd, super_ddf_svd, *superlist[];
+} super0, super1, super_ddf, *superlist[];
-extern struct superswitch super_imsm, super_imsm_volume;
+extern struct superswitch super_imsm;
struct supertype {
struct superswitch *ss;
struct mdstat_ent *mdstat_read(int hold, int start);
-extern struct superswitch super_ddf, super_ddf_bvd, super_ddf_svd;
-
extern int exit_now, manager_ready;
#define offsetof(t,f) ((size_t)&(((t*)0)->f))
#endif
-extern struct superswitch super_ddf_container, super_ddf_bvd, super_ddf;
+static struct superswitch super_ddf_container, super_ddf_bvd, super_ddf_svd;
static int calc_crc(void *buf, int len)
{
/* Super_ddf_container is set by validate_geometry_ddf when given a
* device that is not part of any array
*/
-struct superswitch super_ddf_container = {
+static struct superswitch super_ddf_container = {
#ifndef MDASSEMBLE
.validate_geometry = validate_geometry_ddf_container,
.write_init_super = write_init_super_ddf,
.external = 1,
};
-struct superswitch super_ddf_bvd = {
+static struct superswitch super_ddf_bvd = {
#ifndef MDASSEMBLE
// .detail_super = detail_super_ddf_bvd,
// .brief_detail_super = brief_detail_super_ddf_bvd,
.external = 2,
};
-struct superswitch super_ddf_svd = {
+static struct superswitch super_ddf_svd = {
#ifndef MDASSEMBLE
// .detail_super = detail_super_ddf_svd,
// .brief_detail_super = brief_detail_super_ddf_svd,
return sector_count(__le32_to_cpu(mpb->mpb_size));
}
+static struct superswitch super_imsm_volume;
+
/* internal representation of IMSM metadata */
struct intel_super {
union {
.external = 1,
};
-struct superswitch super_imsm_volume = {
+static struct superswitch super_imsm_volume = {
.update_super = update_super_imsm,
.init_super = init_super_imsm_volume,
.add_to_super = add_to_super_imsm_volume,