From: Christoph Hellwig <hch@lst.de>
To: akpm@osdl.org, roland@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH] utrace: remove exports
Date: Wed, 18 Apr 2007 20:01:13 +0200 [thread overview]
Message-ID: <20070418180113.GA18485@lst.de> (raw)
All the exports in utrace are totally unused, and not really something
I'd want modules to use anyway :)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: linux-2.6/arch/i386/kernel/ptrace.c
===================================================================
--- linux-2.6.orig/arch/i386/kernel/ptrace.c 2007-04-13 15:56:17.000000000 +0200
+++ linux-2.6/arch/i386/kernel/ptrace.c 2007-04-13 15:56:20.000000000 +0200
@@ -729,7 +729,6 @@ const struct utrace_regset_view utrace_i
.name = "i386", .e_machine = EM_386,
.regsets = native_regsets, .n = ARRAY_SIZE(native_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_i386_native);
#ifdef CONFIG_PTRACE
static const struct ptrace_layout_segment i386_uarea[] = {
Index: linux-2.6/arch/ia64/ia32/sys_ia32.c
===================================================================
--- linux-2.6.orig/arch/ia64/ia32/sys_ia32.c 2007-04-13 15:55:26.000000000 +0200
+++ linux-2.6/arch/ia64/ia32/sys_ia32.c 2007-04-13 15:55:29.000000000 +0200
@@ -2337,7 +2337,6 @@ const struct utrace_regset_view utrace_i
.name = "i386", .e_machine = EM_386,
.regsets = ia32_regsets, .n = ARRAY_SIZE(ia32_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_ia32_view);
#ifdef CONFIG_PTRACE
/*
Index: linux-2.6/arch/ia64/kernel/ptrace.c
===================================================================
--- linux-2.6.orig/arch/ia64/kernel/ptrace.c 2007-04-13 15:55:33.000000000 +0200
+++ linux-2.6/arch/ia64/kernel/ptrace.c 2007-04-13 15:55:35.000000000 +0200
@@ -1547,7 +1547,6 @@ const struct utrace_regset_view utrace_i
.e_machine = EM_IA_64,
.regsets = native_regsets, .n = ARRAY_SIZE(native_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_ia64_native);
#ifdef CONFIG_PTRACE
Index: linux-2.6/arch/powerpc/kernel/ptrace.c
===================================================================
--- linux-2.6.orig/arch/powerpc/kernel/ptrace.c 2007-04-13 15:56:03.000000000 +0200
+++ linux-2.6/arch/powerpc/kernel/ptrace.c 2007-04-13 15:56:07.000000000 +0200
@@ -346,8 +346,6 @@ const struct utrace_regset_view utrace_p
.name = UTS_MACHINE, .e_machine = ELF_ARCH,
.regsets = native_regsets, .n = ARRAY_SIZE(native_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_ppc_native_view);
-
#ifdef CONFIG_PPC64
#include <linux/compat.h>
@@ -458,7 +456,6 @@ const struct utrace_regset_view utrace_p
.name = "ppc", .e_machine = EM_PPC,
.regsets = ppc32_regsets, .n = ARRAY_SIZE(ppc32_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_ppc32_view);
#endif
Index: linux-2.6/arch/s390/kernel/ptrace.c
===================================================================
--- linux-2.6.orig/arch/s390/kernel/ptrace.c 2007-04-13 15:55:07.000000000 +0200
+++ linux-2.6/arch/s390/kernel/ptrace.c 2007-04-13 15:55:14.000000000 +0200
@@ -315,8 +315,6 @@ const struct utrace_regset_view utrace_s
.name = UTS_MACHINE, .e_machine = ELF_ARCH,
.regsets = native_regsets, .n = ARRAY_SIZE(native_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_s390_native_view);
-
#ifdef CONFIG_COMPAT
static int
@@ -564,7 +562,6 @@ const struct utrace_regset_view utrace_s
.name = "s390", .e_machine = EM_S390,
.regsets = s390_compat_regsets, .n = ARRAY_SIZE(s390_compat_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_s390_compat_view);
#endif /* CONFIG_COMPAT */
Index: linux-2.6/arch/sparc64/kernel/ptrace.c
===================================================================
--- linux-2.6.orig/arch/sparc64/kernel/ptrace.c 2007-04-13 15:55:45.000000000 +0200
+++ linux-2.6/arch/sparc64/kernel/ptrace.c 2007-04-13 15:55:53.000000000 +0200
@@ -258,7 +258,6 @@ const struct utrace_regset_view utrace_s
.name = UTS_MACHINE, .e_machine = ELF_ARCH,
.regsets = native_regsets, .n = ARRAY_SIZE(native_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_sparc64_native_view);
#ifdef CONFIG_COMPAT
@@ -596,7 +595,6 @@ const struct utrace_regset_view utrace_s
.name = "sparc", .e_machine = EM_SPARC,
.regsets = sparc32_regsets, .n = ARRAY_SIZE(sparc32_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_sparc32_view);
#endif /* CONFIG_COMPAT */
Index: linux-2.6/arch/x86_64/ia32/ptrace32.c
===================================================================
--- linux-2.6.orig/arch/x86_64/ia32/ptrace32.c 2007-04-13 15:54:42.000000000 +0200
+++ linux-2.6/arch/x86_64/ia32/ptrace32.c 2007-04-13 15:54:46.000000000 +0200
@@ -596,8 +596,6 @@ const struct utrace_regset_view utrace_i
.name = "i386", .e_machine = EM_386,
.regsets = ia32_regsets, .n = ARRAY_SIZE(ia32_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_ia32_view);
-
#ifdef CONFIG_PTRACE
/*
Index: linux-2.6/arch/x86_64/kernel/ptrace.c
===================================================================
--- linux-2.6.orig/arch/x86_64/kernel/ptrace.c 2007-04-13 15:54:50.000000000 +0200
+++ linux-2.6/arch/x86_64/kernel/ptrace.c 2007-04-13 15:54:54.000000000 +0200
@@ -703,8 +703,6 @@ const struct utrace_regset_view utrace_x
.name = "x86-64", .e_machine = EM_X86_64,
.regsets = native_regsets, .n = ARRAY_SIZE(native_regsets)
};
-EXPORT_SYMBOL_GPL(utrace_x86_64_native);
-
#ifdef CONFIG_PTRACE
static const struct ptrace_layout_segment x86_64_uarea[] = {
Index: linux-2.6/kernel/utrace.c
===================================================================
--- linux-2.6.orig/kernel/utrace.c 2007-04-13 15:56:28.000000000 +0200
+++ linux-2.6/kernel/utrace.c 2007-04-13 15:56:39.000000000 +0200
@@ -490,7 +490,6 @@ restart:
return engine;
}
-EXPORT_SYMBOL_GPL(utrace_attach);
/*
* When an engine is detached, the target thread may still see it and make
@@ -700,8 +699,6 @@ utrace_detach(struct task_struct *target
return 0;
}
-EXPORT_SYMBOL_GPL(utrace_detach);
-
/*
* Called with utrace->lock held.
@@ -900,8 +897,7 @@ restart: /* See below. */
return ret;
}
-EXPORT_SYMBOL_GPL(utrace_set_flags);
-\f
+
/*
* While running an engine callback, no locks are held.
* If a callback updates its engine's action state, then
@@ -1930,8 +1926,6 @@ utrace_inject_signal(struct task_struct
return ret;
}
-EXPORT_SYMBOL_GPL(utrace_inject_signal);
-
const struct utrace_regset *
utrace_regset(struct task_struct *target,
@@ -1946,8 +1940,6 @@ utrace_regset(struct task_struct *target
return &view->regsets[which];
}
-EXPORT_SYMBOL_GPL(utrace_regset);
-
/*
* Return the task_struct for the task using ptrace on this one, or NULL.
next reply other threads:[~2007-04-18 18:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-18 18:01 Christoph Hellwig [this message]
2007-04-30 4:02 ` [PATCH] utrace: remove exports Roland McGrath
2007-04-30 9:12 ` Christoph Hellwig
2007-05-03 18:44 ` Alexey Dobriyan
[not found] <46269F6A.4050303@us.ibm.com>
2007-04-18 23:02 ` Jim Keniston
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070418180113.GA18485@lst.de \
--to=hch@lst.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox