27 May, 2011

1 commit

  • By the previous style change, CONFIG_GENERIC_FIND_NEXT_BIT,
    CONFIG_GENERIC_FIND_BIT_LE, and CONFIG_GENERIC_FIND_LAST_BIT are not used
    to test for existence of find bitops anymore.

    Signed-off-by: Akinobu Mita
    Acked-by: Greg Ungerer
    Cc: Arnd Bergmann
    Cc: Russell King
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

25 May, 2011

1 commit

  • Fold all the mmu_gather rework patches into one for submission

    Signed-off-by: Peter Zijlstra
    Reported-by: Hugh Dickins
    Cc: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     

14 May, 2011

1 commit


14 Apr, 2011

1 commit


08 Apr, 2011

1 commit


05 Apr, 2011

1 commit


01 Apr, 2011

3 commits

  • - Do not trace idle loop which takes a lot time
    - Fix cache handling in generic ftrace code
    - Do not trace lib functions ashldi3, ashrdi3, lshrdi3
    Functions are called from generic ftrace code which
    can't be traced

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Hook up name_to_handle_at, open_by_handle_at, clock_adjtime, syncfs

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Patches:
    "microblaze: Convert to new irq function names"
    sha (4adc192ec7d977c74c750320f289af9d61c1caca)
    and
    "microblaze: Use generic show_interrupts()"
    sha(9d61c18b25726306c9231428c17db42e3ff29ba7)

    should also setup edge/level in irq_set_chip_and_handler_name
    name parameter.

    Error log:
    ~ # cat /proc/interrupts
    CPU0
    2: 2 Xilinx INTC-Xilinx INTC eth0
    3: 2 Xilinx INTC-Xilinx INTC eth0
    4: 241 Xilinx INTC-Xilinx INTC timer
    6: 108 Xilinx INTC-Xilinx INTC serial

    Fixed:
    ~ # cat /proc/interrupts
    CPU0
    2: 2 Xilinx INTC-level eth0
    3: 2 Xilinx INTC-level eth0
    4: 238 Xilinx INTC-edge timer
    6: 108 Xilinx INTC-level serial

    Signed-off-by: Michal Simek
    Acked-by: Thomas Gleixner

    ---

    v2: Fix exchanged edge and level

    Michal Simek
     

31 Mar, 2011

1 commit


30 Mar, 2011

1 commit


29 Mar, 2011

2 commits


24 Mar, 2011

1 commit

  • This introduces CONFIG_GENERIC_FIND_BIT_LE to tell whether to use generic
    implementation of find_*_bit_le() in lib/find_next_bit.c or not.

    For now we select CONFIG_GENERIC_FIND_BIT_LE for all architectures which
    enable CONFIG_GENERIC_FIND_NEXT_BIT.

    But m68knommu wants to define own faster find_next_zero_bit_le() and
    continues using generic find_next_{,zero_}bit().
    (CONFIG_GENERIC_FIND_NEXT_BIT and !CONFIG_GENERIC_FIND_BIT_LE)

    Signed-off-by: Akinobu Mita
    Cc: Greg Ungerer
    Cc: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

21 Mar, 2011

1 commit

  • * 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: (25 commits)
    video: change to new flag variable
    scsi: change to new flag variable
    rtc: change to new flag variable
    rapidio: change to new flag variable
    pps: change to new flag variable
    net: change to new flag variable
    misc: change to new flag variable
    message: change to new flag variable
    memstick: change to new flag variable
    isdn: change to new flag variable
    ieee802154: change to new flag variable
    ide: change to new flag variable
    hwmon: change to new flag variable
    dma: change to new flag variable
    char: change to new flag variable
    fs: change to new flag variable
    xtensa: change to new flag variable
    um: change to new flag variables
    s390: change to new flag variable
    mips: change to new flag variable
    ...

    Fix up trivial conflict in drivers/hwmon/Makefile

    Linus Torvalds
     

17 Mar, 2011

3 commits

  • Replace EXTRA_CFLAGS with ccflags-y.

    Signed-off-by: matt mooney
    Acked-by: WANG Cong
    Signed-off-by: Michal Marek

    matt mooney
     
  • * 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits)
    tty: serial: altera_jtaguart: Add device tree support
    tty: serial: altera_uart: Add devicetree support
    dt: eliminate of_platform_driver shim code
    dt: Eliminate of_platform_{,un}register_driver
    dt/serial: Eliminate users of of_platform_{,un}register_driver
    dt/usb: Eliminate users of of_platform_{,un}register_driver
    dt/video: Eliminate users of of_platform_{,un}register_driver
    dt/net: Eliminate users of of_platform_{,un}register_driver
    dt/sound: Eliminate users of of_platform_{,un}register_driver
    dt/spi: Eliminate users of of_platform_{,un}register_driver
    dt: uartlite: merge platform and of_platform driver bindings
    dt: xilinx_hwicap: merge platform and of_platform driver bindings
    ipmi: convert OF driver to platform driver
    leds/leds-gpio: merge platform_driver with of_platform_driver
    dt/sparc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: move of_bus_type infrastructure to ibmebus
    drivercore/dt: add a match table pointer to struct device
    dt: Typo fix.
    altera_ps2: Add devicetree support
    ...

    Linus Torvalds
     
  • * 'next' of git://git.monstr.eu/linux-2.6-microblaze: (33 commits)
    microblaze: Do not copy reset vectors/manual reset vector setup
    microblaze: Fix _reset function
    microblaze: Fix microblaze init vectors
    microblaze: Fix circular headers dependency when ftrace is enabled.
    microblaze: Fix typo in Kconfig
    microblaze: Add missing export symbols for lib functions
    microblaze: Fix /dev/zero corruption from __clear_user()
    microblaze: Convert irq_chip to new functions
    microblaze: Select GENERIC_HARDIRQS_NO_DEPRECATED
    microblaze: Remove stale irq_chip.end
    microblaze: Fix sparse warnings - signal.c
    microblaze: Fix sparse warning - fault.c
    microblaze: Fix missing microblaze specific syscalls declaration
    microblaze: Fix sparse warnings - cache.c
    microblaze: Fix sparse warning - cpuinfo.h
    microblaze: Fix sparse warning - unwind.c
    microblaze: Fix sparse warning - consistent_alloc function
    microblaze: Fix sparse warnings - ptrace
    microblaze: Fix sparse warning - sw_exceptions
    microblaze: Fix sparse warning - timer.c
    ...

    Linus Torvalds
     

16 Mar, 2011

1 commit

  • …el/git/tip/linux-2.6-tip

    * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (27 commits)
    x86: Clean up apic.c and apic.h
    x86: Remove superflous goal definition of tsc_sync
    x86: dt: Correct local apic documentation in device tree bindings
    x86: dt: Cleanup local apic setup
    x86: dt: Fix OLPC=y/INTEL_CE=n build
    rtc: cmos: Add OF bindings
    x86: ce4100: Use OF to setup devices
    x86: ioapic: Add OF bindings for IO_APIC
    x86: dtb: Add generic bus probe
    x86: dtb: Add support for PCI devices backed by dtb nodes
    x86: dtb: Add device tree support for HPET
    x86: dtb: Add early parsing of IO_APIC
    x86: dtb: Add irq domain abstraction
    x86: dtb: Add a device tree for CE4100
    x86: Add device tree support
    x86: e820: Remove conditional early mapping in parse_e820_ext
    x86: OLPC: Make OLPC=n build again
    x86: OLPC: Remove extra OLPC_OPENFIRMWARE_DT indirection
    x86: OLPC: Cleanup config maze completely
    x86: OLPC: Hide OLPC_OPENFIRMWARE config switch
    ...

    Fix up conflicts in arch/x86/platform/ce4100/ce4100.c

    Linus Torvalds
     

15 Mar, 2011

3 commits

  • Reset vector can be setup by bootloader and kernel doens't need
    to touch it. If you require to setup reset vector, please use
    CONFIG_MANUAL_RESET_VECTOR throught menuconfig.
    It is not possible to setup address 0x0 as reset address because
    make no sense to set it up at all.

    Signed-off-by: Michal Simek
    Signed-off-by: John Williams

    Michal Simek
     
  • If soft reset falls through with no hardware assisted reset, the best
    we can do is jump to the reset vector and see what the bootloader left
    for us.

    Signed-off-by: Michal Simek
    Signed-off-by: John Williams

    Michal Simek
     
  • Microblaze vector table stores several vectors (reset, user exception,
    interrupt, debug exception and hardware exception).
    All these functions can be below address 0x10000. If they are, wrong
    vector table is genarated because jump is not setup from two instructions
    (imm upper 16bit and brai lower 16bit).
    Adding specific offset prevent problem if address is below 0x10000.
    For this case only brai instruction is used.

    Signed-off-by: Michal Simek

    Michal Simek
     

11 Mar, 2011

2 commits

  • Change futex_atomic_op_inuser and futex_atomic_cmpxchg_inatomic
    prototypes to use u32 types for the futex as this is the data type the
    futex core code uses all over the place.

    Signed-off-by: Michel Lespinasse
    Cc: Darren Hart
    Cc: Peter Zijlstra
    Cc: Matt Turner
    Cc: Russell King
    Cc: David Howells
    Cc: Tony Luck
    Cc: Michal Simek
    Cc: Ralf Baechle
    Cc: "James E.J. Bottomley"
    Cc: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: Paul Mundt
    Cc: "David S. Miller"
    Cc: Chris Metcalf
    Cc: Linus Torvalds
    LKML-Reference:
    Signed-off-by: Thomas Gleixner

    Michel Lespinasse
     
  • The cmpxchg_futex_value_locked API was funny in that it returned either
    the original, user-exposed futex value OR an error code such as -EFAULT.
    This was confusing at best, and could be a source of livelocks in places
    that retry the cmpxchg_futex_value_locked after trying to fix the issue
    by running fault_in_user_writeable().

    This change makes the cmpxchg_futex_value_locked API more similar to the
    get_futex_value_locked one, returning an error code and updating the
    original value through a reference argument.

    Signed-off-by: Michel Lespinasse
    Acked-by: Chris Metcalf [tile]
    Acked-by: Tony Luck [ia64]
    Acked-by: Thomas Gleixner
    Tested-by: Michal Simek [microblaze]
    Acked-by: David Howells [frv]
    Cc: Darren Hart
    Cc: Peter Zijlstra
    Cc: Matt Turner
    Cc: Russell King
    Cc: Ralf Baechle
    Cc: "James E.J. Bottomley"
    Cc: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: Paul Mundt
    Cc: "David S. Miller"
    Cc: Linus Torvalds
    LKML-Reference:
    Signed-off-by: Thomas Gleixner

    Michel Lespinasse
     

10 Mar, 2011

1 commit

  • Remove compilation failure when ftrace in enabled.

    Error log:
    CC kernel/trace/power-traces.o
    In file included from arch/microblaze/include/asm/irq.h:15,
    from include/linux/irq.h:27,
    from include/asm-generic/hardirq.h:12,
    from arch/microblaze/include/asm/hardirq.h:15,
    from include/linux/hardirq.h:7,
    from include/linux/ftrace_event.h:7,
    from include/trace/ftrace.h:19,
    from include/trace/define_trace.h:96,
    from include/trace/events/power.h:240,
    from kernel/trace/power-traces.c:14:
    include/linux/interrupt.h: In function '__raise_softirq_irqoff':
    include/linux/interrupt.h:413: error: implicit declaration of function 'trace_softirq_raise'
    In file included from include/trace/ftrace.h:554,
    from include/trace/define_trace.h:96,
    from include/trace/events/power.h:240,
    from kernel/trace/power-traces.c:14:
    include/trace/events/irq.h: In function 'ftrace_test_probe_irq_handler_entry':
    include/trace/events/irq.h:37: error: implicit declaration of function 'check_trace_callback_type_irq_handler_entry'
    include/trace/events/irq.h: In function 'ftrace_test_probe_irq_handler_exit':
    include/trace/events/irq.h:67: error: implicit declaration of function 'check_trace_callback_type_irq_handler_exit'
    include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_entry':
    include/trace/events/irq.h:112: error: implicit declaration of function 'check_trace_callback_type_softirq_entry'
    include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_exit':
    include/trace/events/irq.h:126: error: implicit declaration of function 'check_trace_callback_type_softirq_exit'
    include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_raise':
    include/trace/events/irq.h:140: error: implicit declaration of function 'check_trace_callback_type_softirq_raise'
    make[5]: *** [kernel/trace/power-traces.o] Error 1
    make[4]: *** [kernel/trace] Error 2
    make[3]: *** [kernel] Error 2

    Suggested-by: Steven Rostedt
    Signed-off-by: Michal Simek

    Michal Simek
     

09 Mar, 2011

15 commits

  • s/Exectuable/Executable/

    Signed-off-by: Tobias Klauser

    Tobias Klauser
     
  • Adding missing export symbols for loadable modules.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • A userland read of more than PAGE_SIZE bytes from /dev/zero results in
    (a) not all of the bytes returned being zero, and
    (b) memory corruption due to zeroing of bytes beyond the user buffer.

    This is caused by improper constraints on the assembly __clear_user function.
    The constrints don't indicate to the compiler that the pointer argument is
    modified. Since the function is inline, this results in double-incrementing
    of the pointer when __clear_user() is invoked through a multi-page read() of
    /dev/zero.

    Signed-off-by: Steven J. Magnani
    Acked-by: Michal Simek
    CC: stable@kernel.org

    Steven J. Magnani
     
  • Use proper irq_desc wrappers while at it.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Michal Simek

    Thomas Gleixner
     
  • All irq_chips converted.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • irq_chip.end got obsolete with the removal of __do_IRQ().

    Signed-off-by: Thomas Gleixner
    Cc: Peter Zijlstra
    Tested-by: Michal Simek
    LKML-Reference:

    Thomas Gleixner
     
  • Warning log:
    CHECK arch/microblaze/kernel/signal.c
    arch/microblaze/kernel/signal.c:200:9: warning: Using plain integer as NULL pointer
    arch/microblaze/kernel/signal.c:201:9: warning: incorrect type in initializer (different address spaces)
    arch/microblaze/kernel/signal.c:201:9: expected void [noderef] *volatile __gu_val
    arch/microblaze/kernel/signal.c:201:9: got void *

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Warning log:
    CHECK arch/microblaze/mm/fault.c
    arch/microblaze/mm/fault.c:51:6: warning: incorrect type in initializer (different address spaces)
    arch/microblaze/mm/fault.c:51:6: expected unknown type 2const [noderef] *__gu_addr
    arch/microblaze/mm/fault.c:51:6: got unsigned int *
    arch/microblaze/mm/fault.c:68:6: warning: symbol 'bad_page_fault' was not declared. Should it be static?

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Warning log:
    CHECK arch/microblaze/kernel/sys_microblaze.c
    arch/microblaze/kernel/sys_microblaze.c:37:17: warning: symbol 'microblaze_vfork' was not declared. Should it be static?
    arch/microblaze/kernel/sys_microblaze.c:43:17: warning: symbol 'microblaze_clone' was not declared. Should it be static?
    arch/microblaze/kernel/sys_microblaze.c:50:17: warning: symbol 'microblaze_execve' was not declared. Should it be static?

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Warning log:
    CHECK arch/microblaze/kernel/cpu/cache.c
    arch/microblaze/kernel/cpu/cache.c:522:21: warning: symbol 'wb_msr' was not declared. Should it be static?
    arch/microblaze/kernel/cpu/cache.c:538:21: warning: symbol 'wb_nomsr' was not declared. Should it be static?
    arch/microblaze/kernel/cpu/cache.c:554:21: warning: symbol 'wt_msr' was not declared. Should it be static?
    arch/microblaze/kernel/cpu/cache.c:569:21: warning: symbol 'wt_nomsr' was not declared. Should it be static?
    arch/microblaze/kernel/cpu/cache.c:585:21: warning: symbol 'wt_msr_noirq' was not declared. Should it be static?
    arch/microblaze/kernel/cpu/cache.c:600:21: warning: symbol 'wt_nomsr_noirq' was not declared. Should it be static?

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Warning log:
    CHECK arch/microblaze/kernel/cpu/cpuinfo-static.c
    arch/microblaze/include/asm/cpuinfo.h:101:21: warning: incorrect type in argument 1 (different signedness)
    arch/microblaze/include/asm/cpuinfo.h:101:21: expected unsigned int const [usertype] *p
    arch/microblaze/include/asm/cpuinfo.h:101:21: got int *[assigned] val
    ...

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Warning log:
    CHECK arch/microblaze/kernel/unwind.c
    arch/microblaze/kernel/unwind.c:186:6: warning: symbol 'microblaze_unwind_inner' was not declared. Should it be static?

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Warning in dma.c was caused by incorrect type in consistent_alloc function.

    Warning log:
    CHECK arch/microblaze/kernel/dma.c
    arch/microblaze/kernel/dma.c:53:26: warning: incorrect type in argument 1 (different base types)
    arch/microblaze/kernel/dma.c:53:26: expected int [signed] gfp
    arch/microblaze/kernel/dma.c:53:26: got restricted unsigned int [usertype] flag

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Warning log:
    CHECK arch/microblaze/kernel/ptrace.c
    arch/microblaze/kernel/ptrace.c:126:11: warning: incorrect type in initializer (different address spaces)
    arch/microblaze/kernel/ptrace.c:126:11: expected unknown type 2[noderef] *__pu_addr
    arch/microblaze/kernel/ptrace.c:126:11: got unsigned long *
    arch/microblaze/kernel/ptrace.c:134:17: warning: symbol 'do_syscall_trace_enter' was not declared. Should it be static?
    arch/microblaze/kernel/ptrace.c:157:17: warning: symbol 'do_syscall_trace_leave' was not declared. Should it be static?

    Signed-off-by: Michal Simek

    Michal Simek
     
  • Function sw_exception is linked with asm code.

    Warning log:
    CHECK arch/microblaze/kernel/exceptions.c
    arch/microblaze/kernel/exceptions.c:53:6: warning: symbol 'sw_exception' was not declared. Should it be static?

    Signed-off-by: Michal Simek

    Michal Simek