* [PATCH] char/impi: adding __init macro/ fix of __exit macro location in ipmi_poweroff.c
@ 2009-08-22 23:46 Peter Hüwe
2009-08-24 3:10 ` [Openipmi-developer] [PATCH] char/impi: adding __init macro/ fix Corey Minyard
0 siblings, 1 reply; 3+ messages in thread
From: Peter Hüwe @ 2009-08-22 23:46 UTC (permalink / raw)
To: Jiri Kosina
Cc: Corey Minyard, openipmi-developer, linux-kernel, kernel-janitors
From: Peter Huewe <peterhuewe@gmx.de>
Trivial patch which adds the __init to the module_init function of
drivers/char/ipmi/ipmy_poweroff.c and corrects the location of __exit for the
cleanup function.
According to ldd3, page 31 the __exit token hast to be after the return type.
Or am I getting something wrong here?
Corey, please have a look at the small patch and either pull it through
your tree, or please ack' it so Jiri can pull it through the trivial tree.
linux version 2.6.31-rc6 - linus git tree, So 23. Aug 01:38:43 CEST 2009
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
index a261bd7..2e66b5f 100644
--- a/drivers/char/ipmi/ipmi_poweroff.c
+++ b/drivers/char/ipmi/ipmi_poweroff.c
@@ -691,7 +691,7 @@ static struct ctl_table_header *ipmi_table_header;
/*
* Startup and shutdown functions.
*/
-static int ipmi_poweroff_init(void)
+static int __init ipmi_poweroff_init(void)
{
int rv;
@@ -725,7 +725,7 @@ static int ipmi_poweroff_init(void)
}
#ifdef MODULE
-static __exit void ipmi_poweroff_cleanup(void)
+static void __exit ipmi_poweroff_cleanup(void)
{
int rv;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Openipmi-developer] [PATCH] char/impi: adding __init macro/ fix
2009-08-22 23:46 [PATCH] char/impi: adding __init macro/ fix of __exit macro location in ipmi_poweroff.c Peter Hüwe
@ 2009-08-24 3:10 ` Corey Minyard
2009-08-24 8:17 ` [Openipmi-developer] [PATCH] char/impi: adding __init macro/ Jiri Kosina
0 siblings, 1 reply; 3+ messages in thread
From: Corey Minyard @ 2009-08-24 3:10 UTC (permalink / raw)
To: Peter Hüwe
Cc: Jiri Kosina, openipmi-developer, kernel-janitors, linux-kernel
This is correct, I'm fine with it going through the trivial tree. Thanks.
Acked-by: Corey Minyard <minyard@acm.org>
Peter Hüwe wrote:
> From: Peter Huewe <peterhuewe@gmx.de>
>
> Trivial patch which adds the __init to the module_init function of
> drivers/char/ipmi/ipmy_poweroff.c and corrects the location of __exit for the
> cleanup function.
>
> According to ldd3, page 31 the __exit token hast to be after the return type.
> Or am I getting something wrong here?
>
> Corey, please have a look at the small patch and either pull it through
> your tree, or please ack' it so Jiri can pull it through the trivial tree.
>
> linux version 2.6.31-rc6 - linus git tree, So 23. Aug 01:38:43 CEST 2009
>
> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> ---
> diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
> index a261bd7..2e66b5f 100644
> --- a/drivers/char/ipmi/ipmi_poweroff.c
> +++ b/drivers/char/ipmi/ipmi_poweroff.c
> @@ -691,7 +691,7 @@ static struct ctl_table_header *ipmi_table_header;
> /*
> * Startup and shutdown functions.
> */
> -static int ipmi_poweroff_init(void)
> +static int __init ipmi_poweroff_init(void)
> {
> int rv;
>
> @@ -725,7 +725,7 @@ static int ipmi_poweroff_init(void)
> }
>
> #ifdef MODULE
> -static __exit void ipmi_poweroff_cleanup(void)
> +static void __exit ipmi_poweroff_cleanup(void)
> {
> int rv;
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Openipmi-developer mailing list
> Openipmi-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>
>
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Openipmi-developer] [PATCH] char/impi: adding __init macro/
2009-08-24 3:10 ` [Openipmi-developer] [PATCH] char/impi: adding __init macro/ fix Corey Minyard
@ 2009-08-24 8:17 ` Jiri Kosina
0 siblings, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2009-08-24 8:17 UTC (permalink / raw)
To: Corey Minyard
Cc: Peter Hüwe, openipmi-developer, kernel-janitors,
linux-kernel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1623 bytes --]
On Sun, 23 Aug 2009, Corey Minyard wrote:
> This is correct, I'm fine with it going through the trivial tree. Thanks.
>
> Acked-by: Corey Minyard <minyard@acm.org>
>
> Peter Hüwe wrote:
> > From: Peter Huewe <peterhuewe@gmx.de>
> >
> > Trivial patch which adds the __init to the module_init function of
> > drivers/char/ipmi/ipmy_poweroff.c and corrects the location of __exit for
> > the
> > cleanup function.
> >
> > According to ldd3, page 31 the __exit token hast to be after the return
> > type.
> > Or am I getting something wrong here?
> >
> > Corey, please have a look at the small patch and either pull it through
> > your tree, or please ack' it so Jiri can pull it through the trivial tree.
> >
> > linux version 2.6.31-rc6 - linus git tree, So 23. Aug 01:38:43 CEST 2009
> >
> > Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> > ---
> > diff --git a/drivers/char/ipmi/ipmi_poweroff.c
> > b/drivers/char/ipmi/ipmi_poweroff.c
> > index a261bd7..2e66b5f 100644
> > --- a/drivers/char/ipmi/ipmi_poweroff.c
> > +++ b/drivers/char/ipmi/ipmi_poweroff.c
> > @@ -691,7 +691,7 @@ static struct ctl_table_header *ipmi_table_header;
> > /*
> > * Startup and shutdown functions.
> > */
> > -static int ipmi_poweroff_init(void)
> > +static int __init ipmi_poweroff_init(void)
> > {
> > int rv;
> >
> > @@ -725,7 +725,7 @@ static int ipmi_poweroff_init(void)
> > }
> >
> > #ifdef MODULE
> > -static __exit void ipmi_poweroff_cleanup(void)
> > +static void __exit ipmi_poweroff_cleanup(void)
> > {
> > int rv;
Applied, thanks.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-24 8:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-22 23:46 [PATCH] char/impi: adding __init macro/ fix of __exit macro location in ipmi_poweroff.c Peter Hüwe
2009-08-24 3:10 ` [Openipmi-developer] [PATCH] char/impi: adding __init macro/ fix Corey Minyard
2009-08-24 8:17 ` [Openipmi-developer] [PATCH] char/impi: adding __init macro/ Jiri Kosina
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).