Commit 60ee6d5f authored by Corey Minyard's avatar Corey Minyard Committed by Linus Torvalds

ipmi: fix __init and __exit attribute locations

__init and __exit belong after the return type on functions, not
before.
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 03145beb
...@@ -916,7 +916,7 @@ static struct ipmi_smi_watcher smi_watcher = ...@@ -916,7 +916,7 @@ static struct ipmi_smi_watcher smi_watcher =
.smi_gone = ipmi_smi_gone, .smi_gone = ipmi_smi_gone,
}; };
static __init int init_ipmi_devintf(void) static int __init init_ipmi_devintf(void)
{ {
int rv; int rv;
...@@ -954,7 +954,7 @@ static __init int init_ipmi_devintf(void) ...@@ -954,7 +954,7 @@ static __init int init_ipmi_devintf(void)
} }
module_init(init_ipmi_devintf); module_init(init_ipmi_devintf);
static __exit void cleanup_ipmi(void) static void __exit cleanup_ipmi(void)
{ {
struct ipmi_reg_list *entry, *entry2; struct ipmi_reg_list *entry, *entry2;
mutex_lock(&reg_list_mutex); mutex_lock(&reg_list_mutex);
......
...@@ -4442,13 +4442,13 @@ static int ipmi_init_msghandler(void) ...@@ -4442,13 +4442,13 @@ static int ipmi_init_msghandler(void)
return 0; return 0;
} }
static __init int ipmi_init_msghandler_mod(void) static int __init ipmi_init_msghandler_mod(void)
{ {
ipmi_init_msghandler(); ipmi_init_msghandler();
return 0; return 0;
} }
static __exit void cleanup_ipmi(void) static void __exit cleanup_ipmi(void)
{ {
int count; int count;
......
...@@ -1846,7 +1846,7 @@ static int hotmod_handler(const char *val, struct kernel_param *kp) ...@@ -1846,7 +1846,7 @@ static int hotmod_handler(const char *val, struct kernel_param *kp)
return rv; return rv;
} }
static __devinit void hardcode_find_bmc(void) static void __devinit hardcode_find_bmc(void)
{ {
int i; int i;
struct smi_info *info; struct smi_info *info;
...@@ -2029,7 +2029,7 @@ struct SPMITable { ...@@ -2029,7 +2029,7 @@ struct SPMITable {
s8 spmi_id[1]; /* A '\0' terminated array starts here. */ 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; struct smi_info *info;
...@@ -2112,7 +2112,7 @@ static __devinit int try_init_spmi(struct SPMITable *spmi) ...@@ -2112,7 +2112,7 @@ static __devinit int try_init_spmi(struct SPMITable *spmi)
return 0; return 0;
} }
static __devinit void spmi_find_bmc(void) static void __devinit spmi_find_bmc(void)
{ {
acpi_status status; acpi_status status;
struct SPMITable *spmi; struct SPMITable *spmi;
...@@ -2325,7 +2325,7 @@ static int __devinit decode_dmi(const struct dmi_header *dm, ...@@ -2325,7 +2325,7 @@ static int __devinit decode_dmi(const struct dmi_header *dm,
return 0; 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; struct smi_info *info;
...@@ -3012,7 +3012,7 @@ static __devinitdata struct ipmi_default_vals ...@@ -3012,7 +3012,7 @@ static __devinitdata struct ipmi_default_vals
{ .port = 0 } { .port = 0 }
}; };
static __devinit void default_find_bmc(void) static void __devinit default_find_bmc(void)
{ {
struct smi_info *info; struct smi_info *info;
int i; int i;
...@@ -3312,7 +3312,7 @@ static int try_smi_init(struct smi_info *new_smi) ...@@ -3312,7 +3312,7 @@ static int try_smi_init(struct smi_info *new_smi)
return rv; return rv;
} }
static __devinit int init_ipmi_si(void) static int __devinit init_ipmi_si(void)
{ {
int i; int i;
char *str; char *str;
...@@ -3525,7 +3525,7 @@ static void cleanup_one_si(struct smi_info *to_clean) ...@@ -3525,7 +3525,7 @@ static void cleanup_one_si(struct smi_info *to_clean)
kfree(to_clean); kfree(to_clean);
} }
static __exit void cleanup_ipmi_si(void) static void __exit cleanup_ipmi_si(void)
{ {
struct smi_info *e, *tmp_e; struct smi_info *e, *tmp_e;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment