18 Aug, 2011

6 commits


17 Aug, 2011

3 commits

  • * 'kvm-updates/3.1' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: uses TASKSTATS, depends on NET
    KVM: fix TASK_DELAY_ACCT kconfig warning

    Linus Torvalds
     
  • * 'fixallnoconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] fix "allnoconfig" build

    Linus Torvalds
     
  • CONFIG_TASKSTATS just had a change to use netlink, including
    a change to "depends on NET". Since "select" does not follow
    dependencies, KVM also needs to depend on NET to prevent build
    errors when CONFIG_NET is not enabled.

    Sample of the reported "undefined reference" build errors:

    taskstats.c:(.text+0x8f686): undefined reference to `nla_put'
    taskstats.c:(.text+0x8f721): undefined reference to `nla_reserve'
    taskstats.c:(.text+0x8f8fb): undefined reference to `init_net'
    taskstats.c:(.text+0x8f905): undefined reference to `netlink_unicast'
    taskstats.c:(.text+0x8f934): undefined reference to `kfree_skb'
    taskstats.c:(.text+0x8f9e9): undefined reference to `skb_clone'
    taskstats.c:(.text+0x90060): undefined reference to `__alloc_skb'
    taskstats.c:(.text+0x901e9): undefined reference to `skb_put'
    taskstats.c:(.init.text+0x4665): undefined reference to `genl_register_family'
    taskstats.c:(.init.text+0x4699): undefined reference to `genl_register_ops'
    taskstats.c:(.init.text+0x4710): undefined reference to `genl_unregister_ops'
    taskstats.c:(.init.text+0x471c): undefined reference to `genl_unregister_family'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Marcelo Tosatti

    Randy Dunlap
     

16 Aug, 2011

13 commits

  • Fix build errors (found when CONFIG_SYSFS is not enabled):

    drivers/xen/xen-selfballoon.c:446: warning: data definition has no type or storage class
    drivers/xen/xen-selfballoon.c:446: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'
    drivers/xen/xen-selfballoon.c:446: warning: parameter names (without types) in function declaration
    drivers/xen/xen-selfballoon.c:485: error: expected declaration specifiers or '...' before string constant
    drivers/xen/xen-selfballoon.c:485: warning: data definition has no type or storage class
    drivers/xen/xen-selfballoon.c:485: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
    drivers/xen/xen-selfballoon.c:485: warning: function declaration isn't a prototype

    Signed-off-by: Randy Dunlap
    Acked-by: Konrad Rzeszutek Wilk
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Kirill Shutemov found problems with the non-upstream IMG driver where the
    use of extra DRM encoder/connector types caused random crashes when the DRM
    layer tried to display their matching name. This removes the MIPI types
    matching the changes Pauli Nieminen made to the non upstream driver set.

    As Pauli points out:
    " MIPI (or DSI) is protocol specification on top of LVDS serial bus. That
    makes it resonable to call MIPI connectors and encoders LVDS."

    (and indeed they may also be HDMI convertors or similar when we want to
    report a more useful to end user result)

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Commit b33f9cbd67ba ("regmap: Specify a module license") added a
    MODULES_LICENSE to this file without adding an include of module.h.

    module.h should have been included anyway, since this file has
    EXPORT_SYMBOLs as well. With the pending module.h split up, this would
    probably have caused build problems.

    Cc: Stephen Warren
    Cc: Mark Brown
    Signed-off-by: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • * 'docs-move' of git://git.kernel.org/pub/scm/linux/kernel/git/rdunlap/linux-docs:
    Docs: MSI-HOWTO: MSI -> MSIs
    Docs: MSI-HOWTO: Insert a comma
    Docs: MSI-HOWTO: can -> could
    Docs: MSI-HOWTO: Use `unknown ...' rather than `... know about.'
    Docs: MSI-HOWTO: may -> might
    Docs: MSI-HOWTO: Insert a comma
    Docs: MSI-HOWTO: API -> function
    Docs: MSI-HOWTO: , -> ;
    Docs: MSI-HOWTO: Move a sentence to another paragraph
    Docs: MSI-HOWTO: Insert `that'
    Docs: MSI-HOWTO: Offset modifier with a comma, and insert `yet' for emphasis
    Docs: MSI-HOWTO: Put the `because' subordinate clause first
    Docs: MSI-HOWTO: Streamline some wording
    Docs: MSI-HOWTO: `asked for' -> `requested'
    Docs: MSI-HOWTO: Use present tense and streamline some wording
    Docs: MSI-HOWTO: Use the subjunctive, and change `can' to `may'

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
    sparc64: Set HAVE_C_RECORDMCOUNT
    sparc32: unbreak arch_write_unlock()
    sparc64: remove unnecessary macros from spinlock_64.h

    Linus Torvalds
     
  • * 'drm-intel-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/keithp/linux-2.6:
    drm/i915: Cannot set clock gating under UMS
    drm/i915: Can't do accurate vblank timestamps with UMS
    Not all systems expose a firmware or platform mechanism for changing the backlight intensity on i915, so add native driver support.
    drm/i915: split out PCH refclk update code
    drm/i915: show interrupt info on IVB
    drm/i915: Remove unused 'reg' argument to dp_pipe_enabled
    drm/i915: Fix PCH port pipe select in CPT disable paths
    drm/i915: Leave LVDS registers unlocked
    drm/i915: Wait for LVDS panel power sequence

    Linus Torvalds
     
  • arch/x86/mm/fault.c needs to include asm/vsyscall.h to fix a
    build error:

    arch/x86/mm/fault.c: In function '__bad_area_nosemaphore':
    arch/x86/mm/fault.c:728: error: 'VSYSCALL_START' undeclared (first use in this function)

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • The sparc32 version of arch_write_unlock() is just a plain assignment.
    Unfortunately this allows the compiler to schedule side-effects in a
    protected region to occur after the HW-level unlock, which is broken.
    E.g., the following trivial test case gets miscompiled:

    #include
    rwlock_t lock;
    int counter;
    void foo(void) { write_lock(&lock); ++counter; write_unlock(&lock); }

    Fixed by adding a compiler memory barrier to arch_write_unlock(). The
    sparc64 version combines the barrier and assignment into a single asm(),
    and implements the operation as a static inline, so that's what I did too.

    Compile-tested with sparc32_defconfig + CONFIG_SMP=y.

    Signed-off-by: Mikael Pettersson
    Signed-off-by: David S. Miller

    Mikael Pettersson
     
  • The sparc64 spinlock_64.h contains a number of operations defined
    first as static inline functions, and then as macros with the same
    names and parameters as the functions. Maybe this was needed at
    some point in the past, but now nothing seems to depend on these
    macros (checked with a recursive grep looking for ifdefs on these
    names). Other archs don't define these identity-macros.

    So this patch deletes these unnecessary macros.

    Compile-tested with sparc64_defconfig.

    Signed-off-by: Mikael Pettersson
    Signed-off-by: David S. Miller

    Mikael Pettersson
     
  • The clock gating functions are only assigned under KMS, so don't try
    to call them under UMS.

    Signed-off-by: Keith Packard
    Tested-by: Justin P. Mattock

    Keith Packard
     
  • Disable this feature when KMS is not running by setting the
    driver->get_vblank_timestamp function pointer to NULL.

    Signed-off-by: Keith Packard
    Tested-by: Justin P. Mattock

    Keith Packard
     
  • …ht intensity on i915, so add native driver support.

    Signed-off-by: Matthew Garrett <mjg@redhat.com>
    Cc: Richard Purdie <rpurdie@rpsys.net>
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: David Airlie <airlied@linux.ie>
    Cc: Alex Deucher <alexdeucher@gmail.com>
    Cc: Ben Skeggs <bskeggs@redhat.com>
    Cc: Zhang Rui <rui.zhang@intel.com>
    Cc: Len Brown <lenb@kernel.org>
    Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
    Tested-by: Sedat Dilek <sedat.dilek@googlemail.com>
    Tested-by: Michel Alexandre Salim <salimma@fedoraproject.org>
    Tested-by: Kamal Mostafa <kamal@canonical.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Keith Packard <keithp@keithp.com>

    Matthew Garrett
     

15 Aug, 2011

12 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    lguest: allow booting guest with CONFIG_RELOCATABLE=y
    virtio: Add text copy of spec to Documentation/virtual.

    Linus Torvalds
     
  • * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    firewire: ohci: fix DMA unmapping in an error path
    firewire: cdev: fix 32 bit userland on 64 bit kernel compat corner cases

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/shaggy/jfs-2.6:
    jfs: flush journal completely before releasing metadata inodes

    Linus Torvalds
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm/radeon/kms: don't try to be smart in the hpd handler
    drm/radeon: re-POST the asic on Apple hardware when booted via EFI
    drm/radeon: Allow panel preferred EDID to override BIOS native mode
    drm/radeon/kms: make some watermark messages debug only
    drm/radeon/kms: fix regression is handling >2 heads on cedar/caicos
    drm/radeon/kms: don't enable connectors that are off in the hotplug handler

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    cifs: Do not set cifs/ntfs acl using a file handle (try #4)
    [CIFS] Cleanup use of CONFIG_CIFS_STATS2 ifdef to make transport routines more readable

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
    regmap: Specify a module license
    regmap: Fix bulk reads

    Linus Torvalds
     
  • Attempting to try and turn off disconnected display hw in the
    hotput handler lead to more problems than it helped. For
    now just register an event and only attempt the do something
    interesting with DP. Other connectors are just too problematic:
    - Some systems have an HPD pin assigned to LVDS, but it's rarely
    if ever connected properly and we don't really care about hpd
    events on LVDS anyway since it's always connected.
    - The HPD pin is wired up correctly for eDP, but we don't really
    have to do anything since the events since it's always connected.
    - Some HPD pins fire more than once when you connect/disconnect
    - etc.

    Fixes:
    https://bugs.freedesktop.org/show_bug.cgi?id=39882

    Signed-off-by: Alex Deucher
    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • The CONFIG_RELOCATABLE code tries to align the unpack destination to
    the value of 'kernel_alignment' in the setup_hdr. If that's 0, it
    tries to unpack to address 0, which in fact causes the gunzip code
    to call 'error("Out of memory while allocating output buffer")'.

    The bootloader (ie. the lguest Launcher in this case) should be doing
    setting this field; the normal bzImage is 16M, we can use the same.

    Reported-by: Stefanos Geraggelos
    Signed-off-by: Rusty Russell
    Cc: stable@kernel.org

    Rusty Russell
     
  • As suggested by Christoph Hellwig.

    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • Linus Torvalds
     
  • Commit db64fe02258f ("mm: rewrite vmap layer") introduced code that does
    address calculations under the assumption that VMAP_BLOCK_SIZE is a
    power of two. However, this might not be true if CONFIG_NR_CPUS is not
    set to a power of two.

    Wrong vmap_block index/offset values could lead to memory corruption.
    However, this has never been observed in practice (or never been
    diagnosed correctly); what caught this was the BUG_ON in vb_alloc() that
    checks for inconsistent vmap_block indices.

    To fix this, ensure that VMAP_BLOCK_SIZE always is a power of two.

    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=31572
    Reported-by: Pavel Kysilka
    Reported-by: Matias A. Fonzo
    Signed-off-by: Clemens Ladisch
    Signed-off-by: Stefan Richter
    Cc: Nick Piggin
    Cc: Jeremy Fitzhardinge
    Cc: Krzysztof Helt
    Cc: Andrew Morton
    Cc: 2.6.28+
    Signed-off-by: Linus Torvalds

    Clemens Ladisch
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc:
    mmc: remove unused "ddr" parameter in struct mmc_ios
    mmc: dw_mmc: Fix DDR mode support.
    mmc: core: use defined R1_STATE_PRG macro for card status
    mmc: sdhci: use f_max instead of host->clock for timeouts
    mmc: sdhci: move timeout_clk calculation farther down
    mmc: sdhci: check host->clock before using it as a denominator
    mmc: Revert "mmc: sdhci: Fix SDHCI_QUIRK_TIMEOUT_USES_SDCLK"
    mmc: tmio: eliminate unused variable 'mmc' warning
    mmc: esdhc-imx: fix card interrupt loss on freescale eSDHC
    mmc: sdhci-s3c: Fix build for header change
    mmc: dw_mmc: Fix mask in IDMAC_SET_BUFFER1_SIZE macro
    mmc: cb710: fix possible pci_dev leak in cb710_pci_configure()
    mmc: core: Detect eMMC v4.5 ext_csd entries
    mmc: mmc_test: avoid stalled file in debugfs
    mmc: sdhci-s3c: add BROKEN_ADMA_ZEROLEN_DESC quirk
    mmc: sdhci: pxav3: controller needs 32 bit ADMA addressing
    mmc: sdhci: fix retuning timer wrongly deleted in sdhci_tasklet_finish

    Linus Torvalds
     

14 Aug, 2011

6 commits