20 Jul, 2007

1 commit

  • Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

    Here is a short excerpt of the semantic patch performing
    this transformation:

    @@
    type T2;
    expression x;
    identifier f,fld;
    expression E;
    expression E1,E2;
    expression e1,e2,e3,y;
    statement S;
    @@

    x =
    - kmalloc
    + kzalloc
    (E1,E2)
    ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
    - memset((T2)x,0,E1);

    @@
    expression E1,E2,E3;
    @@

    - kzalloc(E1 * E2,E3)
    + kcalloc(E1,E2,E3)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

12 Jul, 2007

1 commit

  • sysfs is now completely out of driver/module lifetime game. After
    deletion, a sysfs node doesn't access anything outside sysfs proper,
    so there's no reason to hold onto the attribute owners. Note that
    often the wrong modules were accounted for as owners leading to
    accessing removed modules.

    This patch kills now unnecessary attribute->owner. Note that with
    this change, userland holding a sysfs node does not prevent the
    backing module from being unloaded.

    For more info regarding lifetime rule cleanup, please read the
    following message.

    http://article.gmane.org/gmane.linux.kernel/510293

    (tweaked by Greg to not delete the field just yet, to make it easier to
    merge things properly.)

    Signed-off-by: Tejun Heo
    Cc: Cornelia Huck
    Cc: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Tejun Heo
     

15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

12 Feb, 2007

2 commits

  • Bug: pnx8550 code creates directory but resets ->nlink to 1.

    create_proc_entry() et al will correctly set ->nlink for you.

    Signed-off-by: Alexey Dobriyan
    Cc: Ralf Baechle
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: Jeff Dike
    Cc: Corey Minyard
    Cc: Alan Cox
    Cc: Kyle McMartin
    Cc: Martin Schwidefsky
    Cc: Greg KH
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Fix some RCU problem pointed out by Paul McKenney of IBM. These are:

    The wholesale move of the command receivers list into a new list was not
    safe because the list will point to the new tail during a traversal, so the
    traversal will never end on a reader if this happens during a read.

    Memory barriers were needed to handle proper ordering of the setting of the
    IPMI interface as valid. Readers might not see proper ordering of data
    otherwise.

    In ipmi_smi_watcher_register(), the use of the _rcu suffix on the list is
    unnecessary.

    This require the list_splice_init_rcu() patch previously posted.

    Signed-off-by: Corey Minyard
    Cc: Paul E. McKenney
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     

31 Jan, 2007

1 commit

  • Fix a dangling pointer bug in ipmi_timeout_handler. A list of timedout
    messages is not re-initialized before reuse, causing the head of the list
    to point to freed memory.

    Signed-off-by: David Barksdale
    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Barksdale
     

11 Dec, 2006

2 commits

  • Fix various problems pointed out by Andrew Morton and others:
    * platform_device_unregister checks for NULL, no need to check here.
    * Formatting fixes.
    * Remove big macro and convert to a function.
    * Use strcmp instead of defining a broken case-insensitive comparison,
    and make the output parameter info match the case of the input one
    (change "I/O" to "i/o").
    * Return the length instead of 0 from the hotmod parameter handler.
    * Remove some unused cruft.
    * The trydefaults parameter only has to do with scanning the "standard"
    addresses, don't check for that on ACPI.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Remove all =0 and =NULL from static initializers. They are not needed and
    removing them saves space in the object files.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

08 Dec, 2006

6 commits

  • Fix build warnings for PROC_FS=n.

    drivers/char/ipmi/ipmi_poweroff.c:707: warning: label 'out_err' defined but not used

    drivers/char/ipmi/ipmi_msghandler.c:1774: warning: 'ipmb_file_read_proc' defined but not used
    drivers/char/ipmi/ipmi_msghandler.c:1790: warning: 'version_file_read_proc' defined but not used
    drivers/char/ipmi/ipmi_msghandler.c:1801: warning: 'stat_file_read_proc' defined but not used

    Signed-off-by: Randy Dunlap
    Cc: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Some commands and operations on a BMC can cause the BMC to "go away" for a
    while. This can cause the automatic flag processing and other things of that
    nature to timeout and generate annoying logs, or possibly cause other bad
    things to happen when in firmware update mode.

    Add detection of those commands (cold reset, warm reset, and any firmware
    command) and turns off automatic processing for 30 seconds. It also add a
    manual override either way.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • This modifies the IPMI driver so that a lower-level interface can be
    dynamically removed while in use so it can support hot-removal of hardware.

    It also adds the ability to specify and dynamically change the IPMI interface
    the watchdog timer and the poweroff code use.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Pass in the sysfs name from the lower-level IPMI driver, as the coming IPMI
    serial driver will need that to link properly from the serial device sysfs
    directory.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Remove the arbitrary limit of number of IPMI interfaces. This has been tested
    with 8 interfaces.

    Signed-off-by: Corey Minyard
    Cc: Carol Hebert
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Add the product id to the driver model platform device name, in addition to
    the device id. The IPMI spec does not require that individual BMCs in a
    system have unique devices IDs, but it does require that the product id/device
    id combination be unique.

    This also removes a redundant check and cleans up error handling
    when the sysfs registration fails.

    Signed-off-by: Corey Minyard
    Cc: Carol Hebert
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     

17 Nov, 2006

1 commit

  • … register device allocated dynamically

    I got below warning when running 2.6.19-rc5-mm1 on my ia64 machine.

    WARNING at lib/kobject.c:172 kobject_init()

    Call Trace:
    [<a0000001000137c0>] show_stack+0x40/0xa0
    sp=e0000002ff9f7bc0 bsp=e0000002ff9f0d10
    [<a000000100013850>] dump_stack+0x30/0x60
    sp=e0000002ff9f7d90 bsp=e0000002ff9f0cf8
    [<a000000100407bb0>] kobject_init+0x90/0x160
    sp=e0000002ff9f7d90 bsp=e0000002ff9f0cd0
    [<a0000001005ae080>] device_initialize+0x40/0x1c0
    sp=e0000002ff9f7da0 bsp=e0000002ff9f0cb0
    [<a0000001005b88c0>] platform_device_register+0x20/0x60
    sp=e0000002ff9f7dd0 bsp=e0000002ff9f0c90
    [<a000000100592560>] try_smi_init+0xbc0/0x11e0
    sp=e0000002ff9f7dd0 bsp=e0000002ff9f0c50
    [<a000000100594900>] init_ipmi_si+0xaa0/0x12e0
    sp=e0000002ff9f7de0 bsp=e0000002ff9f0bd8
    [<a000000100009910>] init+0x350/0x780
    sp=e0000002ff9f7e00 bsp=e0000002ff9f0ba8
    [<a000000100011d30>] kernel_thread_helper+0x30/0x60
    sp=e0000002ff9f7e30 bsp=e0000002ff9f0b80
    [<a0000001000090c0>] start_kernel_thread+0x20/0x40
    sp=e0000002ff9f7e30 bsp=e0000002ff9f0b80
    WARNING at lib/kobject.c:172 kobject_init()

    Call Trace:
    [<a0000001000137c0>] show_stack+0x40/0xa0
    sp=e0000002ff9f7b40 bsp=e0000002ff9f0db0
    [<a000000100013850>] dump_stack+0x30/0x60
    sp=e0000002ff9f7d10 bsp=e0000002ff9f0d98
    [<a000000100407bb0>] kobject_init+0x90/0x160
    sp=e0000002ff9f7d10 bsp=e0000002ff9f0d70
    [<a0000001005ae080>] device_initialize+0x40/0x1c0
    sp=e0000002ff9f7d20 bsp=e0000002ff9f0d50
    [<a0000001005b88c0>] platform_device_register+0x20/0x60
    sp=e0000002ff9f7d50 bsp=e0000002ff9f0d30
    [<a00000010058ac00>] ipmi_register_smi+0xcc0/0x18e0
    sp=e0000002ff9f7d50 bsp=e0000002ff9f0c90
    [<a000000100592600>] try_smi_init+0xc60/0x11e0
    sp=e0000002ff9f7dd0 bsp=e0000002ff9f0c50
    [<a000000100594900>] init_ipmi_si+0xaa0/0x12e0
    sp=e0000002ff9f7de0 bsp=e0000002ff9f0bd8
    [<a000000100009910>] init+0x350/0x780
    sp=e0000002ff9f7e00 bsp=e0000002ff9f0ba8
    [<a000000100011d30>] kernel_thread_helper+0x30/0x60
    sp=e0000002ff9f7e30 bsp=e0000002ff9f0b80
    [<a0000001000090c0>] start_kernel_thread+0x20/0x40
    sp=e0000002ff9f7e30 bsp=e0000002ff9f0b80

    The root cause is the device struct is initialized twice.

    If the device is allocated dynamically by platform_device_alloc,
    platform_device_alloc will initialize struct device, then,
    platform_device_add should be used to register the device.

    The difference between platform_device_register and platform_device_add is
    platform_device_register will initiate the device while platform_device_add
    won't.

    Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
    Cc: Corey Minyard <minyard@acm.org>
    Cc: Greg KH <greg@kroah.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>

    Zhang, Yanmin
     

13 Nov, 2006

1 commit


09 Nov, 2006

2 commits


12 Oct, 2006

1 commit


01 Oct, 2006

1 commit

  • This patch adds the ability to register for a command per-channel in the
    IPMI driver.

    If your BMC supports multiple channels, incoming messages can be useful to
    have the ability to register to receive commands on a specific channel
    instead the current behaviour of all channels.

    Signed-off-by: David Barksdale
    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     

02 Sep, 2006

1 commit

  • Olaf Kirch of SuSE tracked down a problem where module unloads of the IPMI
    driver would occasionally result in Oopses. He tracked that down to a
    variable that wasn't always initialized properly in some situations. This
    patch initializes that variable. Olaf sent a patch that kzalloc-ed the
    data, but this structure is large enough that I would perfer to not do
    that. Thanks Olaf!

    Signed-off-by: Corey Minyard
    Cc: Olaf Kirch
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     

01 Jul, 2006

1 commit


29 Jun, 2006

1 commit


28 Jun, 2006

1 commit


27 Jun, 2006

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial:
    typo fixes
    Clean up 'inline is not at beginning' warnings for usb storage
    Storage class should be first
    i386: Trivial typo fixes
    ixj: make ixj_set_tone_off() static
    spelling fixes
    fix paniced->panicked typos
    Spelling fixes for Documentation/atomic_ops.txt
    move acknowledgment for Mark Adler to CREDITS
    remove the bouncing email address of David Campbell

    Linus Torvalds
     
  • This patch converts the combination of list_del(A) and list_add(A, B) to
    list_move(A, B) under drivers/.

    Acked-by: Corey Minyard
    Cc: Ben Collins
    Acked-by: Roland Dreier
    Cc: Alasdair Kergon
    Cc: Gerd Knorr
    Cc: Paul Mackerras
    Cc: Frank Pavlic
    Acked-by: Matthew Wilcox
    Cc: Andrew Vasquez
    Cc: Mikael Starvik
    Cc: Greg Kroah-Hartman
    Signed-off-by: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     
  • In a testament to the utter simplicity and logic of the English
    language ;-), I found a single correct use - in kernel/panic.c - and
    10-15 incorrect ones.

    Signed-Off-By: Lee Revell
    Signed-off-by: Adrian Bunk

    Lee Revell
     

11 Apr, 2006

1 commit

  • The event handler mechanism in the IPMI driver had a limit on the number of
    received events, but the counts were not being updated. Update the counts
    to impose a limit. This is not a critical fix, as this function (the
    sending of the events) has to be turned on by the user, anyway. This
    avoids problems if they forget to turn it back off.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     

01 Apr, 2006

3 commits

  • Convert the remaining semaphores to mutexes in the IPMI driver. The
    watchdog was using a semaphore as a real semaphore (for IPC), so the
    conversion there required adding a completion.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Tidy up various coding standard things, mostly removing the space after !,
    but also break some long lines and fix a few other spacing inconsistencies.
    Also fixes some bad error reporting when deleting an IPMI user.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Matt Domsch noticed a startup race with the IPMI kernel thread, it was
    possible (though extraordinarly unlikely) that a message could come in
    before the upper layer was ready to handle it. This patch splits the
    startup processing of an IPMI interface into two parts, one to get ready
    and one to actually start the processes to receive messages from the
    interface.

    [akpm@osdl.org: cleanups]
    Signed-off-by: Corey Minyard
    Cc: Matt Domsch
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     

28 Mar, 2006

1 commit

  • The kernel's implementation of notifier chains is unsafe. There is no
    protection against entries being added to or removed from a chain while the
    chain is in use. The issues were discussed in this thread:

    http://marc.theaimsgroup.com/?l=linux-kernel&m=113018709002036&w=2

    We noticed that notifier chains in the kernel fall into two basic usage
    classes:

    "Blocking" chains are always called from a process context
    and the callout routines are allowed to sleep;

    "Atomic" chains can be called from an atomic context and
    the callout routines are not allowed to sleep.

    We decided to codify this distinction and make it part of the API. Therefore
    this set of patches introduces three new, parallel APIs: one for blocking
    notifiers, one for atomic notifiers, and one for "raw" notifiers (which is
    really just the old API under a new name). New kinds of data structures are
    used for the heads of the chains, and new routines are defined for
    registration, unregistration, and calling a chain. The three APIs are
    explained in include/linux/notifier.h and their implementation is in
    kernel/sys.c.

    With atomic and blocking chains, the implementation guarantees that the chain
    links will not be corrupted and that chain callers will not get messed up by
    entries being added or removed. For raw chains the implementation provides no
    guarantees at all; users of this API must provide their own protections. (The
    idea was that situations may come up where the assumptions of the atomic and
    blocking APIs are not appropriate, so it should be possible for users to
    handle these things in their own way.)

    There are some limitations, which should not be too hard to live with. For
    atomic/blocking chains, registration and unregistration must always be done in
    a process context since the chain is protected by a mutex/rwsem. Also, a
    callout routine for a non-raw chain must not try to register or unregister
    entries on its own chain. (This did happen in a couple of places and the code
    had to be changed to avoid it.)

    Since atomic chains may be called from within an NMI handler, they cannot use
    spinlocks for synchronization. Instead we use RCU. The overhead falls almost
    entirely in the unregister routine, which is okay since unregistration is much
    less frequent that calling a chain.

    Here is the list of chains that we adjusted and their classifications. None
    of them use the raw API, so for the moment it is only a placeholder.

    ATOMIC CHAINS
    -------------
    arch/i386/kernel/traps.c: i386die_chain
    arch/ia64/kernel/traps.c: ia64die_chain
    arch/powerpc/kernel/traps.c: powerpc_die_chain
    arch/sparc64/kernel/traps.c: sparc64die_chain
    arch/x86_64/kernel/traps.c: die_chain
    drivers/char/ipmi/ipmi_si_intf.c: xaction_notifier_list
    kernel/panic.c: panic_notifier_list
    kernel/profile.c: task_free_notifier
    net/bluetooth/hci_core.c: hci_notifier
    net/ipv4/netfilter/ip_conntrack_core.c: ip_conntrack_chain
    net/ipv4/netfilter/ip_conntrack_core.c: ip_conntrack_expect_chain
    net/ipv6/addrconf.c: inet6addr_chain
    net/netfilter/nf_conntrack_core.c: nf_conntrack_chain
    net/netfilter/nf_conntrack_core.c: nf_conntrack_expect_chain
    net/netlink/af_netlink.c: netlink_chain

    BLOCKING CHAINS
    ---------------
    arch/powerpc/platforms/pseries/reconfig.c: pSeries_reconfig_chain
    arch/s390/kernel/process.c: idle_chain
    arch/x86_64/kernel/process.c idle_notifier
    drivers/base/memory.c: memory_chain
    drivers/cpufreq/cpufreq.c cpufreq_policy_notifier_list
    drivers/cpufreq/cpufreq.c cpufreq_transition_notifier_list
    drivers/macintosh/adb.c: adb_client_list
    drivers/macintosh/via-pmu.c sleep_notifier_list
    drivers/macintosh/via-pmu68k.c sleep_notifier_list
    drivers/macintosh/windfarm_core.c wf_client_list
    drivers/usb/core/notify.c usb_notifier_list
    drivers/video/fbmem.c fb_notifier_list
    kernel/cpu.c cpu_chain
    kernel/module.c module_notify_list
    kernel/profile.c munmap_notifier
    kernel/profile.c task_exit_notifier
    kernel/sys.c reboot_notifier_list
    net/core/dev.c netdev_chain
    net/decnet/dn_dev.c: dnaddr_chain
    net/ipv4/devinet.c: inetaddr_chain

    It's possible that some of these classifications are wrong. If they are,
    please let us know or submit a patch to fix them. Note that any chain that
    gets called very frequently should be atomic, because the rwsem read-locking
    used for blocking chains is very likely to incur cache misses on SMP systems.
    (However, if the chain's callout routines may sleep then the chain cannot be
    atomic.)

    The patch set was written by Alan Stern and Chandra Seetharaman, incorporating
    material written by Keith Owens and suggestions from Paul McKenney and Andrew
    Morton.

    [jes@sgi.com: restructure the notifier chain initialization macros]
    Signed-off-by: Alan Stern
    Signed-off-by: Chandra Seetharaman
    Signed-off-by: Jes Sorensen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Stern
     

27 Mar, 2006

2 commits

  • Need to increment the version number because of the new PCI and sysfs
    capabilities of the driver. People maintaining things for distros have
    asked that I do this after interface or major functional changes.

    Signed-off-by: Corey Minyard
    Acked-by: Matt Domsch
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Add full driver model support for the IPMI driver. It links in the proper
    bus and device support.

    It adds an "ipmi" driver interface that has each BMC discovered by the
    driver (as a device). These BMCs appear in the devices/platform directory.
    If there are multiple interfaces to the same BMC, the driver should
    discover this and will only have one BMC entry. The BMC entry will have
    pointers to each interface device that connects to it.

    The device information (statistics and config information) has not yet been
    ported over to the driver model from proc, that will come later.

    This work was based on work by Yani Ioannou. I basically rewrote it using
    that code as a guide, but he still deserves credit :).

    [bunk@stusta.de: make ipmi_find_bmc_guid() static]
    Signed-off-by: Corey Minyard
    Signed-off-by: Yani Ioannou
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     

26 Mar, 2006

1 commit


04 Feb, 2006

1 commit

  • While looking to the report by Coverity in ipmi, I came across the
    following issue:

    The IPMI message handler relies on two defines which are the same -one in
    include/linux/ipmi.h
    #define IPMI_NUM_CHANNELS 0x10
    and one in drivers/char/ipmi/ipmi_msghandler.
    #define IPMI_MAX_CHANNELS 16
    These are used interchangeably in ipmi_msghandler.c, but since the array
    addr->channels[] is of size IPMI_MAX_CHANNELS, I have made a patch that
    uses IPMI_MAX_CHANNELS for all the checks for the array index.

    NOTE: You could probably remove the line that defines IPMI_NUM_CHANNELS
    from ipmi.h, or move IPMI_MAX_CHANNELS to ipmi.h

    Signed-off-by: Jayachandran C.
    Cc: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jayachandran C
     

11 Jan, 2006

1 commit

  • ...
    CC [M] drivers/char/ipmi/ipmi_msghandler.o
    drivers/char/ipmi/ipmi_msghandler.c:3301: `proc_ipmi_root' undeclared here (not in a function)
    drivers/char/ipmi/ipmi_msghandler.c:3301: initializer element is not constant
    drivers/char/ipmi/ipmi_msghandler.c:3301: (near initialization for `__ksymtab_proc_ipmi_root.value')
    drivers/char/ipmi/ipmi_msghandler.c:1535: warning: `ipmb_file_read_proc' defined but not used
    drivers/char/ipmi/ipmi_msghandler.c:1551: warning: `version_file_read_proc' defined but not used
    drivers/char/ipmi/ipmi_msghandler.c:1561: warning: `stat_file_read_proc' defined but not used
    ...
    CC [M] drivers/char/ipmi/ipmi_poweroff.o
    drivers/char/ipmi/ipmi_poweroff.c: In function `ipmi_poweroff_init':
    drivers/char/ipmi/ipmi_poweroff.c:616: warning: implicit declaration of function `unregister_sysctl_table'
    drivers/char/ipmi/ipmi_poweroff.c:616: `ipmi_table_header' undeclared (first use in this function)
    drivers/char/ipmi/ipmi_poweroff.c:616: (Each undeclared identifier is reported only once
    drivers/char/ipmi/ipmi_poweroff.c:616: for each function it appears in.)

    Signed-off-by: Adrian Bunk
    Cc: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

07 Jan, 2006

1 commit


13 Dec, 2005

1 commit

  • The IPMI specifcation says the generator ID is 0x20, but that is for bits
    7-1. Bit 0 is set to specify it is a software event. The correct value is
    0x41. Without this fix, panic events written into the System Event Log
    appear to come from an "unknown" generator, rather than from the kernel.

    Signed-off-by: Jordan Hargrave
    Signed-off-by: Matt Domsch
    Acked-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Domsch
     

16 Nov, 2005

1 commit

  • Lots of good changes to the driver lately that userspace will care about
    the version of the driver. Bump the version from 36.0 to 38.0 to be higher
    than 37 that the 2.4 driver came out with a few weeks ago which doesn't
    have all the same changes.

    Signed-off-by: Matt Domsch
    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard