summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:38 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:38 +1000
commit0063ecba3de1e2048715800dd2b3ff909c1aa6a1 (patch)
tree1ffce61f29fb741549935657be03920433a84201 /super-ddf.c
parentb8ac1967953fea50f0ec1e1650a3a9f52e6525d8 (diff)
downloadmdadm-0063ecba3de1e2048715800dd2b3ff909c1aa6a1.tar.gz
mdadm-0063ecba3de1e2048715800dd2b3ff909c1aa6a1.tar.xz
mdadm-0063ecba3de1e2048715800dd2b3ff909c1aa6a1.zip
Hide subordinate superswitch structures.
Only one superswitch should be externally visible for each general type. Others which handle different flavours (e.g. container/data-array) should be internal only.
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/super-ddf.c b/super-ddf.c
index 8f7cec4..5644aea 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -425,7 +425,7 @@ struct ddf_super {
#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)
{
@@ -3135,7 +3135,7 @@ struct superswitch super_ddf = {
/* 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,
@@ -3155,7 +3155,7 @@ struct superswitch super_ddf_container = {
.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,
@@ -3176,7 +3176,7 @@ struct superswitch 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,