File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2616,7 +2616,7 @@ static struct attribute *md_bitmap_attrs[] = {
2616
2616
& max_backlog_used .attr ,
2617
2617
NULL
2618
2618
};
2619
- struct attribute_group md_bitmap_group = {
2619
+ const struct attribute_group md_bitmap_group = {
2620
2620
.name = "bitmap" ,
2621
2621
.attrs = md_bitmap_attrs ,
2622
2622
};
Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ static struct mddev *mddev_alloc(dev_t unit)
785
785
return ERR_PTR (error );
786
786
}
787
787
788
- static struct attribute_group md_redundancy_group ;
788
+ static const struct attribute_group md_redundancy_group ;
789
789
790
790
void mddev_unlock (struct mddev * mddev )
791
791
{
@@ -802,7 +802,7 @@ void mddev_unlock(struct mddev *mddev)
802
802
* test it under the same mutex to ensure its correct value
803
803
* is seen.
804
804
*/
805
- struct attribute_group * to_remove = mddev -> to_remove ;
805
+ const struct attribute_group * to_remove = mddev -> to_remove ;
806
806
mddev -> to_remove = NULL ;
807
807
mddev -> sysfs_active = 1 ;
808
808
mutex_unlock (& mddev -> reconfig_mutex );
@@ -5500,7 +5500,7 @@ static struct attribute *md_redundancy_attrs[] = {
5500
5500
& md_degraded .attr ,
5501
5501
NULL ,
5502
5502
};
5503
- static struct attribute_group md_redundancy_group = {
5503
+ static const struct attribute_group md_redundancy_group = {
5504
5504
.name = NULL ,
5505
5505
.attrs = md_redundancy_attrs ,
5506
5506
};
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ struct mddev {
481
481
atomic_t max_corr_read_errors ; /* max read retries */
482
482
struct list_head all_mddevs ;
483
483
484
- struct attribute_group * to_remove ;
484
+ const struct attribute_group * to_remove ;
485
485
486
486
struct bio_set bio_set ;
487
487
struct bio_set sync_set ; /* for sync operations like
@@ -613,7 +613,7 @@ struct md_sysfs_entry {
613
613
ssize_t (* show )(struct mddev * , char * );
614
614
ssize_t (* store )(struct mddev * , const char * , size_t );
615
615
};
616
- extern struct attribute_group md_bitmap_group ;
616
+ extern const struct attribute_group md_bitmap_group ;
617
617
618
618
static inline struct kernfs_node * sysfs_get_dirent_safe (struct kernfs_node * sd , char * name )
619
619
{
Original file line number Diff line number Diff line change @@ -6940,7 +6940,7 @@ static struct attribute *raid5_attrs[] = {
6940
6940
& ppl_write_hint .attr ,
6941
6941
NULL ,
6942
6942
};
6943
- static struct attribute_group raid5_attrs_group = {
6943
+ static const struct attribute_group raid5_attrs_group = {
6944
6944
.name = NULL ,
6945
6945
.attrs = raid5_attrs ,
6946
6946
};
You can’t perform that action at this time.
0 commit comments