[<prev] [next>] [day] [month] [year] [list]
Message-id: <20100910024206.GA5627@mail.minyard.local>
Date: Thu, 09 Sep 2010 21:42:06 -0500
From: Corey Minyard <minyard@....org>
To: Andrew Morton <akpm@...l.org>,
Linux Kernel <linux-kernel@...r.kernel.org>,
OpenIPMI Developers <openipmi-developer@...ts.sourceforge.net>
Subject: [PATCH] ipmi: Fix __init and __exit attribute locations
From: Corey Minyard <cminyard@...sta.com>
__init and __exit belong after the return type on functions, not
before.
Signed-off-by: Corey Minyard <cminyard@...sta.com>
---
Index: linux-2.6.32/drivers/char/ipmi/ipmi_msghandler.c
===================================================================
--- linux-2.6.32.orig/drivers/char/ipmi/ipmi_msghandler.c 2010-09-09 09:35:32.000000000 -0500
+++ linux-2.6.32/drivers/char/ipmi/ipmi_msghandler.c 2010-09-09 09:38:52.712232472 -0500
@@ -4442,13 +4442,13 @@
return 0;
}
-static __init int ipmi_init_msghandler_mod(void)
+static int __init ipmi_init_msghandler_mod(void)
{
ipmi_init_msghandler();
return 0;
}
-static __exit void cleanup_ipmi(void)
+static void __exit cleanup_ipmi(void)
{
int count;
Index: linux-2.6.32/drivers/char/ipmi/ipmi_si_intf.c
===================================================================
--- linux-2.6.32.orig/drivers/char/ipmi/ipmi_si_intf.c 2010-09-09 09:35:34.000000000 -0500
+++ linux-2.6.32/drivers/char/ipmi/ipmi_si_intf.c 2010-09-09 09:39:38.480979178 -0500
@@ -1832,7 +1832,7 @@
return rv;
}
-static __devinit void hardcode_find_bmc(void)
+static void __devinit hardcode_find_bmc(void)
{
int i;
struct smi_info *info;
@@ -2016,7 +2016,7 @@
s8 spmi_id[1]; /* A '\0' terminated array starts here. */
};
-static __devinit int try_init_spmi(struct SPMITable *spmi)
+static int __devinit try_init_spmi(struct SPMITable *spmi)
{
struct smi_info *info;
@@ -2099,7 +2099,7 @@
return 0;
}
-static __devinit void spmi_find_bmc(void)
+static void __devinit spmi_find_bmc(void)
{
acpi_status status;
struct SPMITable *spmi;
@@ -2312,7 +2312,7 @@
return 0;
}
-static __devinit void try_init_dmi(struct dmi_ipmi_data *ipmi_data)
+static void __devinit try_init_dmi(struct dmi_ipmi_data *ipmi_data)
{
struct smi_info *info;
@@ -2999,7 +2999,7 @@
{ .port = 0 }
};
-static __devinit void default_find_bmc(void)
+static void __devinit default_find_bmc(void)
{
struct smi_info *info;
int i;
@@ -3302,7 +3302,7 @@
return rv;
}
-static __devinit int init_ipmi_si(void)
+static int __devinit init_ipmi_si(void)
{
int i;
char *str;
@@ -3514,7 +3514,7 @@
kfree(to_clean);
}
-static __exit void cleanup_ipmi_si(void)
+static void __exit cleanup_ipmi_si(void)
{
struct smi_info *e, *tmp_e;
Index: linux-2.6.32/drivers/char/ipmi/ipmi_devintf.c
===================================================================
--- linux-2.6.32.orig/drivers/char/ipmi/ipmi_devintf.c 2010-09-09 09:35:29.000000000 -0500
+++ linux-2.6.32/drivers/char/ipmi/ipmi_devintf.c 2010-09-09 09:38:52.722230238 -0500
@@ -915,7 +915,7 @@
.smi_gone = ipmi_smi_gone,
};
-static __init int init_ipmi_devintf(void)
+static int __init init_ipmi_devintf(void)
{
int rv;
@@ -953,7 +953,7 @@
}
module_init(init_ipmi_devintf);
-static __exit void cleanup_ipmi(void)
+static void __exit cleanup_ipmi(void)
{
struct ipmi_reg_list *entry, *entry2;
mutex_lock(®_list_mutex);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists