]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix ipmi_devintf.c compilation
authorCorey Minyard <cminyard@mvista.com>
Thu, 27 Mar 2003 07:30:10 +0000 (23:30 -0800)
committerAnton Blanchard <anton@samba.org>
Thu, 27 Mar 2003 07:30:10 +0000 (23:30 -0800)
This fixes ipmi compilation (with some documentation updates and another
minor fix, too).

It also fixes a problem with the state machine getting stuck in a
certain error condition.

Documentation/IPMI.txt
drivers/char/ipmi/Kconfig
drivers/char/ipmi/ipmi_devintf.c
drivers/char/ipmi/ipmi_kcs_intf.c
drivers/char/ipmi/ipmi_kcs_sm.c

index 47c2f4ba40ac4f9ab1b5bfe1a4eae61619e33778..825e83cb4acc55d0977964a9c62b76acc5e3e019 100644 (file)
@@ -5,6 +5,18 @@
                          <minyard@mvista.com>
                            <minyard@acm.org>
 
+The Intelligent Platform Management Interface, or IPMI, is a
+standard for controlling intelligent devices that monitor a system.
+It provides for dynamic discovery of sensors in the system and the
+ability to monitor the sensors and be informed when the sensor's
+values change or go outside certain boundaries.  It also has a
+standardized database for field-replacable units (FRUs) and a watchdog
+timer.
+
+To use this, you need an interface to an IPMI controller in your
+system (called a Baseboard Management Controller, or BMC) and
+management software that can use the IPMI system.
+
 This document describes how to use the IPMI driver for Linux.  If you
 are not familiar with IPMI itself, see the web site at
 http://www.intel.com/design/servers/ipmi/index.htm.  IPMI is a big
index 9b2c2f940a20835db901e6c8146a8d3266f4660c..2698e45967200501ed763b30b1aa8d4b20ba8caf 100644 (file)
@@ -7,8 +7,14 @@ config IPMI_HANDLER
        tristate 'IPMI top-level message handler'
        help
          This enables the central IPMI message handler, required for IPMI
-        to work.  Note that you must have this enabled to do any other IPMI
-        things.  See IPMI.txt for more details.
+        to work.
+
+         IPMI is a standard for managing sensors (temperature,
+         voltage, etc.) in a system.
+
+         See Documentation/IPMI.txt for more details on the driver.
+
+        If unsure, say N.
 
 config IPMI_PANIC_EVENT
        bool 'Generate a panic event to all BMCs on a panic'
index e511f95efbcde1c341e0b1a2f3a73fe8a9167b31..4db232f8fbedb71dbfb2820476d69b8f09f702dd 100644 (file)
@@ -449,7 +449,7 @@ static void ipmi_new_smi(int if_num)
        if (if_num > MAX_DEVICES)
                return;
 
-       snprinf(name, sizeof(name), "ipmidev/%d", if_num);
+       snprintf(name, sizeof(name), "ipmidev/%d", if_num);
 
        handles[if_num] = devfs_register(NULL, name, DEVFS_FL_NONE,
                                         ipmi_major, if_num,
index f3109bf4367709c87e2b8f3d1eafa036e591dfff..ab162ed8aff0384b3032257284abe91e7fd909c8 100644 (file)
@@ -826,7 +826,7 @@ static int init_one_kcs(int kcs_port,
        if (kcs_port && kcs_physaddr)
                return -EINVAL;
 
-       new_kcs = kmalloc(kcs_size(), GFP_KERNEL);
+       new_kcs = kmalloc(sizeof(*new_kcs), GFP_KERNEL);
        if (!new_kcs) {
                printk(KERN_ERR "ipmi_kcs: out of memory\n");
                return -ENOMEM;
index 5a96cd05ee251a366e631d6f490cb2dd8fa9078b..5d796aa62a52e34f826985ea45202866cf17c70a 100644 (file)
@@ -468,7 +468,7 @@ enum kcs_result kcs_event(struct kcs_data *kcs, long time)
                break;
                        
        case KCS_HOSED:
-               return KCS_SM_HOSED;
+               break;
        }
 
        if (kcs->state == KCS_HOSED) {