diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c index ee1bc1bb8feb82f4873eb38106805c2823bed7b2..0999679d6f26706350cca88f42b970a1306f7037 100644 --- a/kernel/ksysfs.c +++ b/kernel/ksysfs.c @@ -195,7 +195,7 @@ static ssize_t notes_read(struct file *filp, struct kobject *kobj, return count; } -static struct bin_attribute notes_attr = { +static struct bin_attribute notes_attr __ro_after_init = { .attr = { .name = "notes", .mode = S_IRUGO,