This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[patch 1/5] Move definitions of struct module_sect_attr back into module.h.
- From: Greg Banks <gnb at sgi dot com>
- To: Linux Kernel ML <linux-kernel at vger dot kernel dot org>
- Cc: Linux NFS ML <linux-nfs at vger dot kernel dot org>, Linux NFSv4 ML <nfsv4 at linux-nfs dot org>, SystemTAP ML <systemtap at sources dot redhat dot com>
- Date: Tue, 20 Jan 2009 12:29:31 +1100
- Subject: [patch 1/5] Move definitions of struct module_sect_attr back into module.h.
- References: <20090120012930.020621000@sgi.com>
The new dprintk module needs to use module_sect_attr.
Signed-off-by: Greg Banks <gnb@sgi.com>
---
include/linux/module.h | 15 +++++++++++++++
kernel/module.c | 13 -------------
2 files changed, 15 insertions(+), 13 deletions(-)
Index: bfields/kernel/module.c
===================================================================
--- bfields.orig/kernel/module.c
+++ bfields/kernel/module.c
@@ -1088,19 +1101,6 @@ 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)
Index: bfields/include/linux/module.h
===================================================================
--- bfields.orig/include/linux/module.h
+++ bfields/include/linux/module.h
@@ -231,6 +231,21 @@ enum module_state
MODULE_STATE_GOING,
};
+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];
+};
+
+
struct module
{
enum module_state state;
--
--
Greg Banks, P.Engineer, SGI Australian Software Group.
the brightly coloured sporks of revolution.
I don't speak for SGI.