diff options
Diffstat (limited to '')
-rw-r--r-- | kernel/module/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module/sysfs.c b/kernel/module/sysfs.c index c921bf0440..d964167c66 100644 --- a/kernel/module/sysfs.c +++ b/kernel/module/sysfs.c @@ -143,7 +143,7 @@ static void remove_sect_attrs(struct module *mod) struct module_notes_attrs { struct kobject *dir; unsigned int notes; - struct bin_attribute attrs[]; + struct bin_attribute attrs[] __counted_by(notes); }; static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, |