Skip to content

Commit c0cc271

Browse files
committed
Merge tag 'modules-for-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
Pull module updates from Jessica Yu: "Only a small cleanup this time around: a trivial conversion of zero-length arrays to flexible arrays" * tag 'modules-for-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux: kernel: module: Replace zero-length array with flexible-array member
2 parents 87ebc45 + 0f74226 commit c0cc271

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ struct module_sect_attr {
15151515
struct module_sect_attrs {
15161516
struct attribute_group grp;
15171517
unsigned int nsections;
1518-
struct module_sect_attr attrs[0];
1518+
struct module_sect_attr attrs[];
15191519
};
15201520

15211521
static ssize_t module_sect_show(struct module_attribute *mattr,
@@ -1608,7 +1608,7 @@ static void remove_sect_attrs(struct module *mod)
16081608
struct module_notes_attrs {
16091609
struct kobject *dir;
16101610
unsigned int notes;
1611-
struct bin_attribute attrs[0];
1611+
struct bin_attribute attrs[];
16121612
};
16131613

16141614
static ssize_t module_notes_read(struct file *filp, struct kobject *kobj,

0 commit comments

Comments
 (0)