]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/md/md.c
const: make block_device_operations const
[net-next-2.6.git] / drivers / md / md.c
index 9dd872000cec843db28fd393f2eb3023725c4bf4..6aa497e4baf85d30526ad12ab8a96dbc179d9538 100644 (file)
@@ -138,7 +138,7 @@ static ctl_table raid_root_table[] = {
        { .ctl_name = 0 }
 };
 
-static struct block_device_operations md_fops;
+static const struct block_device_operations md_fops;
 
 static int start_readonly;
 
@@ -5556,7 +5556,7 @@ static int md_revalidate(struct gendisk *disk)
        mddev->changed = 0;
        return 0;
 }
-static struct block_device_operations md_fops =
+static const struct block_device_operations md_fops =
 {
        .owner          = THIS_MODULE,
        .open           = md_open,