1. 08 Jan, 2014 22 commits
  2. 24 Dec, 2013 2 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-3.14b' of... · a6e8e3a4
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-3.14b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      2nd round of new IIO drivers, features and cleanups for the 3.14 cycle.
      
      New drivers
      
      * HID inclinometer driver.
      
      * DHT11 humidity driver.  Note that previous humidity drivers have been in
        hwmon, but no one was ever entirely happy with that, and they should find
        a more comfortable home in IIO (their original placement in hwmon was my
        fault - oops).  As this is our first humidity driver, core support is also
        added.
      
      New features
      
      * Two of mxs-lradc channels are internally wired to a temperature sensor,
        make this explicit in the driver by providing the relevant temperature
        channel.
      
      * Add support for blocking IO on buffers.
      
      * Add a data_available call back to the interface between buffer implementations
        and the core.  This is much cleaner than the old, 'stufftoread' flag.
        Implemented in the kfifo buffer.
      
      Cleanups
      
      * Last user of the old event configuration interface is converted and the
        old interface dropped.  Nice to be rid of this thanks to Lars-Peter's hard
        work!
      
      * Replace all remaining instances of the IIO_ST macro with explicit filling
        of the scan_type structure within struct iio_chan_spec.  This macro was a
        bad idea, that rapidly ceased to cover all elements of the structure.
        Miss reading of the macro arguements has led to a number of bugs so lets
        just get rid of it. The final removal patch is awaiting for some fixes
        to make their way into mainline.
        In a couple of drivers, no elements of scan_type were even being used so
        in those case, it has been dropped entirely.
      
      * Drop a couple of of_match_ptr helper uses in drivers where devicetree is
        not optional and hence the structures being protected by this always exist.
      
      * Fix up some cases where data was read from a device in a particular
        byte order, but he code placed it into a s16 or similar.  These were
        highlighted by Sparse.
      
      * Use the new ATTRIBUTE_GROUPS macro to drop some boiler plate in the triggers
        core code.
      
      * ad7746 and ad7280a - stop storing buffers on the stack, giving cleaner code
        and possibly avoiding issues with i2c bus drivers that assume they can dma
        directly into the buffer.  Note that this cannot currently happen as the the
        i2c_smbus_read_i2c_block_data function has a memcpy from the buffer actually
        passed to the bus driver.  I missed this element of the commit message
        and don't think it is major enough to rebase the iio tree.
      
      * ad5791 and ad5504 stop storing buffers on the stack for an SPI driver.
        Unlike the i2c drivers, this is a real issue for SPI drivers which can dma
        directly into the buffer supplied.
      a6e8e3a4
    • Greg Kroah-Hartman's avatar
      Merge 3.13-rc5 into staging-next · 912cbd49
      Greg Kroah-Hartman authored
      This resolves a merge issue with drivers/staging/imx-drm/imx-drm-core.c
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      912cbd49
  3. 22 Dec, 2013 9 commits
  4. 21 Dec, 2013 3 commits
    • Benjamin LaHaise's avatar
      aio/migratepages: make aio migrate pages sane · 8e321fef
      Benjamin LaHaise authored
      The arbitrary restriction on page counts offered by the core
      migrate_page_move_mapping() code results in rather suspicious looking
      fiddling with page reference counts in the aio_migratepage() operation.
      To fix this, make migrate_page_move_mapping() take an extra_count parameter
      that allows aio to tell the code about its own reference count on the page
      being migrated.
      
      While cleaning up aio_migratepage(), make it validate that the old page
      being passed in is actually what aio_migratepage() expects to prevent
      misbehaviour in the case of races.
      Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
      8e321fef
    • Benjamin LaHaise's avatar
      aio: fix kioctx leak introduced by "aio: Fix a trinity splat" · 1881686f
      Benjamin LaHaise authored
      e34ecee2 reworked the percpu reference
      counting to correct a bug trinity found.  Unfortunately, the change lead
      to kioctxes being leaked because there was no final reference count to
      put.  Add that reference count back in to fix things.
      Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
      Cc: stable@vger.kernel.org
      1881686f
    • Linus Torvalds's avatar
      Don't set the INITRD_COMPRESS environment variable automatically · b7000ade
      Linus Torvalds authored
      Commit 1bf49dd4 ("./Makefile: export initial ramdisk compression
      config option") started setting the INITRD_COMPRESS environment variable
      depending on which decompression models the kernel had available.
      
      That is completely broken.
      
      For example, we by default have CONFIG_RD_LZ4 enabled, and are able to
      decompress such an initrd, but the user tools to *create* such an initrd
      may not be availble.  So trying to tell dracut to generate an
      lz4-compressed image just because we can decode such an image is
      completely inappropriate.
      
      Cc: J P <ppandit@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Jan Beulich <JBeulich@suse.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b7000ade
  5. 20 Dec, 2013 4 commits
    • Linus Torvalds's avatar
      Merge tag 'xfs-for-linus-v3.13-rc5' of git://oss.sgi.com/xfs/xfs · a6ddeee3
      Linus Torvalds authored
      Pull xfs bugfixes from Ben Myers:
       "This contains fixes for some asserts
         related to project quotas, a memory leak, a hang when disabling group or
         project quotas before disabling user quotas, Dave's email address, several
         fixes for the alignment of file allocation to stripe unit/width geometry, a
         fix for an assertion with xfs_zero_remaining_bytes, and the behavior of
         metadata writeback in the face of IO errors.
      
         Details:
         - fix memory leak in xfs_dir2_node_removename
         - fix quota assertion in xfs_setattr_size
         - fix quota assertions in xfs_qm_vop_create_dqattach
         - fix for hang when disabling group and project quotas before
           disabling user quotas
         - fix Dave Chinner's email address in MAINTAINERS
         - fix for file allocation alignment
         - fix for assertion in xfs_buf_stale by removing xfsbdstrat
         - fix for alignment with swalloc mount option
         - fix for "retry forever" semantics on IO errors"
      
      * tag 'xfs-for-linus-v3.13-rc5' of git://oss.sgi.com/xfs/xfs:
        xfs: abort metadata writeback on permanent errors
        xfs: swalloc doesn't align allocations properly
        xfs: remove xfsbdstrat error
        xfs: align initial file allocations correctly
        MAINTAINERS: fix incorrect mail address of XFS maintainer
        xfs: fix infinite loop by detaching the group/project hints from user dquot
        xfs: fix assertion failure at xfs_setattr_nonsize
        xfs: fix false assertion at xfs_qm_vop_create_dqattach
        xfs: fix memory leak in xfs_dir2_node_removename
      a6ddeee3
    • Olof Johansson's avatar
      mm: fix build of split ptlock code · 40b64acd
      Olof Johansson authored
      Commit 597d795a ('mm: do not allocate page->ptl dynamically, if
      spinlock_t fits to long') restructures some allocators that are compiled
      even if USE_SPLIT_PTLOCKS arn't used.  It results in compilation
      failure:
      
        mm/memory.c:4282:6: error: 'struct page' has no member named 'ptl'
        mm/memory.c:4288:12: error: 'struct page' has no member named 'ptl'
      
      Add in the missing ifdef.
      
      Fixes: 597d795a ('mm: do not allocate page->ptl dynamically, if spinlock_t fits to long')
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
      Cc: Hugh Dickins <hughd@google.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      40b64acd
    • Linus Torvalds's avatar
      Merge tag 'arc-fixes-for-3.13-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 4773ef22
      Linus Torvalds authored
      Pull ARC fix from Vineet Gupta:
       "Fix busted syscall table due to unistd header inclusion issue"
      
      * tag 'arc-fixes-for-3.13-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: Allow conditional multiple inclusion of uapi/asm/unistd.h
      4773ef22
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · a81ce79b
      Linus Torvalds authored
      Pull arm64 ptrace fix from Catalin Marinas.
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: ptrace: avoid using HW_BREAKPOINT_EMPTY for disabled events
      a81ce79b