Commit 8e8804a5 authored by Andrew Morton's avatar Andrew Morton Committed by Patrick Mochel

[PATCH] ipmi warning fixes

CPU flags are unsigned long.
parent 917ba3a6
...@@ -174,7 +174,7 @@ struct ipmi_smi ...@@ -174,7 +174,7 @@ struct ipmi_smi
int int
ipmi_register_all_cmd_rcvr(ipmi_user_t user) ipmi_register_all_cmd_rcvr(ipmi_user_t user)
{ {
int flags; unsigned long flags;
int rv = -EBUSY; int rv = -EBUSY;
write_lock_irqsave(&(user->intf->users_lock), flags); write_lock_irqsave(&(user->intf->users_lock), flags);
...@@ -193,7 +193,7 @@ ipmi_register_all_cmd_rcvr(ipmi_user_t user) ...@@ -193,7 +193,7 @@ ipmi_register_all_cmd_rcvr(ipmi_user_t user)
int int
ipmi_unregister_all_cmd_rcvr(ipmi_user_t user) ipmi_unregister_all_cmd_rcvr(ipmi_user_t user)
{ {
int flags; unsigned long flags;
int rv = -EINVAL; int rv = -EINVAL;
write_lock_irqsave(&(user->intf->users_lock), flags); write_lock_irqsave(&(user->intf->users_lock), flags);
...@@ -1023,7 +1023,7 @@ int ipmi_register_smi(struct ipmi_smi_handlers *handlers, ...@@ -1023,7 +1023,7 @@ int ipmi_register_smi(struct ipmi_smi_handlers *handlers,
int rv; int rv;
ipmi_smi_t new_intf; ipmi_smi_t new_intf;
struct list_head *entry; struct list_head *entry;
unsigned int flags; unsigned long flags;
/* Make sure the driver is actually initialized, this handles /* Make sure the driver is actually initialized, this handles
...@@ -1148,7 +1148,7 @@ int ipmi_unregister_smi(ipmi_smi_t intf) ...@@ -1148,7 +1148,7 @@ int ipmi_unregister_smi(ipmi_smi_t intf)
int rv = -ENODEV; int rv = -ENODEV;
int i; int i;
struct list_head *entry; struct list_head *entry;
unsigned int flags; unsigned long flags;
down_write(&interfaces_sem); down_write(&interfaces_sem);
if (list_empty(&(intf->users))) if (list_empty(&(intf->users)))
......
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