Permalink
Switch branches/tags
Commits on Mar 7, 2010
  1. vsprintf: move %pR resource printf_specs off the stack

    Bjorn Helgaas committed with torvalds Mar 5, 2010
    This adds separate I/O and memory specs, so we don't have to change the
    field width in a shared spec, which then lets us make all the specs const
    and static, since they never change.
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  2. vsprintf: clarify comments for printf_spec flags

    Bjorn Helgaas committed with torvalds Mar 5, 2010
    Add clues about what the SMALL and SPECIAL flags do.
    
    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  3. vsprintf.c: Reduce sizeof struct printf_spec from 24 to 8 bytes

    JoePerches committed with torvalds Mar 7, 2010
    Reducing the size of struct printf_spec is a good thing because multiple
    instances are commonly passed on stack.
    
    It's possible for type to be u8 and field_width to be s8, but this is
    likely small enough for now.
    
    Signed-off-by: Joe Perches <joe@perches.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  4. usbfs: fix deadlock on 'usbfs_mutex', clean up poll

    torvalds committed Mar 7, 2010
    The caller of usbfs_conn_disc_event() in some cases (but not always)
    already holds usbfs_mutex, so trying to protect the event counter with
    that lock causes nasty deadlocks.
    
    The problem was introduced by commit 554f769 ("USB: Remove BKL from
    poll()") when the BLK protection was turned into using the mutex instead.
    
    So fix this by using an atomic variable instead.  And while we're at it,
    get rid of the atrocious naming of said variable and the waitqueue it is
    associated with.
    
    This also cleans up the unnecessary locking in the poll routine, since
    the whole point of how the pollwait table works is that you can just add
    yourself to the waiting list, and then check the condition you're
    waiting for afterwards - avoiding all races.
    
    It also gets rid of the unnecessary dynamic allocation of the device
    status that just contained a single word.  We should use f_version for
    this, as Dmitry Torokhov points out.  That simplifies everything
    further.
    
    Reported-and-tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
    Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
    Acked-by: Alan Stern <stern@rowland.harvard.edu>
    Cc: Oliver Neukum <oliver@neukum.org>
    Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Mar 6, 2010
  1. Merge git://git.kernel.org/pub/scm/linux/kernel/git/joern/logfs

    torvalds committed Mar 6, 2010
    * git://git.kernel.org/pub/scm/linux/kernel/git/joern/logfs:
      [LogFS] Change magic number
      [LogFS] Remove h_version field
      [LogFS] Check feature flags
      [LogFS] Only write journal if dirty
      [LogFS] Fix bdev erases
      [LogFS] Silence gcc
      [LogFS] Prevent 64bit divisions in hash_index
      [LogFS] Plug memory leak on error paths
      [LogFS] Add MAINTAINERS entry
      [LogFS] add new flash file system
    
    Fixed up trivial conflict in lib/Kconfig, and a semantic conflict in
    fs/logfs/inode.c introduced by write_inode() being changed to use
    writeback_control' by commit a9185b4
    ("pass writeback_control to ->write_inode")
  2. Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm

    torvalds committed Mar 6, 2010
    * git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm:
      dm raid1: fix deadlock when suspending failed device
      dm: eliminate some holes data structures
      dm ioctl: introduce flag indicating uevent was generated
      dm: free dm_io before bio_endio not after
      dm table: remove unused dm_get_device range parameters
      dm ioctl: only issue uevent on resume if state changed
      dm raid1: always return error if all legs fail
      dm mpath: refactor pg_init
      dm mpath: wait for pg_init completion when suspending
      dm mpath: hold io until all pg_inits completed
      dm mpath: avoid storing private suspended state
      dm: document when snapshot has finished merging
      dm table: remove dm_get from dm_table_get_md
      dm mpath: skip activate_path for failed paths
      dm mpath: pass struct pgpath to pg init done
  3. Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/…

    torvalds committed Mar 6, 2010
    …kernel/git/jdelvare/staging
    
    * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: (23 commits)
      hwmon: Remove the deprecated adt7473 driver
      hwmon: Fix off-by-one kind values
      hwmon: (tmp421) Fix temperature conversions
      hwmon: (tmp421) Restore missing inputs
      hwmon: Driver for Andigilog aSC7621 family monitoring chips
      hwmon: (adt7411) Improve locking
      hwmon: Add driver for ADT7411 voltage and temperature sensor
      hwmon: (w83793) Add watchdog functionality
      hwmon: (g760a) Make rpm_from_cnt static
      hwmon: (it87) Validate auto pwm settings
      hwmon: (it87) Add support for old automatic fan speed control
      hwmon: (it87) Drop dead web links in documentation
      hwmon: (it87) Add an entry in MAINTAINERS
      hwmon: (it87) Use strict_strtol instead of simple_strtol
      hwmon: (it87) Fix many checkpatch errors and warnings
      hwmon: (it87) Add support for beep on alarm
      hwmon: (it87) Create vid attributes by group
      hwmon: (it87) Refactor attributes creation and removal
      hwmon: (it87) Expose the PWM/temperature mappings
      hwmon: (it87) Display fan outputs in automatic mode as such
      ...
  4. Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs

    torvalds committed Mar 6, 2010
    * 'for-linus' of git://oss.sgi.com/xfs/xfs: (21 commits)
      xfs: return inode fork offset in bulkstat for fsr
      xfs: Increase the default size of the reserved blocks pool
      xfs: truncate delalloc extents when IO fails in writeback
      xfs: check for more work before sleeping in xfssyncd
      xfs: Fix a build warning in xfs_aops.c
      xfs: fix locking for inode cache radix tree tag updates
      xfs: remove xfs_ipin/xfs_iunpin
      xfs: cleanup xfs_iunpin_wait/xfs_iunpin_nowait
      xfs: kill xfs_lrw.h
      xfs: factor common xfs_trans_bjoin code
      xfs: stop passing opaque handles to xfs_log.c routines
      xfs: split xfs_bmap_btalloc
      xfs: fix xfs_fsblock_t tracing
      xfs: fix inode pincount check in fsync
      xfs: Non-blocking inode locking in IO completion
      xfs: implement optimized fdatasync
      xfs: remove wrapper for the fsync file operation
      xfs: remove wrappers for read/write file operations
      xfs: merge xfs_lrw.c into xfs_file.c
      xfs: fix dquota trace format
      ...
  5. Merge branch 'for-2.6.34' of git://linux-nfs.org/~bfields/linux

    torvalds committed Mar 6, 2010
    * 'for-2.6.34' of git://linux-nfs.org/~bfields/linux: (22 commits)
      nfsd4: fix minor memory leak
      svcrpc: treat uid's as unsigned
      nfsd: ensure sockets are closed on error
      Revert "sunrpc: move the close processing after do recvfrom method"
      Revert "sunrpc: fix peername failed on closed listener"
      sunrpc: remove unnecessary svc_xprt_put
      NFSD: NFSv4 callback client should use RPC_TASK_SOFTCONN
      xfs_export_operations.commit_metadata
      commit_metadata export operation replacing nfsd_sync_dir
      lockd: don't clear sm_monitored on nsm_reboot_lookup
      lockd: release reference to nsm_handle in nlm_host_rebooted
      nfsd: Use vfs_fsync_range() in nfsd_commit
      NFSD: Create PF_INET6 listener in write_ports
      SUNRPC: NFS kernel APIs shouldn't return ENOENT for "transport not found"
      SUNRPC: Bury "#ifdef IPV6" in svc_create_xprt()
      NFSD: Support AF_INET6 in svc_addsock() function
      SUNRPC: Use rpc_pton() in ip_map_parse()
      nfsd: 4.1 has an rfc number
      nfsd41: Create the recovery entry for the NFSv4.1 client
      nfsd: use vfs_fsync for non-directories
      ...
  6. Merge git://git.infradead.org/ubi-2.6

    torvalds committed Mar 6, 2010
    * git://git.infradead.org/ubi-2.6:
      UBI: add write checking
      UBI: simplify debugging return codes
      UBI: fix attaching error path
      UBI: support attaching by MTD character device name
      UBI: mark few variables as __initdata
  7. gpio: introduce it8761e_gpio driver for IT8761E Super I/O chip

    Denis Turischev committed with torvalds Mar 5, 2010
    Signed-off-by: Denis Turischev <denis@compulab.co.il>
    Cc: David Brownell <david-b@pacbell.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  8. gpio: cs5535-gpio: fix input direction

    bengardner committed with torvalds Mar 5, 2010
    The cs5535-gpio driver's get() function was returning the output value.
    This means that the GPIO pins would never work as an input, even if
    configured as an input.
    
    The driver should return the READ_BACK value, which is the sensed line
    value.  To make that work when the direction is 'output', INPUT_ENABLE
    needs to be set.
    
    In addition, the driver was not disabling OUTPUT_ENABLE when the direction
    is set to 'input'.  That would cause the GPIO to continue to drive the pin
    if the direction was ever set to output.
    
    This issue was noticed when attempting to use the gpiolib driver to read
    an external input.  I had previously been using the char/cs5535-gpio
    driver.
    
    Signed-off-by: Ben Gardner <gardner.ben@gmail.com>
    Acked-by: Andres Salomon <dilinger@collabora.co.uk>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: David Brownell <dbrownell@users.sourceforge.net>
    Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
    Cc: <stable@kernel.org>		[2.6.33.x]
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  9. gpio: pca953x.c: add interrupt handling capability

    mzyngier committed with torvalds Mar 5, 2010
    Most of the GPIO expanders controlled by the pca953x driver are able to
    report changes on the input pins through an *INT pin.
    
    This patch implements the irq_chip functionality (edge detection only).
    
    The driver has been tested on an Arcom Zeus.
    
    [akpm@linux-foundation.org: the compiler does inlining for us nowadays]
    Signed-off-by: Marc Zyngier <maz@misterjones.org>
    Cc: Eric Miao <eric.y.miao@gmail.com>
    Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
    Cc: David Brownell <david-b@pacbell.net>
    Cc: Nate Case <ncase@xes-inc.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  10. timbgpio: add support for interrupt triggering on both flanks

    Richard Röjfors committed with torvalds Mar 5, 2010
    Introduce support for triggering interrupts on both rising and falling
    edge.
    
    This feature requires version 3 or newer of the IP, a version check is
    done when triggering on both edges is requested.
    
    Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
    Cc: David Brownell <david-b@pacbell.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  11. gpio: introduce gpio_request_one() and friends

    ericmiao committed with torvalds Mar 5, 2010
    gpio_request() without initial configuration of the GPIO is normally
    useless, introduce gpio_request_one() together with GPIOF_ flags for
    input/output direction and initial output level.
    
    gpio_{request,free}_array() for multiple GPIOs.
    
    Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
    Cc: David Brownell <dbrownell@users.sourceforge.net>
    Cc: Ben Nizette <bn@niasdigital.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  12. pca953x: minor include cleanup

    olofj committed with torvalds Mar 5, 2010
    linux/i2c/pca953x.h is a very bare include file.  Fix check for multiple
    includes of linux/i2c/pca953x.h, and add dependent includes into the
    header file.
    
    Signed-off-by: Olof Johansson <olof@lixom.net>
    Acked-by: Wolfram Sang <w.sang@pengutronix.de>
    Acked-by: Jean Delvare <khali@linux-fr.org>
    Cc: David Brownell <david-b@pacbell.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  13. gpio: add driver for MAX7300 I2C GPIO extender

    Wolfram Sang committed with torvalds Mar 5, 2010
    Add the MAX7300-I2C variant of the MAX7301-SPI version.  Both chips share
    the same core logic, so the generic part of the in-kernel SPI-driver is
    refactored into a generic part.  The I2C and SPI specific funtions are
    then wrapped into seperate drivers picking up the generic part.
    
    Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
    Cc: Juergen Beisert <j.beisert@pengutronix.de>
    Cc: David Brownell <dbrownell@users.sourceforge.net>
    Cc: Jean Delvare <khali@linux-fr.org>
    Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
    Cc: Randy Dunlap <randy.dunlap@oracle.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  14. rtc-coh901331: fix braces in resume code

    amalon committed with torvalds Mar 5, 2010
    The else part of the if statement is indented but does not have braces
    around it. It clearly should since it uses clk_enable and clk_disable
    which are supposed to balance.
    
    Signed-off-by: James Hogan <james@albanarts.com>
    Acked-by: Linus Walleij <linus.walleij@stericsson.com>
    Acked-by: Alessandro Zummo <a.zummo@towertech.it>
    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  15. rtc/mc13783: implement alarm

    Uwe Kleine-König committed with torvalds Mar 5, 2010
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Cc: Valentin Longchamp <valentin.longchamp@epfl.ch>
    Cc: Sascha Hauer <s.hauer@pengutronix.de>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Cc: Luotao Fu <l.fu@pengutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  16. rtc/mc13783: protect rtc {,un}registration by mc13783 lock

    Uwe Kleine-König committed with torvalds Mar 5, 2010
    This is to protect from interrupt handlers using an unregistered rtc
    device.
    
    To assert that the reset irq is considered now before the rtc is
    registered the corresponding status is checked before.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Cc: Valentin Longchamp <valentin.longchamp@epfl.ch>
    Cc: Sascha Hauer <s.hauer@pengutronix.de>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Cc: Luotao Fu <l.fu@pengutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  17. mfd/mc13783: new function reading irq mask and status register

    Uwe Kleine-König committed with torvalds Mar 5, 2010
    The driver for the mc13783 rtc needs to know if the TODA irq is pending.
    
    Instead of tracking in the rtc driver if the irq is enabled provide that
    information, too.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Cc: Valentin Longchamp <valentin.longchamp@epfl.ch>
    Cc: Sascha Hauer <s.hauer@pengutronix.de>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Cc: Luotao Fu <l.fu@pengutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  18. rtc/mc13783: don't use deprecated mc13783 API calls

    Uwe Kleine-König committed with torvalds Mar 5, 2010
    mc13783_ackirq, mc13783_unmask and mc13783_mask are deprecated, use the
    drop in replacements with the nicer names.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Cc: Valentin Longchamp <valentin.longchamp@epfl.ch>
    Cc: Sascha Hauer <s.hauer@pengutronix.de>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Cc: Luotao Fu <l.fu@pengutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  19. input/mc13783-ts: don't use deprecated mc13783 API calls

    Uwe Kleine-König committed with torvalds Mar 5, 2010
    mc13783_ackirq is deprecated, use the drop in replacement mc13783_irq_ack.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Cc: Valentin Longchamp <valentin.longchamp@epfl.ch>
    Cc: Sascha Hauer <s.hauer@pengutronix.de>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Acked-by: Dmitry Torokhov <dtor@mail.ru>
    Cc: Luotao Fu <l.fu@pengutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  20. mc13783: rename mc13783_{{un,}mask,ack_irq} to have a mc13783_irq prefix

    Uwe Kleine-König committed with torvalds Mar 5, 2010
    In the source file group these functions together.
    
    The mc13783 header file provides fallback implementations for the old
    names to prevent build failures.  When all users of the old names are
    fixed to use the new names these can go away.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Cc: Valentin Longchamp <valentin.longchamp@epfl.ch>
    Cc: Sascha Hauer <s.hauer@pengutronix.de>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
    Cc: Luotao Fu <l.fu@pengutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  21. rtc-core: fix memory leak

    aakoskin committed with torvalds Mar 5, 2010
    The idr should be destroyed when the module is unloaded. Found with
    kmemleak.
    
    Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
    Cc: Alessandro Zummo <a.zummo@towertech.it>
    Cc: stable <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  22. rtc-twl: Storage class should be before const qualifier

    tklauser committed with torvalds Mar 5, 2010
    The C99 specification states in section 6.11.5:
    
    The placement of a storage-class specifier other than at the beginning of
    the declaration specifiers in a declaration is an obsolescent feature.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  23. rtc-at91sam9: Correct size given to memset

    JuliaLawall committed with torvalds Mar 5, 2010
    Memset should be given the size of the structure, not the size of the
    pointer.
    
    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)
    
    // <smpl>
    @@
    type T;
    T *x;
    expression E;
    @@
    
    memset(x, E, sizeof(
    + *
     x))
    // </smpl>
    
    Signed-off-by: Julia Lawall <julia@diku.dk>
    Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  24. rtc-pcf2123: move pcf2123_remove to .devexit.text

    Uwe Kleine-König committed with torvalds Mar 5, 2010
    The function pcf2123_remove is used only wrapped by __devexit_p so define
    it using __devexit.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Christian Pellegrin <chripell@fsfe.org>
    Cc: Chris Verges <chrisv@cyberswitching.com>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  25. rtc-ep93xx.c: cleanup probe/remove routines

    H Hartley Sweeten committed with torvalds Mar 5, 2010
    Fix issue with rtc device not getting unregistered in probe error path.
    
    Use the devres managed resource functions in the probe routine to cleanup
    the error path.
    
    Use sysfs_{create/remove}_group to add/remove the sysfs files.
    
    Reduces the text size by 132 bytes, increases data by 12 bytes:
        text	   data	    bss	    dec	    hex	filename
    -    937	    124	      0	   1061	    425	rtc-ep93xx.o
    +    805	    136	      0	    941	    3ad	rtc-ep93xx.o
    
    Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
    Acked-by: Alessandro Zummo <a.zummo@towertech.it>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  26. rtc: mxc: fix memory leak

    alexb0 committed with torvalds Mar 5, 2010
    Free pdata before exit.  Found by cppcheck.
    
    [yuasa@linux-mips.org: add missing iounmap()]
    Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
    Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
    Acked-by: Daniel Mack <daniel@caiaq.de>
    Acked-by: Alessandro Zummo <a.zummo@towertech.it>
    Cc Yoichi Yuasa <yuasa@linux-mips.org>
    Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  27. xen: add kconfig menu

    Randy Dunlap committed with torvalds Mar 5, 2010
    Currently the xen support drivers are displayed in the main Device Drivers
    menu of the config tools instead of in their own sub-menu, so move them to
    their own sub-menu, like the rest of the driver world uses.
    
    This keeps the main Device Drivers menu from becoming messy.
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  28. console/vgacon.c: mark file-local symbol static

    Thiago Farina committed with torvalds Mar 5, 2010
    warning: symbol 'vgacon_text_mode_force' was not declared. Should it be static?
    
    Signed-off-by: Thiago Farina <tfransosi@gmail.com>
    Acked-by: Matthew Garrett <mjg@redhat.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  29. console: limit the range of VGACON_SOFT_SCROLLBACK_SIZE

    Amerigo Wang committed with torvalds Mar 5, 2010
    BuraphaLinux reported that we will trigger a mm warning when we
    CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=65536, this is because mm cann't
    allocate so many pages.  We should limit the range of
    CONFIG_VGACON_SOFT_SCROLLBACK_SIZE, don't give a user any chance to
    trigger that.
    
    Reported-by: BuraphaLinux Server <buraphalinuxserver@gmail.com>
    Tested-by: BuraphaLinux Server <buraphalinuxserver@gmail.com>
    Signed-off-by: WANG Cong <amwang@redhat.com>
    Cc: David S. Miller <davem@davemloft.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  30. coredump: suppress uid comparison test if core output files are pipes

    Neil Horman committed with torvalds Mar 5, 2010
    Modify uid check in do_coredump so as to not apply it in the case of
    pipes.
    
    This just got noticed in testing.  The end of do_coredump validates the
    uid of the inode for the created file against the uid of the crashing
    process to ensure that no one can pre-create a core file with different
    ownership and grab the information contained in the core when they
    shouldn' tbe able to.  This causes failures when using pipes for a core
    dumps if the crashing process is not root, which is the uid of the pipe
    when it is created.
    
    The fix is simple.  Since the check for matching uid's isn't relevant for
    pipes (a process can't create a pipe that the uermodehelper code will open
    anyway), we can just just skip it in the event ispipe is non-zero
    
    Reverts a pipe-affecting change which was accidentally made in
    
    : commit c46f739
    : Author:     Ingo Molnar <mingo@elte.hu>
    : AuthorDate: Wed Nov 28 13:59:18 2007 +0100
    : Commit:     Linus Torvalds <torvalds@woody.linux-foundation.org>
    : CommitDate: Wed Nov 28 10:58:01 2007 -0800
    :
    :     vfs: coredumping fix
    
    Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  31. coredump: set ->group_exit_code for other CLONE_VM tasks too

    utrace committed with torvalds Mar 5, 2010
    User visible change.
    
    do_coredump() kills all threads which share the same ->mm but only the
    coredumping process gets the proper exit_code.  Other tasks which share
    the same ->mm die "silently" and return status == 0 to parent.
    
    This is historical behaviour, not actually a bug.  But I think Frank
    Heckenbach rightly dislikes the current behaviour.  Simple test-case:
    
    	#include <stdio.h>
    	#include <unistd.h>
    	#include <signal.h>
    	#include <sys/wait.h>
    
    	int main(void)
    	{
    		int stat;
    
    		if (!fork()) {
    			if (!vfork())
    				kill(getpid(), SIGQUIT);
    		}
    
    		wait(&stat);
    		printf("stat=%x\n", stat);
    		return 0;
    	}
    
    Before this patch it prints "stat=0" despite the fact the child was killed
    by SIGQUIT.  After this patch the output is "stat=3" which obviously makes
    more sense.
    
    Even with this patch, only the task which originates the coredumping gets
    "|= 0x80" if the core was actually dumped, but at least the coredumping
    signal is visible to do_wait/etc.
    
    Reported-by: Frank Heckenbach <f.heckenbach@fh-soft.de>
    Signed-off-by: Oleg Nesterov <oleg@redhat.com>
    Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
    Cc: Roland McGrath <roland@redhat.com>
    Cc: Neil Horman <nhorman@tuxdriver.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>