18 Apr, 2009

9 commits

  • * master.kernel.org:/home/rmk/linux-2.6-arm: (48 commits)
    [ARM] S3C24XX: ADC: Check pending queue before freeing adc client
    [ARM] S3C: Fix ADC driver sparse warning
    [ARM] Osiris: Fix double initialisation in machine block
    [ARM] Anubis: Fix sparse warnings for items that should be static
    [ARM] JIVE: Fix sparse warnings about items which should be static
    [ARM] S3C: Fix sparse warning from missing 's3c_device_hwmon'
    [ARM] S3C24XX: Fix sparse error in gpiolib.c
    [ARM] 5455/1: Fix IRQ noise from VIC code
    [ARM] 5454/1: ep93xx_eth: fix sparse warnings
    [ARM] remove .gitignore from include/asm-arm
    Update MAINTAINERS
    mxc defconfig updates
    mx31ads: Mark as having full regulatoion constraints with 1133-EV1 board
    mx31ads: Depend on all the WM8350 core dependencies for WM1133-EV1 board
    Fix ifdef in plat-mxc/irc.c
    MX1ADS: remove I2C ifdefs
    qong: remove AIPS[12] mappings from machine-specific iotable
    mx31ads: imoux pins should be passed in as unsigned int
    MXC: remove orphan imx_init_uart() definition
    mx31: pin definition for csi
    ...

    Linus Torvalds
     
  • Russell King
     
  • Russell King
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: ads7846 - fix unsafe disable_irq
    Input: mainstone-wm97xx - fix condition in pen_up
    Input: pc110pad - remove unused variable dev
    Input: bf54x-keys - remove depreciated IRQF_SAMPLE_RANDOM flag
    Input: ad7877, ad7879 - remove depreciated IRQF_SAMPLE_RANDOM flag
    Input: da9034-ts - make pen {down,up} events more reliable
    Input: da9034-ts - add Bin Yang as co-author of the driver
    Input: atkbd - add forced release keys quirk for Samsung NC20
    Input: atkbd - add forced release keys quirk for Samsung Q45
    Input: gameport - fix attach driver code
    Input: hp_sdc_rtc should depend on serio
    Input: wm97xx - don't specify IRQF_SAMPLE_RANDOM
    Input: ads7846 - introduce platform specific way to synchronize sampling
    Input: remove unnecessary synchronize_rcu() call
    Input: i8042 - add a DMI table for the i8042.reset option
    Input: i8042 - introduce a tougher reset

    Linus Torvalds
     
  • This renames include/asm-h8300/timer.h into arch/h8300/include/asm: it
    was left over just because that file had been created in the -mm tree
    before the whole h8300 header subdirectory had been moved, and then got
    merged in the old location afterwards.

    (See commits e0b0f9e4ead2468f84c26332ec42b118e76af572: "h8300: update
    timer handler - new files" and 758db3f2118703a1e36374dae5d58bed963e7e0d:
    "[h8300] move include/asm-h8300 to arch/h8300/include/asm" for details).

    This also removes a left-over .gitignore file in include/asm-arm that
    became stale when the ARM header files were moved (which happened in
    multiple commits, just see "git log -- include/asm-arm" for details).

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'for-linus' of git://www.linux-m32r.org/git/takata/linux-2.6_dev:
    m32r: move include/asm-m32r/* to arch/m32r/include/asm/
    m32r: move include/asm-m32r headers to arch/m32r/include/asm

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: fix microcode driver newly spewing warnings
    x86, PAT: Remove page granularity tracking for vm_insert_pfn maps
    x86: disable X86_PTRACE_BTS for now
    x86, documentation: kernel-parameters replace X86-32,X86-64 with X86
    x86: pci-swiotlb.c swiotlb_dma_ops should be static
    x86, PAT: Remove duplicate memtype reserve in devmem mmap
    x86, PAT: Consolidate code in pat_x_mtrr_type() and reserve_memtype()
    x86, PAT: Changing memtype to WC ensuring no WB alias
    x86, PAT: Handle faults cleanly in set_memory_ APIs
    x86, PAT: Change order of cpa and free in set_memory_wb
    x86, CPA: Change idmap attribute before ioremap attribute setup

    Linus Torvalds
     
  • If CONFIG_AFS_FSCACHE is not defined, the following warning is displayed when
    fs/afs/file.c is compiled:

    fs/afs/file.c:111: warning: ‘afs_file_readpage_read_complete’ defined but not used

    This occurs because all calls to this function are guarded by
    CONFIG_AFS_FSCACHE. Thus, guard its definition as well.

    Signed-off-by: Matt Kraai
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    Matt Kraai
     
  • Close bug #4754. Stop people getting into a situation where they can't
    get their FAT filesystems to mount as they expect.

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

    Alan Cox
     

17 Apr, 2009

29 commits

  • splice: fix kernel-doc warnings

    Warning(fs/splice.c:617): bad line:
    Warning(fs/splice.c:722): No description found for parameter 'sd'
    Warning(fs/splice.c:722): Excess function parameter 'pipe' description in 'splice_from_pipe_begin'

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

    Randy Dunlap
     
  • Check pending queue and remove the adc client being released.

    Signed-off-by: Ramax Lo
    Signed-off-by: Ben Dooks

    Ramax Lo
     
  • The symbol 's3c_adc_try' in arch/arm/plat-s3c24xx/adc.c
    does not need to be exported and thus should be static.

    This fixes the following sparse warning:

    adc.c:103:6: warning: symbol 's3c_adc_try' was not declared. Should it be static?

    Signed-off-by: Ben Dooks
    Signed-off-by: Ben Dooks

    Ben Dooks
     
  • The .init_machine entry in mach-osiris.c had the same entry
    twice, so remove one definition to fix the following warning
    from sparse:

    mach-osiris.c:416:3: warning: Initializer entry defined twice
    mach-osiris.c:418:3: also defined here

    Signed-off-by: Ben Dooks
    Signed-off-by: Ben Dooks

    Ben Dooks
     
  • Make 'anubis_ide_platdata' statis as it is not used outside
    the file it is in, fixing the following sparse warning:

    mach-anubis.c:246:27: warning: symbol 'anubis_ide_platdata' was not declared. Should it be static?

    Signed-off-by: Ben Dooks
    Signed-off-by: Ben Dooks

    Ben Dooks
     
  • Make 'jive_vgg2432a4_display' and 'jive_lcd_config' static as
    they are not exported, and are generating the following sparse
    warnings:

    mach-jive.c:280:26: warning: symbol 'jive_vgg2432a4_display' was not declared. Should it be static?
    mach-jive.c:313:28: warning: symbol 'jive_lcd_config' was not declared. Should it be static?

    Signed-off-by: Ben Dooks
    Signed-off-by: Ben Dooks

    Ben Dooks
     
  • Fix the following sparse warning due to s3c_device_hwmon being
    missing from

    devs.c:380:24: warning: symbol 's3c_device_hwmon' was not declared. Should it be static?

    Signed-off-by: Ben Dooks
    Signed-off-by: Ben Dooks

    Ben Dooks
     
  • Fix the following sparse error generated by including
    instead of

    gpiolib.c:78:22: warning: symbol 's3c24xx_gpios' was not declared. Should it be static?

    Signed-off-by: Ben Dooks
    Signed-off-by: Ben Dooks

    Ben Dooks
     
  • Move remained files, ftrace.h and swab.h, to arch/m32r/include/asm/.

    Signed-off-by: Hirokazu Takata

    Hirokazu Takata
     
  • …nel/git/tip/linux-2.6-tip

    * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    tracing: Fix branch tracer header
    tracing: Fix power tracer header

    Linus Torvalds
     
  • …l/git/tip/linux-2.6-tip

    * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    sched: Avoid printing sched_group::__cpu_power for default case
    tracing, sched: mark get_parent_ip() notrace

    Linus Torvalds
     
  • Signed-off-by: Hirokazu Takata

    Hirokazu Takata
     
  • …/git/tip/linux-2.6-tip

    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    kernel/softirq.c: fix sparse warning
    rcu: Make hierarchical RCU less IPI-happy

    Linus Torvalds
     
  • Fix sparse warning in kernel/softirq.c.

    warning: do-while statement is not a compound statement

    Signed-off-by: H Hartley Sweeten
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    H Hartley Sweeten
     
  • * 'x86/uv' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: UV BAU distribution and payload MMRs
    x86: UV: BAU partition-relative distribution map
    x86, uv: add Kconfig dependency on NUMA for UV systems
    x86: prevent /sys/firmware/sgi_uv from being created on non-uv systems
    x86, UV: Fix for nodes with memory and no cpus
    x86, UV: system table in bios accessed after unmap
    x86: UV BAU messaging timeouts
    x86: UV BAU and nodes with no memory

    Linus Torvalds
     
  • Jeff Garzik reported this WARN_ON() noise:

    > Kernel: 2.6.30-rc1-00306-g8371f87
    > Hardware: ICH10 x86-64
    >
    > This is a regression from 2.6.29. Microcode spews the following WARNING
    > multiple times during boot:
    >
    > ------------[ cut here ]------------
    > WARNING: at fs/sysfs/group.c:138 sysfs_remove_group+0xeb/0xf0()
    > Hardware name: sysfs group ffffffffa0209700 not found for
    > kobject 'cpu0'

    Keep sysfs files around for cpus even when we failed to locate
    microcode for them at the moment of module loading. The appropriate
    microcode firmware can become available later on.

    Signed-off-by: Ingo Molnar

    Dmitry Adamushko
     
  • Commit 46e0bb9c12f4 ("sched: Print sched_group::__cpu_power
    in sched_domain_debug") produces a messy dmesg output while
    attempting to print the sched_group::__cpu_power for each
    group in the sched_domain hierarchy.

    Fix this by avoid printing the __cpu_power for default cases.
    (i.e, __cpu_power == SCHED_LOAD_SCALE).

    [ Impact: reduce syslog clutter ]

    Reported-by: Tony Luck
    Signed-off-by: Gautham R Shenoy
    Fixed-by: Tony Luck
    Cc: a.p.zijlstra@chello.nl
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Gautham R Shenoy
     
  • This change resolves the problem of too many single page entries
    in pat_memtype_list and "freeing invalid memtype" errors with i915,
    reported here:

    http://marc.info/?l=linux-kernel&m=123845244713183&w=2

    Remove page level granularity track and untrack of vm_insert_pfn.
    memtype tracking at page granularity does not scale and cleaner
    approach would be for the driver to request a type for a bigger
    IO address range or PCI io memory range for that device, either at
    mmap time or driver init time and just use that type during
    vm_insert_pfn.

    This patch just removes the track/untrack of vm_insert_pfn. That
    means we will be in same state as 2.6.28, with respect to these APIs.

    Newer APIs for the drivers to request a memtype for a bigger region
    is coming soon.

    [ Impact: fix Xorg startup warnings and hangs ]

    Reported-by: Arkadiusz Miskiewicz
    Tested-by: Arkadiusz Miskiewicz
    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Suresh Siddha
    Cc: Jesse Barnes
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Pallipadi, Venkatesh
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    ata: Report 16/32bit PIO as best we can
    libata: use ATA_ID_CFA_*
    pata_legacy: fix no device fail path
    pata_hpt37x: fix HPT370 DMA timeouts
    libata: handle SEMB signature better

    Linus Torvalds
     
  • Tetsuo Handa reports seeing the WARN_ON(current->mm == NULL) in
    security_vm_enough_memory(), when do_execve() is touching the
    target mm's stack, to set up its args and environment.

    Yes, a UMH_NO_WAIT or UMH_WAIT_PROC call_usermodehelper() spawns
    an mm-less kernel thread to do the exec. And in any case, that
    vm_enough_memory check when growing stack ought to be done on the
    target mm, not on the execer's mm (though apart from the warning,
    it only makes a slight tweak to OVERCOMMIT_NEVER behaviour).

    Reported-by: Tetsuo Handa
    Signed-off-by: Hugh Dickins
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • This reverts commit f520360d93cdc37de5d972dac4bf3bdef6a7f6a7.

    Tetsuo Handa, running a kernel with CONFIG_DEBUG_PAGEALLOC=y and
    CONFIG_UEVENT_HELPER_PATH=/sbin/hotplug, has been hitting RCU detected
    CPU stalls: it's been spinning in the loop where do_execve() counts up
    the args (but why wasn't fixup_exception working? dunno).

    The recent change, switching kobject_uevent_env() from UMH_WAIT_EXEC
    to UMH_NO_WAIT, is broken: the exec uses args on the local stack here,
    and an env which is kfreed as soon as call_usermodehelper() returns.
    It very much needs to wait for the exec to be done.

    An alternative would be to keep the UMH_NO_WAIT, and complicate the code
    to allocate and free these resources correctly? but no, as GregKH
    pointed out when making the commit, CONFIG_UEVENT_HELPER_PATH="" is a
    much better optimization - though some distros are still saying
    /sbin/hotplug in their .config, yet with no such binary in their initrd
    or their root.

    Reported-by: Tetsuo Handa
    Signed-off-by: Hugh Dickins
    Acked-by: Greg Kroah-Hartman
    Acked-by: Arjan van de Ven
    Acked-by: Will Newton
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • The VIC code will attempt to perform som
    default set_irq_chip() and set_irq_chip_data()
    on all IRQs supported by the VIC, while the new
    IRQ handling code strictly checks for the global
    NR_IRQS to be respected also for these IRQs.

    This patch will respect the interrupt mask passed
    to the VIC driver and will prevent it from
    attempting to call these functions on any unused
    interrupts.

    Signed-off-by: Linus Walleij
    Signed-off-by: Russell King

    Linus Walleij
     
  • The legacy old IDE ioctl API for this is a bit primitive so we try
    and map stuff sensibly onto it.

    - Set PIO over DMA devices to report 32bit
    - Add ability to change the PIO32 settings if the controller permits it
    - Add that functionality into the sff drivers
    - Add that functionality into the VLB legacy driver
    - Turn on the 32bit PIO on the ninja32 and add support there

    Signed-off-by: Alan Cox
    Signed-off-by: Jeff Garzik

    Alan Cox
     
  • Use ATA_ID_CFA_* constants for CFA specific identify data words 162 and 163.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • When pata_legacy can't detect any device, it unregisters the
    platform_device and fails detection. However, it forgets to detach
    ata host triggering weird failures as the host later gets freed by
    devres while still attached. Fix it.

    Signed-off-by: Tejun Heo
    Reported-by: Peter Zijlstra
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • The libata driver has copied the code from the IDE driver which caused a post
    2.4.18 regression on many HPT370[A] chips -- DMA stopped to work completely,
    only causing timeouts. Now remove hpt370_bmdma_start() for good...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     
  • WDC WD1600JS-62MHB5 successfully hits the window between ATA/ATAPI-7
    and Serial ATA II standards and reports 3c/c3 signature which now is
    assigned to SEMB. Make ata_dev_classify() report ATA_DEV_SEMB on the
    sig and let ata_dev_read_id() work around it by trying IDENTIFY once.

    This fixes bko#11579.

    Signed-off-by: Tejun Heo
    Reported-by: David Haun
    Reported-by: Lars Wirzenius
    Reported-by: Juan Manuel
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • This patch correctly sets BAU memory mapped registers to point
    to the sending activation descriptor table and target payload table.

    The "Broadcast Assist Unit" is used for TLB shootdown in UV.

    The memory mapped registers that point to sending and receiving
    memory structures contain node numbers.

    In one case the __pa() function did not provide the node id of
    memory on blade zero in configurations where that id is nonzero.
    In another case, it was assumed that memory was allocated on
    the local node. That assumption is not true in a configuration
    in which the node has no memory.

    Tested on the UV hardware simulator.

    [ Impact: fix possible runtime crash due to incorrect TLB logic ]

    Signed-off-by: Cliff Wickman
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Cliff Wickman
     
  • Fix 50+ sparse warnings in the ep93xx ethernet driver.

    warning: incorrect type in argument 1 (different address spaces)

    Signed-off-by: H Hartley Sweeten
    Signed-off-by: Russell King

    Hartley Sweeten
     

16 Apr, 2009

2 commits