flex_array: fix the panic when calling flex_array_alloc() without __GFP_ZERO
[firefly-linux-kernel-4.4.55.git] / lib / kobject.c
index cecf5a0ef6e1e001b5eb5efccd7e6c28da8c4aaa..8115eb1bbf4dc198cc5f9a725c40f4a6afd0e414 100644 (file)
@@ -700,7 +700,7 @@ static ssize_t kobj_attr_store(struct kobject *kobj, struct attribute *attr,
        return ret;
 }
 
-struct sysfs_ops kobj_sysfs_ops = {
+const struct sysfs_ops kobj_sysfs_ops = {
        .show   = kobj_attr_show,
        .store  = kobj_attr_store,
 };