Driver core: Constify struct sysfs_ops in struct kobj_type
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / infiniband / core / cm.c
index 5130fc55b8e2739f001389d2392dfd8e49b96125..764787ebe8d80f661ba9e7edf0b0e98c38502bfc 100644 (file)
@@ -3597,7 +3597,7 @@ static ssize_t cm_show_counter(struct kobject *obj, struct attribute *attr,
                       atomic_long_read(&group->counter[cm_attr->index]));
 }
 
-static struct sysfs_ops cm_counter_ops = {
+static const struct sysfs_ops cm_counter_ops = {
        .show = cm_show_counter
 };