13 Apr, 2009

1 commit

  • Since the first argument to I2C_BOARD_INFO() must be a string constant,
    there is no need to parenthesise it, and adding parentheses results in
    an invalid initialiser for char[]. gcc obviously accepts this syntax as
    an extension, but sparse complains, e.g.:

    drivers/net/sfc/boards.c:173:2: warning: array initialized from parenthesized string constant

    Therefore, remove the parentheses.

    Signed-off-by: Ben Hutchings
    Signed-off-by: Jean Delvare

    Ben Hutchings
     

11 Apr, 2009

2 commits


10 Apr, 2009

9 commits


09 Apr, 2009

10 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm:
    dm kcopyd: fix callback race
    dm kcopyd: prepare for callback race fix
    dm: implement basic barrier support
    dm: remove dm_request loop
    dm: rework queueing and suspension
    dm: simplify dm_request loop
    dm: split DMF_BLOCK_IO flag into two
    dm: rearrange dm_wq_work
    dm: remove limited barrier support
    dm: add integrity support

    Linus Torvalds
     
  • Since the whole point of try_then_request_module is to retry
    the operation after a module has been loaded, we must wait for
    the module to fully load.

    Otherwise all sort of things start breaking, e.g., you won't
    be able to read your encrypted disks on the first attempt.

    Signed-off-by: Herbert Xu
    Tested-by: Maciej Rutecki
    Tested-by: Patrick McHardy
    Signed-off-by: Linus Torvalds

    Herbert Xu
     
  • Freezing tasks via the cgroup freezer causes the load average to climb
    because the freezer's current implementation puts frozen tasks in
    uninterruptible sleep (D state).

    Some applications which perform job-scheduling functions consult the
    load average when making decisions. If a cgroup is frozen, the load
    average does not provide a useful measure of the system's utilization
    to such applications. This is especially inconvenient if the job
    scheduler employs the cgroup freezer as a mechanism for preempting low
    priority jobs. Contrast this with using SIGSTOP for the same purpose:
    the stopped tasks do not count toward system load.

    Change task_contributes_to_load() to return false if the task is
    frozen. This results in /proc/loadavg behavior that better meets
    users' expectations.

    Signed-off-by: Nathan Lynch
    Acked-by: Andrew Morton
    Acked-by: Nigel Cunningham
    Tested-by: Nigel Cunningham
    Cc:
    Cc: containers@lists.linux-foundation.org
    Cc: linux-pm@lists.linux-foundation.org
    Cc: Matt Helsley
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Nathan Lynch
     
  • Impact: fix build warnings and possibe compat misbehavior on IA64

    Building a kernel on ia64 might trigger these ugly build warnings:

    CC arch/ia64/ia32/sys_ia32.o
    In file included from arch/ia64/ia32/sys_ia32.c:55:
    arch/ia64/ia32/ia32priv.h:290:1: warning: "elf_check_arch" redefined
    In file included from include/linux/elf.h:7,
    from include/linux/module.h:14,
    from include/linux/ftrace.h:8,
    from include/linux/syscalls.h:68,
    from arch/ia64/ia32/sys_ia32.c:18:
    arch/ia64/include/asm/elf.h:19:1: warning: this is the location of the previous definition
    [...]

    sys_ia32.c includes linux/syscalls.h which in turn includes linux/ftrace.h
    to import the syscalls tracing prototypes.

    But including ftrace.h can pull too much things for a low level file,
    especially on ia64 where the ia32 private headers conflict with higher
    level headers.

    Now we isolate the syscall tracing headers in their own lightweight file.

    Reported-by: Tony Luck
    Tested-by: Tony Luck
    Signed-off-by: Frederic Weisbecker
    Acked-by: Tony Luck
    Signed-off-by: Steven Rostedt
    Cc: Peter Zijlstra
    Cc: Jason Baron
    Cc: "Frank Ch. Eigler"
    Cc: Mathieu Desnoyers
    Cc: KOSAKI Motohiro
    Cc: Lai Jiangshan
    Cc: Jiaying Zhang
    Cc: Michael Rubin
    Cc: Martin Bligh
    Cc: Michael Davidson
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Frederic Weisbecker
     
  • * git://git.infradead.org/battery-2.6:
    pda_power: Add optional OTG transceiver and voltage regulator support
    pcf50633_charger: Remove unused mbc_set_status function
    pcf50633_charger: Enable periodic charging restart

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    igb: remove sysfs entry that was used to set the number of vfs
    igbvf: add new driver to support 82576 virtual functions
    drivers/net/eql.c: Fix a dev leakage.
    niu: Fix unused variable warning.
    r6040: set MODULE_VERSION
    bnx2: Don't use reserved names
    FEC driver: add missing #endif
    niu: Fix error handling
    mv643xx_eth: don't reset the rx coal timer on interface up
    smsc911x: correct debugging message on mii read timeout
    ethoc: fix library build errors
    netfilter: ctnetlink: fix regression in expectation handling
    netfilter: fix selection of "LED" target in netfilter
    netfilter: ip6tables regression fix

    Linus Torvalds
     
  • Prepare for full barrier implementation: first remove the restricted support.

    Signed-off-by: Mikulas Patocka
    Signed-off-by: Alasdair G Kergon

    Mikulas Patocka
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    x86 ACPI: Add support for Always Running APIC timer
    ACPI x86: Make aperf/mperf MSR access in acpi_cpufreq read_only
    ACPI x86: Cleanup acpi_cpufreq structures related to aperf/mperf
    ACPICA: delete check for AML access to port 0x81-83
    ACPI: WMI: use .notify method instead of installing handler directly
    sony-laptop: use .notify method instead of installing handler directly
    panasonic-laptop: use .notify method instead of installing handler directly
    fujitsu-laptop: use .notify method instead of installing hotkey handler directly
    fujitsu-laptop: use .notify method instead of installing handler directly
    ACPI: video: use .notify method instead of installing handler directly
    ACPI: thermal: use .notify method instead of installing handler directly
    ACPI battery: fix async boot oops
    ACPI: delete acpi_device.g_list
    NULL noise: drivers/platform/x86/panasonic-laptop.c
    ACPI: cpufreq: remove dupilcated #include
    ACPI: Adjust Kelvin offset to match local implementation
    ACPI: convert acpi_device_lock spinlock to mutex

    Linus Torvalds
     
  • Thou shalt remember to use 'git add' or errors shall be visited on your
    downloads and there shall be wrath from on list and much gnashing of teeth.

    Thou shalt remember to use git status or there shall be catcalls and much
    embarrasment shall come to pass.

    Signed-off-by: Alan "I'm hiding" Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • David S. Miller
     

08 Apr, 2009

12 commits

  • Simplify tf_read() method, making it deal only with 'struct ide_taskfile' and
    the validity flags that the upper layer passes, and factoring out the code that
    deals with the high order bytes into ide_tf_readback() to be called from the
    only two functions interested, ide_complete_cmd() and ide_dump_sector().

    This should stop the needless code duplication in this method and so make
    it about twice smaller than it was; along with simplifying the setup for
    the method call, this should save both time and space...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • Simplify tf_load() method, making it deal only with 'struct ide_taskfile' and
    the validity flags that the upper layer passes, and moving the code that deals
    with the high order bytes into the only function interested, do_rw_taskfile().

    This should stop the needless code duplication in this method and so make
    it about twice smaller than it was; along with simplifying the setup for the
    method call, this should save both time and space...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • Make 'struct ide_taskfile' cover only 8 register values and thus put two such
    fields ('tf' and 'hob') into 'struct ide_cmd', dropping unnecessary 'tf_array'
    field from it.

    This required changing the prototype of ide_get_lba_addr() and ide_tf_dump().

    Signed-off-by: Sergei Shtylyov
    [bart: fix setting of ATA_LBA bit for LBA48 commands in __ide_do_rw_disk()]
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • Replace IDE_TFLAG_{IN|OUT}_* flags meaning to the taskfile register validity on
    input/output by the IDE_VALID_* flags and introduce 4 symmetric 8-bit register
    validity indicator subfields, 'valid.{input/output}.{tf|hob}', into the 'struct
    ide_cmd' instead of using the 'tf_flags' field for that purpose (this field can
    then be turned from 32-bit into 8-bit one).

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • Impact: dont break future extensions of INIT_TASK

    While not a problem right now, due to lack of a comma, build fails if
    elements are appended to INIT_TASK() macro in development code:

    arch/x86/kernel/init_task.c:33: error: request for member `XXXXXXXXXX' in something not a structure or union
    arch/x86/kernel/init_task.c:33: error: initializer element is not constant
    arch/x86/kernel/init_task.c:33: error: (near initialization for `init_task.ret_stack')
    make[1]: *** [arch/x86/kernel/init_task.o] Error 1
    make: *** [arch/x86/kernel] Error 2

    Signed-off-by: Tetsuo Handa
    Cc: srostedt@redhat.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Tetsuo Handa
     
  • …bjorn.notify' into release

    Len Brown
     
  • * 'core/softlockup' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    softlockup: make DETECT_HUNG_TASK default depend on DETECT_SOFTLOCKUP
    softlockup: move 'one' to the softlockup section in sysctl.c
    softlockup: ensure the task has been switched out once
    softlockup: remove timestamp checking from hung_task
    softlockup: convert read_lock in hung_task to rcu_read_lock
    softlockup: check all tasks in hung_task
    softlockup: remove unused definition for spawn_softlockup_task
    softlockup: fix potential race in hung_task when resetting timeout
    softlockup: fix to allow compiling with !DETECT_HUNG_TASK
    softlockup: decouple hung tasks check from softlockup detection

    Linus Torvalds
     
  • …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:
    branch tracer, intel-iommu: fix build with CONFIG_BRANCH_TRACER=y
    branch tracer: Fix for enabling branch profiling makes sparse unusable
    ftrace: Correct a text align for event format output
    Update /debug/tracing/README
    tracing/ftrace: alloc the started cpumask for the trace file
    tracing, x86: remove duplicated #include
    ftrace: Add check of sched_stopped for probe_sched_wakeup
    function-graph: add proper initialization for init task
    tracing/ftrace: fix missing include string.h
    tracing: fix incorrect return type of ns2usecs()
    tracing: remove CALLER_ADDR2 from wakeup tracer
    blktrace: fix pdu_len when tracing packet command requests
    blktrace: small cleanup in blk_msg_write()
    blktrace: NUL-terminate user space messages
    tracing: move scripts/trace/power.pl to scripts/tracing/power.pl

    Linus Torvalds
     
  • * 'irq/threaded' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    genirq: fix devres.o build for GENERIC_HARDIRQS=n
    genirq: provide old request_irq() for CONFIG_GENERIC_HARDIRQ=n
    genirq: threaded irq handlers review fixups
    genirq: add support for threaded interrupts to devres
    genirq: add threaded interrupt handler support

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI: pci_slot: grab refcount on slot's bus
    PCI Hotplug: acpiphp: grab refcount on p2p subordinate bus
    PCI: allow PCI core hotplug to remove PCI root bus
    PCI: Fix oops in pci_vpd_truncate
    PCI: don't corrupt enable_cnt when doing manual resource alignment
    PCI: annotate pci_rescan_bus as __ref, not __devinit
    PCI-IOV: fix missing kernel-doc
    PCI: Setup disabled bridges even if buses are added
    PCI: SR-IOV quirk for Intel 82576 NIC

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    loop: mutex already unlocked in loop_clr_fd()
    cfq-iosched: don't let idling interfere with plugging
    block: remove unused REQ_UNPLUG
    cfq-iosched: kill two unused cfqq flags
    cfq-iosched: change dispatch logic to deal with single requests at the time
    mflash: initial support
    cciss: change to discover first memory BAR
    cciss: kernel scan thread for MSA2012
    cciss: fix residual count for block pc requests
    block: fix inconsistency in I/O stat accounting code
    block: elevator quiescing helpers

    Linus Torvalds
     
  • The code that enables branch tracing for all (non-constant) branches
    plays games with the preprocessor and #define's the C 'if ()' construct
    to do tracing.

    That's all fine, but it fails for some unusual but valid C code that is
    sometimes used in macros, notably by the intel-iommu code:

    if (i=drhd->iommu, drhd->ignored) ..

    because now the preprocessor complains about multiple arguments to the
    'if' macro.

    So make the macro expansion of this particularly horrid trick use
    varargs, and handle the case of comma-expressions in if-statements. Use
    another macro to do it cleanly in just one place.

    This replaces a patch by David (and acked by Steven) that did this all
    inside that one already-too-horrid macro.

    Tested-by: Ingo Molnar
    Cc: David Woodhouse
    Cc: Steven Rostedt
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

07 Apr, 2009

6 commits