]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
module: make module_sect_attrs private to kernel/module.c
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2008 09:03:44 +0000 (09:03 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 1 May 2008 11:14:59 +0000 (21:14 +1000)
No-one else is using these afaics.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h
kernel/module.c

index 819c4e889bf16f0157f45ad4326afa7e83418582..a29c2ebb7c389aa59ae4698eb53448b1f53e443a 100644 (file)
@@ -229,23 +229,6 @@ enum module_state
        MODULE_STATE_GOING,
 };
 
-/* Similar stuff for section attributes. */
-struct module_sect_attr
-{
-       struct module_attribute mattr;
-       char *name;
-       unsigned long address;
-};
-
-struct module_sect_attrs
-{
-       struct attribute_group grp;
-       int nsections;
-       struct module_sect_attr attrs[0];
-};
-
-struct module_param_attrs;
-
 struct module
 {
        enum module_state state;
index 8d6cccc6c3cf99870f76b00202a2775bd5e2a54f..b0d7c2a41bd9120c324e19eae0cf8ad8d148d1d7 100644 (file)
@@ -991,6 +991,20 @@ static unsigned long resolve_symbol(Elf_Shdr *sechdrs,
  * J. Corbet <corbet@lwn.net>
  */
 #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);