Skip to content
  1. Oct 20, 2012
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging · e80bd270
      Linus Torvalds authored
      Pull hwmon fixes from Guenter Roeck:
       "Drop some leftover dependencies on CONFIG_EXPERIMENTAL, and add
        support for Intel Atom CE4110/4150/4170."
      
      * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (coretemp) Add support for Atom CE4110/4150/4170
        Documentation/hwmon: remove CONFIG_EXPERIMENTAL
        hwmon: (pmbus) remove CONFIG_EXPERIMENTAL
      e80bd270
    • Linus Torvalds's avatar
      Merge tag 'tty-3.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · ccfc2730
      Linus Torvalds authored
      
      
      Pull TTY fixes from Greg Kroah-Hartman:
       "Here are some tty and serial driver fixes for your 3.7-rc1 tree.
      
        Again, the UABI header file fixes, and a number of build and runtime
        serial driver bugfixes that solve problems people have been reporting
        (the staging driver is a tty driver, hence the fixes coming in through
        this tree.)
      
        All of these have been in the linux-next tree for a while.
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org&gt;">
      
      * tag 'tty-3.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        staging: dgrp: check return value of alloc_tty_driver
        staging: dgrp: check for NULL pointer in (un)register_proc_table
        serial/8250_hp300: Missing 8250 register interface conversion bits
        UAPI: (Scripted) Disintegrate include/linux/hsi
        tty: serial: sccnxp: Fix bug with unterminated platform_id list
        staging: serial: dgrp: Add missing #include <linux/uaccess.h>
        serial: sccnxp: Allows the driver to be compiled as a module
        tty: Fix bogus "callbacks suppressed" messages
        net, TTY: initialize tty->driver_data before usage
      ccfc2730
    • Linus Torvalds's avatar
      Merge tag 'usb-3.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 42bf3e27
      Linus Torvalds authored
      
      
      Pull USB fixes from Greg Kroah-Hartman:
       "Here are the USB patches against your 3.7-rc1 tree.
      
        There are the usual UABI header file movements, and we finally are now
        able to remove the dbg() macro that is over 15 years old (that had to
        wait for after some other trees got merged into yours during the big
        3.7-rc1 merge window.)
      
        Other than that, nothing major, just a number of bugfixes and new
        device ids.  It turns out that almost all of the usb-serial drivers
        had bugs in how they were handling their internal data, leaking
        memory, hence all of those fixups.
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org&gt;">
      
      * tag 'usb-3.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (42 commits)
        USB: option: add more ZTE devices
        USB: option: blacklist net interface on ZTE devices
        usb: host: xhci: New system added for Compliance Mode Patch on SN65LVPE502CP
        USB: io_ti: fix sysfs-attribute creation
        USB: iuu_phoenix: fix sysfs-attribute creation
        USB: spcp8x5: fix port-data memory leak
        USB: ssu100: fix port-data memory leak
        USB: ti_usb_3410_5052: fix port-data memory leak
        USB: oti6858: fix port-data memory leak
        USB: iuu_phoenix: fix port-data memory leak
        USB: kl5kusb105: fix port-data memory leak
        USB: io_ti: fix port-data memory leak
        USB: keyspan_pda: fix port-data memory leak
        USB: f81232: fix port-data memory leak
        USB: io_edgeport: fix port-data memory leak
        USB: kobil_sct: fix port-data memory leak
        USB: cypress_m8: fix port-data memory leak
        usb: acm: fix the computation of the number of data bits
        usb: Missing dma_mask in ehci-vt8500.c when probed from device-tree
        usb: Missing dma_mask in uhci-platform.c when probed from device-tree
        ...
      42bf3e27
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel · fb06de04
      Linus Torvalds authored
      Pull hexagon updates from Richard Kuo:
       "It includes the Hexagon UAPI changes from David Howells and some CR
        marking changes for the transition from Code Aurora to Linux
        Foundation."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel:
        Hexagon: Copyright marking changes
        UAPI: (Scripted) Disintegrate arch/hexagon/include/asm
      fb06de04
    • Linus Torvalds's avatar
      Merge tag 'parisc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6 · 22054fbe
      Linus Torvalds authored
      
      
      Pull PARISC changes from James Bottomley:
       "This is a couple of high code motion patches (all within arch/parisc)
        I'd like to apply at -rc1 to avoid conflicts with anything else.  One
        moves us on to the generated instead of included asm file model and
        the other is a pull request from David Howells for UAPI
        disintegration.
      
      Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com&gt;">
      
      * tag 'parisc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6:
        UAPI: (Scripted) Disintegrate arch/parisc/include/asm
        [PARISC] asm: redo generic includes
      22054fbe
    • Rafael J. Wysocki's avatar
      MAINTAINERS: Add Rafael's address to ACPI maintainers · ea26d0cf
      Rafael J. Wysocki authored
      
      
      Since I will be maintaining ACPI together with Len from now on, add my
      address to the ACPI maintainers list in the MAINTAINERS file (this is
      the address to send patches to).
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: default avatarLen Brown <len.brown@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ea26d0cf
    • Linus Torvalds's avatar
      Merge branch 'for-3.7' of git://linux-nfs.org/~bfields/linux · 90cdb1a0
      Linus Torvalds authored
      Pull nfsd bugfixes from J Bruce Fields.
      
      * 'for-3.7' of git://linux-nfs.org/~bfields/linux:
        SUNRPC: Prevent kernel stack corruption on long values of flush
        NLM: nlm_lookup_file() may return NLMv4-specific error codes
      90cdb1a0
    • Ben Collins's avatar
      USB: ehci-fsl: Return valid error in ehci_fsl_setup_phy · d479c911
      Ben Collins authored
      ehci_fsl_setup_phy is supposed to return an int, but had a void return
      value in the case of controller_ver being invalid.
      
      Introduced by commit 3735ba8d
      
       ("powerpc/usb: fix bug of CPU hang
      when missing USB PHY clock"), which missed one return.
      
      Signed-off-by: default avatarBen Collins <ben.c@servergy.com>
      Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d479c911
    • James Bottomley's avatar
      Merge tag 'disintegrate-parisc-20121016' into for-linus · 6238559f
      James Bottomley authored
      
      
      UAPI Disintegration 2012-10-16
      
      Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
      6238559f
  2. Oct 19, 2012
    • Rusty Russell's avatar
      kbuild: sign the modules at install time · e2a666d5
      Rusty Russell authored
      
      
      Linus deleted the old code and put signing on the install command,
      I fixed it to extract the keyid and signer-name within sign-file
      and cleaned up that script now it always signs in-place.
      
      Some enthusiast should convert sign-key to perl and pull
      x509keyid into it.
      
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e2a666d5
    • Linus Torvalds's avatar
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · c9623de4
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
       "Media fixes for:
         - one Kconfig fix patch;
         - one patch fixing DocBook breakage due to the drivers/media UAPI
           changes;
         - the remaining UAPI media changes (DVB API).
      
        I'm aware that is is a little late for the UAPI renames for the DVB
        API, but IMHO, it is better to merge it for 3.7, due to two reasons:
      
         1) There is a major rename at 3.7 (not only uapi changes, but also
            the entire media drivers were reorganized on 3.7, in order to
            simplify the Kconfig logic, and easy drivers selection, especially
            for hybrid devices).  By confining all those renames there at 3.7
            it will cause all the harm at for media developers on just one
            shot.  Stable backports upstream and at distros will likely
            welcome it as well, as they won't need to check what changed on
            3.7 and what was postponed for on 3.8.
      
         2) The V4L2 DocBook Makefile creates a cross-reference between the
            media API headers and the specs.  This helps us _a_lot_ to be sure
            that all API improvements are properly documented.  Every time a
            header changes from one place to another, DocBook/media/Makefile
            needs to be patched.  Currently, the DocBook breakage patch
            depends on the DVB UAPI."
      
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        [media] Kconfig: Fix dependencies for driver autoselect options
        DocBook/media/Makefile: Fix build due to uapi breakage
        UAPI: (Scripted) Disintegrate include/linux/dvb
      c9623de4
    • Richard Kuo's avatar
      Hexagon: Copyright marking changes · e1858b2a
      Richard Kuo authored
      
      
      Code Aurora Forum (CAF) is becoming a part of Linux Foundation Labs.
      
      Signed-off-by: default avatarRichard Kuo <rkuo@codeaurora.org>
      e1858b2a
    • David Howells's avatar
    • Jussi Kivilinna's avatar
      crypto: aesni - fix XTS mode on x86-32, add wrapper function for asmlinkage aesni_enc() · 32bec973
      Jussi Kivilinna authored
      
      
      Calling convention for internal functions and 'asmlinkage' functions is
      different on x86-32. Therefore do not directly cast aesni_enc as XTS tweak
      function, but use wrapper function in between. Fixes crash with "XTS +
      aesni_intel + x86-32" combination.
      
      Cc: stable@vger.kernel.org
      Reported-by: default avatarKrzysztof Kolasa <kkolasa@winsoft.pl>
      Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
      Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      32bec973
    • David Rientjes's avatar
      fs, xattr: fix bug when removing a name not in xattr list · 43385846
      David Rientjes authored
      Commit 38f38657
      
       ("xattr: extract simple_xattr code from tmpfs") moved
      some code from tmpfs but introduced a subtle bug along the way.
      
      If the name passed to simple_xattr_remove() does not exist in the list of
      xattrs, then it is possible to call kfree(new_xattr) when new_xattr is
      actually initialized to itself on the stack via uninitialized_var().
      
      This causes a BUG() since the memory was not allocated via the slab
      allocator and was not bypassed through to the page allocator because it
      was too large.
      
      Initialize the local variable to NULL so the kfree() never takes place.
      
      Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
      Acked-by: default avatarHugh Dickins <hughd@google.com>
      Acked-by: default avatarAristeu Rozanski <aris@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      43385846
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · d63e210e
      Linus Torvalds authored
      Pull MIPS fixes from Ralf Baechle:
       "Random small fixes across the MIPS code."
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: CMP: Fix physical core number calculation logic
        MIPS: JZ4740: Forward declare struct uart_port in header.
        MIPS: JZ4740: Fix '#include guard' in serial.h
        MIPS: hugetlbfs: Fix hazard between tlb write and pagemask restoration.
        MIPS: Restore pagemask after dumping the TLB.
        MIPS: Hugetlbfs: Handle huge pages correctly in pmd_bad()
        MIPS: R5000: Fix TLB hazard handling.
        MIPS: tlbex: Deal with re-definition of label
        MIPS: Make __{,n,u}delay declarations match definitions and generic delay.h
      d63e210e
    • Linus Torvalds's avatar
      Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · a0a6a39e
      Linus Torvalds authored
      Pull powerpc fixes from Benjamin Herrenschmidt:
       "Here are a handful of powerpc related fixes."
      
      * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
        cpuidle/powerpc: Fix snooze state problem in the cpuidle design on pseries.
        cpuidle/powerpc: Fix smt_snooze_delay functionality.
        cpuidle/powerpc: Fix target residency initialisation in pseries cpuidle
        powerpc: Build fix for powerpc KVM
        Revert "powerpc/perf: Use pmc_overflow() to detect rolled back events"
      a0a6a39e
    • Linus Torvalds's avatar
      Merge tag 'dt-fixes-for-3.7' of git://sources.calxeda.com/kernel/linux · bab58350
      Linus Torvalds authored
      Pull DeviceTree fixes from Rob Herring:
       "A handful of fixes:
         - a fix for dtc from upstream
         - sparse fixes in DeviceTree code
         - stub of_get_child_by_name for !OF builds"
      
      * tag 'dt-fixes-for-3.7' of git://sources.calxeda.com/kernel/linux:
        dtc: fix for_each_*() to skip first object if deleted
        of/platform: sparse fix
        of/irq: sparse fixes
        of/address: sparse fixes
        of: add stub of_get_child_by_name for non-OF builds
      bab58350
    • Linus Torvalds's avatar
      Merge tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · ec351832
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Significant changes are:
         - A regression fix for the new HD-audio LPIB delay counting,
           VGA-switcheroo race fix
         - ASoC ams-delta fix for the broken driver loading
      
        Otherwise a collection of mostly small / trivial fixes."
      
      * tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: emu10k1: add chip details for E-mu 1010 PCIe card
        ALSA: hda - Always check array bounds in alc_get_line_out_pfx
        ASoC: bells: Correct typo in sub speaker DAI name for WM5110
        ALSA: hda - Stop LPIB delay counting on broken hardware
        ALSA: hda - Fix registration race of VGA switcheroo
        ALSA: hda - Clean up superfluous position_fix list entries
        ALSA: ac97 - Fix missing NULL check in snd_ac97_cvol_new()
        ASoC: codecs: da9055: Minor improvement in ALC calibration process
        ASoC: dmaengine: Correct Makefile when sound is built as module
        ASoC: fsi: don't reschedule DMA from an atomic context
        ASoC: fix documentation in soc-jack
        ARM: pxa: Fix build error caused by sram.h rename
        ASoC: wm2200: Fix non-inverted OUT2 mute control
        ASoC: wm2200: Use rev A register patches on rev B
        ASoC: bells: Correct typo in sub speaker DAI name for WM5110
        ASoC: ams-delta: Convert to use snd_soc_register_card()
        ASoC: omap-mcpdm: Remove OMAP revision check
        ASoC: Fix wrong include for McPDM
        ASoC: omap-abe-twl6040: Fix typo of Vibrator
        ASoC: twl6040: Fix Stream DAPM mapping
      ec351832
  3. Oct 18, 2012
    • Bjørn Mork's avatar
      USB: option: add more ZTE devices · 4b35f1c5
      Bjørn Mork authored
      
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4b35f1c5
    • Bjørn Mork's avatar
      USB: option: blacklist net interface on ZTE devices · 1452df6f
      Bjørn Mork authored
      
      
      Based on information from the ZTE Windows drivers.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1452df6f
    • Greg Kroah-Hartman's avatar
      Merge tag 'fixes-for-v3.7-rc2' of... · 6b7ced68
      Greg Kroah-Hartman authored
      Merge tag 'fixes-for-v3.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-linus
      
      usb: fixes for v3.7-rc2
      
      Here's the first set of fixes for v3.7-rc cycle.
      
      DesignWare Core USB3 Driver (dwc3) got two fixes. The first one fixes a long
      standing bug which would keep endpoint with BUSY flag set forever if we cancel
      a transfer which has already been started by the controller. The second fix
      will just switch PHYs back off when DWC3 driver is removed.
      
      MUSB fixed a bug which would cause a Kernel Oops at least on AM3517 when
      removing a device. For some reason that particular device can fall into a
      situation where you have both Disconnect and Endpoint IRQs happen
      simultaneously (have both bits set in IRQ_STATUS register) and, because
      Disconnect Interrupt is handled before Endpoint Interrupts, we would try to
      transfer data over a disconnected device, thus generating a kernel oops.
      
      Renensas' USB DRD driver got two fixes which are a) fixing an off-by-one bug on
      the pipe iterator implementation and b) fixing Interrupt Status Clear procedure
      in order to properly clear a single Interrupt event without clearing (and
      masking) other events we didn't handle yet.
      6b7ced68
    • Alexis R. Cortes's avatar
      usb: host: xhci: New system added for Compliance Mode Patch on SN65LVPE502CP · 47080974
      Alexis R. Cortes authored
      
      
      This minor change adds a new system to which the "Fix Compliance Mode
      on SN65LVPE502CP Hardware" patch has to be applied also.
      
      System added:
      Vendor: Hewlett-Packard. System Model: Z1
      
      Signed-off-by: default avatarAlexis R. Cortes <alexis.cortes@ti.com>
      Acked-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      47080974
    • Johan Hovold's avatar
      USB: io_ti: fix sysfs-attribute creation · 5d8c61bc
      Johan Hovold authored
      
      
      Make sure port data is initialised before creating sysfs attributes to
      avoid a race.
      
      A recent patch ("USB: io_ti: fix port-data memory leak") got the
      sysfs-attribute creation and port-data initialisation ordering wrong.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5d8c61bc
    • Johan Hovold's avatar
      USB: iuu_phoenix: fix sysfs-attribute creation · 0978c949
      Johan Hovold authored
      
      
      Make sure sysfs attributes are created at port probe.
      
      A recent patch ("USB: iuu_phoenix: fix port-data memory leak") removed
      the sysfs-attribute creation by mistake.
      
      Reported-by: default avatarYuanhan Liu <yuanhan.liu@intel.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0978c949
    • jerin jacob's avatar
      MIPS: CMP: Fix physical core number calculation logic · 0cc40dac
      jerin jacob authored
      
      
      The CPUNum Field in EBase register is 10bit wide, so after 1 bit right
      shift, the mask value should be 0x1ff.
      
      Signed-off-by: default avatarjerin jacob <jerinjacobk@gmail.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/4420/
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      0cc40dac
    • Deepthi Dharwar's avatar
      cpuidle/powerpc: Fix snooze state problem in the cpuidle design on pseries. · 83dac594
      Deepthi Dharwar authored
      
      
      Earlier without cpuidle framework on pseries, the native arch
      idle routine comprised of both snooze and nap
      states.  smt_snooze_delay variable was used to delay
      the idle process entry to deeper idle state like  nap.
      With the coming of cpuidle, this arch specific idle was replaced
      by two different idle routines, one for supporting snooze and other
      for nap. This enabled addition of more
      low level idle states on pseries in the future.
      
      On adopting the generic cpuidle framework for POWER systems,
      the decision of which idle state to choose from,  given a predicted
      idle time is taken by the menu governor based on
      target_residency and  exit_latency of the idle states.
      target_residency is the minimum time to be resident in that idle state.
      Exit_latency is time taken to exit out of idle state.
      Deeper the idle state, both the target residency and exit latency
      would be higher.
      
      In the current design, smt_snooze_delay is used as target_residency
      for the  snooze state which is incorrect, as it is not the
      minimum but the maximum duration to be in snooze state.
      This would  result in the governor in taking bad decision,
      as presently target_residency of nap < target_residency of snooze
      inspite of nap being deeper idle state.
      
      This patch aims to fix this problem by replacing the smt_snooze_delay loop
      in snooze state, with the need_resched()  as the governor is aware of
      entry and exit of various idle transitions based on which
      next idle time prediction.
      
      The governor is intelligent enough to determine the idle state the needs to
      be transitioned to and maintains a whole of heuristics including
      io load, previous idle states predictions etc for the same, based on
      which idle state entry decision is taken.
      
      With this fix, of setting target_residency of snooze to 0
      					     nap to smt_snooze_delay
      if the predicted idle time is less
      than smt_snooze_delay (target_residency of nap)
      value governor would pick snooze state, else nap. This adhers to the
      previous native idle design.
      
      Signed-off-by: default avatarDeepthi Dharwar <deepthi@linux.vnet.ibm.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      83dac594
    • Deepthi Dharwar's avatar
      cpuidle/powerpc: Fix smt_snooze_delay functionality. · 8ea959a1
      Deepthi Dharwar authored
      
      
      smt_snooze_delay was designed to  delay idle loop's nap entry
      in the native idle code before it got  ported over to use as part of
      the cpuidle framework.
      
      A -ve value  assigned to smt_snooze_delay should result in
      busy looping, in other words disabling the entry to nap state.
      
      	- https://lists.ozlabs.org/pipermail/linuxppc-dev/2010-May/082450.html
      
      This particular functionality can be achieved currently by
      echo 1 > /sys/devices/system/cpu/cpu*/state1/disable
      but it is broken when one assigns -ve value to  the smt_snooze_delay
      variable either via sysfs entry or ppc64_cpu util.
      
      This patch aims to fix this, by disabling nap state when smt_snooze_delay
      variable is set to -ve value.
      
      Signed-off-by: default avatarDeepthi Dharwar <deepthi@linux.vnet.ibm.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      8ea959a1
    • Deepthi Dharwar's avatar
      cpuidle/powerpc: Fix target residency initialisation in pseries cpuidle · 817deb05
      Deepthi Dharwar authored
      
      
      Remove the redundant target residency initialisation in pseries_cpuidle_driver_init().
      This is currently over-writing the residency time updated as part of the static
      table, resulting in  all the idle states having the same target
      residency of 100us which is incorrect. This may result in the menu governor making
      wrong state decisions.
      
      Signed-off-by: default avatarDeepthi Dharwar <deepthi@linux.vnet.ibm.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      817deb05
    • Aneesh Kumar K.V's avatar
      powerpc: Build fix for powerpc KVM · ce236ab5
      Aneesh Kumar K.V authored
      
      
      Fix build failure for powerpc KVM by adding missing VPN_SHIFT definition
      and the ';'
      
      arch/powerpc/kvm/book3s_32_mmu_host.c: In function 'kvmppc_mmu_map_page':
      arch/powerpc/kvm/book3s_32_mmu_host.c:176: error: 'VPN_SHIFT' undeclared (first use in this function)
      arch/powerpc/kvm/book3s_32_mmu_host.c:176: error: (Each undeclared identifier is reported only once
      arch/powerpc/kvm/book3s_32_mmu_host.c:176: error: for each function it appears in.)
      arch/powerpc/kvm/book3s_32_mmu_host.c:178: error: expected ';' before 'next_pteg'
      arch/powerpc/kvm/book3s_32_mmu_host.c:190: error: label 'next_pteg' used but not defined
      make[1]: *** [arch/powerpc/kvm/book3s_32_mmu_host.o] Error 1
      
      Signed-off-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      ce236ab5
    • Benjamin Herrenschmidt's avatar
      Revert "powerpc/perf: Use pmc_overflow() to detect rolled back events" · 72523d80
      Benjamin Herrenschmidt authored
      This reverts commit 81331211.
      
      This revert was requested by the author of the patch as it seems
      to cause system hangs with some low frequency events
      72523d80
    • John Johansen's avatar
      apparmor: fix apparmor OOPS in audit_log_untrustedstring+0x1c/0x40 · 43c422ed
      John Johansen authored
      
      
      The capability defines have moved causing the auto generated names
      of capabilities that apparmor uses in logging to be incorrect.
      
      Fix the autogenerated table source to uapi/linux/capability.h
      
      Reported-by: default avatarYanHong <clouds.yan@gmail.com>
      Reported-by: default avatarKrzysztof Kolasa <kkolasa@winsoft.pl>
      Analyzed-by: default avatarAl Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
      Acked-by: default avatarDavid Howells <dhowells@redhat.com>
      Acked-by: default avatarJames Morris <james.l.morris@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      43c422ed
    • Bill Pemberton's avatar
      staging: dgrp: check return value of alloc_tty_driver · 178e485a
      Bill Pemberton authored
      
      
      alloc_tty_driver was always assumed to succeed.  Add code to check the
      return value and return -ENOMEM if alloc_tty_driver fails.
      
      Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      178e485a
    • Bill Pemberton's avatar
      staging: dgrp: check for NULL pointer in (un)register_proc_table · d7c4660c
      Bill Pemberton authored
      
      
      register_proc_table and unregister_proc_table didn't deal with the
      possibility that the *table pointer could be NULL.  Check for this and
      return if table is NULL.
      
      Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d7c4660c
    • Greg Kroah-Hartman's avatar
      Merge tag 'disintegrate-tty-20121009' of... · 367ff459
      Greg Kroah-Hartman authored
      Merge tag 'disintegrate-tty-20121009' of git://git.infradead.org/users/dhowells/linux-headers into tty-linus
      
      UAPI Disintegration 2012-10-09
      367ff459
    • Stephen Warren's avatar
      dtc: fix for_each_*() to skip first object if deleted · 205a8eb7
      Stephen Warren authored
      
      
      The previous definition of for_each_*() would always include the very
      first object within the list, irrespective of whether it was marked
      deleted, since the deleted flag was not checked on the first object,
      but only on any "next" object.
      
      Fix for_each_*() to check the deleted flag in the loop body every
      iteration to correct this.
      
      (upstream dtc commit 1762ab42ef77db7ab2776d0d6cba3515150f518a)
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
      205a8eb7
    • Kim Phillips's avatar
      of/platform: sparse fix · 24fb530f
      Kim Phillips authored
      
      
      drivers/of/platform.c:110:59: warning: incorrect type in argument 2 (different base types)
      drivers/of/platform.c:110:59:    expected restricted __be32 const [usertype] *addr
      drivers/of/platform.c:110:59:    got unsigned int const [usertype] *[assigned] reg
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
      24fb530f
    • Kim Phillips's avatar
      of/irq: sparse fixes · d2e41518
      Kim Phillips authored
      
      
      drivers/of/irq.c:195:57: warning: restricted __be32 degrades to integer
      drivers/of/irq.c:196:51: warning: restricted __be32 degrades to integer
      drivers/of/irq.c:199:57: warning: restricted __be32 degrades to integer
      drivers/of/irq.c:201:58: warning: restricted __be32 degrades to integer
      drivers/of/irq.c:470:37: warning: incorrect type in assignment (different modifiers)
      drivers/of/irq.c:470:37:    expected int ( *[usertype] irq_init_cb )( ... )
      drivers/of/irq.c:470:37:    got void const *const data
      drivers/of/irq.c:96:5: error: symbol 'of_irq_map_raw' redeclared with different type (originally declared at include/linux/of_irq.h:61) - incompatible argument 2 (different base types)
      
      drivers/of/of_pci_irq.c:91:40: warning: incorrect type in argument 2 (different base types)
      drivers/of/of_pci_irq.c:91:40:    expected unsigned int const [usertype] *intspec
      drivers/of/of_pci_irq.c:91:40:    got restricted __be32 *<noident>
      drivers/of/of_pci_irq.c:91:53: warning: incorrect type in argument 4 (different base types)
      drivers/of/of_pci_irq.c:91:53:    expected unsigned int const [usertype] *addr
      drivers/of/of_pci_irq.c:91:53:    got restricted __be32 *<noident>
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
      d2e41518
    • Kim Phillips's avatar
      of/address: sparse fixes · 47b1e689
      Kim Phillips authored
      
      
      drivers/of/address.c:66:29: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:66:29:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:66:29:    got unsigned int [usertype] *addr
      drivers/of/address.c:87:32: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:87:32:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:87:32:    got unsigned int [usertype] *addr
      drivers/of/address.c:91:30: warning: incorrect type in assignment (different base types)
      drivers/of/address.c:91:30:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/of/address.c:91:30:    got restricted __be32 [usertype] <noident>
      drivers/of/address.c:92:22: warning: incorrect type in assignment (different base types)
      drivers/of/address.c:92:22:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/of/address.c:92:22:    got restricted __be32 [usertype] <noident>
      drivers/of/address.c:147:35: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:147:35:    expected restricted __be32 const [usertype] *addr
      drivers/of/address.c:147:35:    got unsigned int [usertype] *addr
      drivers/of/address.c:157:34: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:157:34:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:157:34:    got unsigned int [usertype] *
      drivers/of/address.c:256:29: warning: restricted __be32 degrades to integer
      drivers/of/address.c:256:36: warning: restricted __be32 degrades to integer
      drivers/of/address.c:262:34: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:262:34:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:262:34:    got unsigned int [usertype] *
      drivers/of/address.c:372:41: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:372:41:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:372:41:    got unsigned int [usertype] *addr
      drivers/of/address.c:395:53: warning: incorrect type in argument 2 (different base types)
      drivers/of/address.c:395:53:    expected restricted __be32 const [usertype] *addr
      drivers/of/address.c:395:53:    got unsigned int [usertype] *addr
      drivers/of/address.c:443:50: warning: incorrect type in argument 2 (different base types)
      drivers/of/address.c:443:50:    expected restricted __be32 const [usertype] *addr
      drivers/of/address.c:443:50:    got unsigned int *<noident>
      drivers/of/address.c:455:49: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:455:49:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:455:49:    got unsigned int *<noident>
      drivers/of/address.c:480:60: warning: incorrect type in argument 2 (different base types)
      drivers/of/address.c:480:60:    expected restricted __be32 const [usertype] *addr
      drivers/of/address.c:480:60:    got unsigned int *<noident>
      drivers/of/address.c:412:5: warning: symbol '__of_translate_address' was not declared. Should it be static?
      drivers/of/address.c:520:14: error: symbol 'of_get_address' redeclared with different type (originally declared at include/linux/of_address.h:22) - different base types
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
      47b1e689
    • Olof Johansson's avatar
      of: add stub of_get_child_by_name for non-OF builds · 25c040c9
      Olof Johansson authored
      Fixes build error on s3c6400_defconfig, introduced by commit
      06455bbc
      
      , "dt/s3c64xx/spi: Use
      of_get_child_by_name to get a named child".
      
      drivers/spi/spi-s3c64xx.c: In function 's3c64xx_get_slave_ctrldata':
      drivers/spi/spi-s3c64xx.c:838:2: error: implicit declaration of function
          'of_get_child_by_name' [-Werror=implicit-function-declaration]
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
      25c040c9