LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] rcutorture: Mark rcu_torture_init as __init
@ 2007-03-01 19:29 Josh Triplett
2007-03-02 3:21 ` Paul E. McKenney
0 siblings, 1 reply; 2+ messages in thread
From: Josh Triplett @ 2007-03-01 19:29 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
Signed-off-by: Josh Triplett <josh@freedesktop.org>
---
The corresponding rcu_torture_cleanup cannot get marked as __exit, because
rcu_torture_init uses it to clean up if init fails.
kernel/rcutorture.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index 7258bcb..df49eca 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -866,7 +866,7 @@ rcu_torture_cleanup(void)
rcu_torture_print_module_parms("End of test: SUCCESS");
}
-static int
+static int __init
rcu_torture_init(void)
{
int i;
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] rcutorture: Mark rcu_torture_init as __init
2007-03-01 19:29 [PATCH] rcutorture: Mark rcu_torture_init as __init Josh Triplett
@ 2007-03-02 3:21 ` Paul E. McKenney
0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2007-03-02 3:21 UTC (permalink / raw)
To: Josh Triplett; +Cc: linux-kernel, Andrew Morton
On Thu, Mar 01, 2007 at 11:29:03AM -0800, Josh Triplett wrote:
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> Signed-off-by: Josh Triplett <josh@freedesktop.org>
> ---
> The corresponding rcu_torture_cleanup cannot get marked as __exit, because
> rcu_torture_init uses it to clean up if init fails.
>
> kernel/rcutorture.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
> index 7258bcb..df49eca 100644
> --- a/kernel/rcutorture.c
> +++ b/kernel/rcutorture.c
> @@ -866,7 +866,7 @@ rcu_torture_cleanup(void)
> rcu_torture_print_module_parms("End of test: SUCCESS");
> }
>
> -static int
> +static int __init
> rcu_torture_init(void)
> {
> int i;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-02 3:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-01 19:29 [PATCH] rcutorture: Mark rcu_torture_init as __init Josh Triplett
2007-03-02 3:21 ` Paul E. McKenney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).