X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fmodule.c;h=b0d7c2a41bd9120c324e19eae0cf8ad8d148d1d7;hb=a58730c42174672fe0012a4edbe3e38f94ef2bad;hp=8d6cccc6c3cf99870f76b00202a2775bd5e2a54f;hpb=bda0c0afa7a694bb1459fd023515aca681e4d79a;p=linux-2.6-omap-h63xx.git diff --git a/kernel/module.c b/kernel/module.c index 8d6cccc6c3c..b0d7c2a41bd 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -991,6 +991,20 @@ static unsigned long resolve_symbol(Elf_Shdr *sechdrs, * J. Corbet */ #if defined(CONFIG_KALLSYMS) && defined(CONFIG_SYSFS) +struct module_sect_attr +{ + struct module_attribute mattr; + char *name; + unsigned long address; +}; + +struct module_sect_attrs +{ + struct attribute_group grp; + unsigned int nsections; + struct module_sect_attr attrs[0]; +}; + static ssize_t module_sect_show(struct module_attribute *mattr, struct module *mod, char *buf) { @@ -1001,7 +1015,7 @@ static ssize_t module_sect_show(struct module_attribute *mattr, static void free_sect_attrs(struct module_sect_attrs *sect_attrs) { - int section; + unsigned int section; for (section = 0; section < sect_attrs->nsections; section++) kfree(sect_attrs->attrs[section].name);