2003-05-09 22:53:25

by Stephen Hemminger

[permalink] [raw]
Subject: [PATCH 2.5.69] IPMI warning removal

IPMI driver has warnings because it is putting interrupt mask into int
when it should be using a unsigned long.

diff -Nru a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
--- a/drivers/char/ipmi/ipmi_msghandler.c Fri May 9 15:54:51 2003
+++ b/drivers/char/ipmi/ipmi_msghandler.c Fri May 9 15:54:51 2003
@@ -174,7 +174,7 @@
int
ipmi_register_all_cmd_rcvr(ipmi_user_t user)
{
- int flags;
+ unsigned long flags;
int rv = -EBUSY;

write_lock_irqsave(&(user->intf->users_lock), flags);
@@ -193,7 +193,7 @@
int
ipmi_unregister_all_cmd_rcvr(ipmi_user_t user)
{
- int flags;
+ unsigned long flags;
int rv = -EINVAL;

write_lock_irqsave(&(user->intf->users_lock), flags);
@@ -1023,7 +1023,7 @@
int rv;
ipmi_smi_t new_intf;
struct list_head *entry;
- unsigned int flags;
+ unsigned long flags;


/* Make sure the driver is actually initialized, this handles