* [PATCH] make module_sect_attrs private to kernel/module.c
@ 2008-01-10 16:35 Jan Beulich
0 siblings, 0 replies; 2+ messages in thread
From: Jan Beulich @ 2008-01-10 16:35 UTC (permalink / raw)
To: linux-kernel
No-one else is using these afaics.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
---
include/linux/module.h | 17 -----------------
kernel/module.c | 16 +++++++++++++++-
2 files changed, 15 insertions(+), 18 deletions(-)
--- linux-2.6.24-rc7/include/linux/module.h 2008-01-10 16:50:52.000000000 +0100
+++ 2.6.24-rc7-private-module-sect-attrs/include/linux/module.h 2008-01-08 09:15:49.000000000 +0100
@@ -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;
--- linux-2.6.24-rc7/kernel/module.c 2008-01-10 16:50:54.000000000 +0100
+++ 2.6.24-rc7-private-module-sect-attrs/kernel/module.c 2008-01-08 10:12:12.000000000 +0100
@@ -968,6 +968,20 @@ static unsigned long resolve_symbol(Elf_
* J. Corbet <corbet@lwn.net>
*/
#ifdef CONFIG_KALLSYMS
+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)
{
@@ -978,7 +992,7 @@ static ssize_t module_sect_show(struct m
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);
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH] make module_sect_attrs private to kernel/module.c
@ 2008-03-13 9:03 Jan Beulich
0 siblings, 0 replies; 2+ messages in thread
From: Jan Beulich @ 2008-03-13 9:03 UTC (permalink / raw)
To: linux-kernel
No-one else is using these afaics.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
---
include/linux/module.h | 17 -----------------
kernel/module.c | 16 +++++++++++++++-
2 files changed, 15 insertions(+), 18 deletions(-)
--- linux-2.6.25-rc5/include/linux/module.h 2008-03-10 13:24:33.000000000 +0100
+++ 2.6.25-rc5-private-module-sect-attrs/include/linux/module.h 2008-03-04 11:25:28.000000000 +0100
@@ -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;
--- linux-2.6.25-rc5/kernel/module.c 2008-03-10 13:24:35.000000000 +0100
+++ 2.6.25-rc5-private-module-sect-attrs/kernel/module.c 2008-03-04 11:26:10.000000000 +0100
@@ -992,6 +992,20 @@ static unsigned long resolve_symbol(Elf_
* 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)
{
@@ -1002,7 +1016,7 @@ static ssize_t module_sect_show(struct m
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-13 9:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-10 16:35 [PATCH] make module_sect_attrs private to kernel/module.c Jan Beulich
2008-03-13 9:03 Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome