01 Jun, 2007

4 commits


31 May, 2007

17 commits

  • Use the __cpuinit instead of __devinit section annotations for code
    that deals with cpu hotplug. In addition add some more annotations on
    functions that have been left out so far.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • Signed-off-by: Christoph Hellwig
    Signed-off-by: Martin Schwidefsky

    Christoph Hellwig
     
  • To be able to run with the diagnose 224 switched off, a potential
    specification exception has to be handled.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky

    Michael Holzheu
     
  • Fix support for discontinuous memory

    Signed-off-by: Roman Zippel
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Add the basic infrastructure to allow runtime patching of kernel and modules
    to optimize a few functions with parameters, which are only calculated once
    during bootup and are otherwise constant. Use this for the conversion between
    virtual and physical addresses.

    Signed-off-by: Roman Zippel
    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Jarek Poplawski noted that boot_cpu_data.x86_cache_size is signed int
    and can be < 0 too.

    In fact we test for it. Except we assigned it to an unsigned value..

    Cc: Jarek Poplawski
    Cc: Ingo Molnar
    Cc: Nick Piggin
    Cc: Andi Kleen
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Fix 6197fe4d720ea3e2ee94cdc7ef32d6c0151199de

    arch/sparc/lib/atomic32.c: In function '__cmpxchg_u32':
    arch/sparc/lib/atomic32.c:127: error: 'addr' undeclared (first use in this function)
    arch/sparc/lib/atomic32.c:127: error: (Each undeclared identifier is reported only once
    arch/sparc/lib/atomic32.c:127: error: for each function it appears in.)

    I assume this is what was intended..

    Signed-off-by: Andrew Morton
    Acked-by: William Irwin
    Signed-off-by: David S. Miller

    Andrew Morton
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • Make my version of gcc happy.

    Signed-off-by: Andrew Morton
    Signed-off-by: Paul Mundt

    Andrew Morton
     
  • Several errors were spotted during building for custom config (SMP
    included). Although SMP still does not compile (no ipi and
    __smp_call_function) and does not work, this looks a bit cleaner.
    Some other errors obtained via gcc-4.1.0 build.

    Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Paul Mundt

    Evgeniy Polyakov
     
  • CC arch/sh/kernel/vsyscall/vsyscall.o
    a/arch/sh/kernel/vsyscall/vsyscall.c: In function 'arch_setup_additional_pages':
    a/arch/sh/kernel/vsyscall/vsyscall.c:63: error: dereferencing pointer to incomplete type
    a/arch/sh/kernel/vsyscall/vsyscall.c:67: error: dereferencing pointer to incomplete type
    a/arch/sh/kernel/vsyscall/vsyscall.c:82: error: dereferencing pointer to incomplete type
    a/arch/sh/kernel/vsyscall/vsyscall.c:85: error: dereferencing pointer to incomplete type
    a/arch/sh/kernel/vsyscall/vsyscall.c: In function 'arch_vma_name':
    a/arch/sh/kernel/vsyscall/vsyscall.c:91: error: dereferencing pointer to incomplete type

    Signed-off-by: Manuel Lauss
    Signed-off-by: Paul Mundt

    Manuel Lauss
     
  • Trivial fix for arch/sh/drivers/dma/dma-api.c compile failure:

    CC arch/sh/drivers/dma/dma-api.o
    a/arch/sh/drivers/dma/dma-api.c: In function 'dma_wait_for_completion':
    a/arch/sh/drivers/dma/dma-api.c:233: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
    a/arch/sh/drivers/dma/dma-api.c:233: error: (Each undeclared identifier is reported only once
    a/arch/sh/drivers/dma/dma-api.c:233: error: for each function it appears in.)
    a/arch/sh/drivers/dma/dma-api.c:233: warning: implicit declaration of function 'schedule'

    Signed-off-by: Manuel Lauss
    Signed-off-by: Paul Mundt

    Manuel Lauss
     
  • Add lost in_nmi definition to solve pcrel too far.

    Signed-off-by: Takashi YOSHII
    Signed-off-by: Paul Mundt

    Takashi YOSHII
     
  • Some of the new syscalls require supporting TIF_RESTORE_SIGMASK.

    Signed-off-by: Richard Henderson
    Signed-off-by: Linus Torvalds

    Richard Henderson
     
  • Remove 2 functions private to the alpha implemetation,
    in favor of similar functions in .

    Provide a more efficient version of the fls64 function
    for pre-ev67 alphas.

    Signed-off-by: Richard Henderson
    Signed-off-by: Linus Torvalds

    Richard Henderson
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    [ARM] Fix some section mismatch warnings
    [ARM] 4417/1: Serial: Fix AMBA drivers locking
    [ARM] 4394/1: ARMv7: Add the TLB range operations
    [ARM] 4410/1: Remove extern declarations in coyote/ixdpg425-pci.c
    [ARM] 4416/1: NWFPE: fix undeclared symbols
    [ARM] 4415/1: AML5900: fix sparse warnings from map_io
    [ARM] 4414/1: S3C2443: sparse fix for clock.c
    [ARM] 4412/1: S3C2412: reset errata fix
    [ARM] 4411/1: KS8695: Another serial driver fix
    [ARM] oprofile: avoid lockdep warnings on mpcore oprofile init
    [ARM] Fix stacktrace FP range checking
    [ARM] use __used attribute
    [ARM] enable arbitary speed tty ioctls and split input/output speed
    [ARM] remove unused header file: arch/arm/mach-s3c2410/bast.h
    [ARM] 4406/1: Trivial NSLU2 / NAS-100D header & setup code cleanup
    [ARM] 4405/1: NSLU2, DSM-G600 frequency fixup code
    [ARM] 4404/1: Trivial IXP42x Kconfig cleanup
    [ARM] 4403/1: Make the PXA-I2C driver work with lockdep validator
    [ARM] 4402/1: S3C2443: Add physical address of HSMMC controller
    [ARM] 4401/1: S3C2443: Add definitions for port GPIOJ

    Linus Torvalds
     
  • The following patch fixes these section mismatch warnings:

    WARNING: arch/arm/mach-at91/built-in.o(.text+0xdf4): Section mismatch: reference to .init.data:dk_nand_partition (between 'nand_partitions' and 'at91_leds_event')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (between 'nand_partitions' and 'ads7843_pendown_state')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xc28): Section mismatch: reference to .init.data:kb9202_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-footbridge/built-in.o(.text+0xaa4): Section mismatch: reference to .init.data:cats_pci (between 'cats_pci_init' and 'ebsa285_leds_event')WARNING: arch/arm/mach-ixp2000/built-in.o(.text+0xb54): Section mismatch: reference to .init.text:ixp2000_init_irq (between 'ixdp2x00_init_irq' and 'ixdp2x00_irq_handler')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x670): Section mismatch: reference to .init.text:ixp23xx_pci_common_init (between 'ixp23xx_pci_slave_init' and 'ixp23xx_pci_scan_bus')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x890): Section mismatch: reference to .init.text:ixp23xx_init_irq (between 'ixdp2351_init_irq' and 'roadrunner_pci_preinit')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x9a8): Section mismatch: reference to .init.text:ixp23xx_pci_preinit (after 'roadrunner_pci_preinit')
    WARNING: arch/arm/mach-imx/built-in.o(__ksymtab+0x80): Section mismatch: reference to .init.text:imx_set_mmc_info (between '__ksymtab_imx_set_mmc_info' and '__ksymtab_set_imx_fb_info')
    WARNING: arch/arm/mach-imx/built-in.o(__ksymtab+0x88): Section mismatch: reference to .init.text:set_imx_fb_info (after '__ksymtab_set_imx_fb_info')
    WARNING: arch/arm/mach-sa1100/built-in.o(.text+0x1930): Section mismatch: reference to .init.data:neponset_port_fns (between 'neponset_probe' and 'assabet_leds_event')
    WARNING: drivers/built-in.o(.text+0x3f100): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x3f1c8): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x4f988): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x4fa50): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')

    Signed-off-by: Sam Ravnborg
    Acked-by: Lennert Buytenhek
    Signed-off-by: Russell King

    Russell King
     

30 May, 2007

12 commits

  • We are currently using the ARMv6 operations but need to duplicate some
    of the code because of the introduction of the new CPU barrier
    instructions in ARMv7.

    Signed-off-by: Catalin Marinas
    Signed-off-by: Russell King

    Catalin Marinas
     
  • This patch removes apparently unnecessary extern declarations in
    coyote-pci.c and ixdpg425-pci.c within arch/arm/mach-ixp4xx and
    has been compile-tested without producing warnings or errors.

    Kernel coding style forbids the use of extern declarations within .c
    files.

    Signed-off-by: Michael-Luke Jones
    Signed-off-by: Russell King

    Michael-Luke Jones
     
  • Fix the undeclared symbols sparse is warning about.

    arch/arm/nwfpe/softfloat.c:1727:7: warning: symbol 'float64_to_uint32' was not declared. Should it be static?
    arch/arm/nwfpe/softfloat.c:1753:7: warning: symbol 'float64_to_uint32_round_to_zero' was not declared. Should it be static?

    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks
     
  • The map_io function does not need to be exported
    from this file, and therefore should be declared
    static.

    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks
     
  • Fix sparse warnings in the arch/arm/mach-s3c2443/clock.c,
    including an bug in initialising the cf clock initialiser
    where two values are being set for the ctrlbit.

    arch/arm/mach-s3c2443/clock.c:397:12: warning: symbol 'clk_usb_bus_host' was not declared. Should it be static?
    arch/arm/mach-s3c2443/clock.c:760:4: error: Initializer entry defined twice
    arch/arm/mach-s3c2443/clock.c:761:4: also defined here

    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks
     
  • The S3C2412 has an reset-errata where the clock
    may cause a glitch switching back to EXTCLK. We
    force a switch to EXTCLK before writing the
    reset register to force use of the CLKCON sync
    logic to properly switch.

    Fix problem reported by Matthieu Castet.

    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks
     
  • Fix lockdep warnings, caused by 'set_affinity' being called without
    the correct locks taken and local interrupts disabled:

    =================================
    [ INFO: inconsistent lock state ]
    2.6.22-rc2 #1
    ---------------------------------
    inconsistent {in-hardirq-W} -> {hardirq-on-W} usage.
    swapper/1 [HC0[0]:SC0[0]:HE1:SE1] takes:
    (irq_controller_lock){++..}, at: [] gic_set_cpu+0x60/0xa0
    {in-hardirq-W} state was registered at:
    [] lock_acquire+0x58/0x6c
    [] _spin_lock+0x40/0x50
    [] gic_mask_irq+0x2c/0x6c
    [] handle_level_irq+0x11c/0x14c
    [] asm_do_IRQ+0x60/0x84
    [] __irq_svc+0x4c/0xc0
    [] __alloc_bootmem_nopanic+0x74/0x88
    [] __alloc_bootmem+0x18/0x3c
    [] alloc_large_system_hash+0x16c/0x200
    [] inode_init_early+0x5c/0xa4
    [] vfs_caches_init_early+0x24/0xa0
    [] start_kernel+0x220/0x2fc
    [] 0x8078
    irq event stamp: 88438
    hardirqs last enabled at (88438): [] preempt_return+0x20/0x2c
    hardirqs last disabled at (88436): [] __do_softirq+0xb0/0x138
    softirqs last enabled at (88437): [] __do_softirq+0x104/0x138
    softirqs last disabled at (88428): [] irq_exit+0x68/0x7c

    other info that might help us debug this:
    no locks held by swapper/1.

    stack backtrace:
    [] (dump_stack+0x0/0x14) from [] (print_usage_bug+0x138/0x168)
    [] (print_usage_bug+0x0/0x168) from [] (mark_lock+0x484/0x6a0)
    [] (mark_lock+0x0/0x6a0) from [] (__lock_acquire+0x3c0/0x10c8)
    [] (__lock_acquire+0x0/0x10c8) from [] (lock_acquire+0x58/0x6c)
    [] (lock_acquire+0x0/0x6c) from [] (_spin_lock+0x40/0x50)
    [] (_spin_lock+0x0/0x50) from [] (gic_set_cpu+0x60/0xa0)
    [] (gic_set_cpu+0x0/0xa0) from [] (em_route_irq+0x38/0x40)
    [] (em_route_irq+0x0/0x40) from [] (em_setup+0x18/0xa4)
    [] (em_setup+0x0/0xa4) from [] (oprofile_arch_init+0x24/0xe8)
    [] (oprofile_arch_init+0x0/0xe8) from [] (oprofile_init+0x1c/0x64)
    [] (oprofile_init+0x0/0x64) from [] (kernel_init+0x154/0x368)
    [] (kernel_init+0x0/0x368) from [] (do_exit+0x0/0x904)
    oprofile: using arm/mpcore

    Signed-off-by: Russell King

    Russell King
     
  • Fix an oops in the stacktrace code, caused by improper range checking.
    We subtract 12 off 'fp' before testing to see if it's below the low
    bound. However, if 'fp' were zero before, it becomes a very large
    positive number, causing this test to succeed where it should fail.

    Signed-off-by: Russell King

    Russell King
     
  • Use the newly introduced __used attribute in place of the deprecated
    __attribute_used__. Functionally the same.

    Signed-off-by: David Rientjes
    Signed-off-by: Russell King

    David Rientjes
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Fill holes in hypervisor APIs and fix KTSB registry.
    [SPARC64]: Fix two bugs wrt. kernel 4MB TSB.
    [SPARC]: Mark as emulating cmpxchg, add appropriate depends for DRM.
    [SPARC]: Emulate cmpxchg like parisc
    [SPARC64]: Fix _PAGE_EXEC_4U check in sun4u I-TLB miss handler.
    [SPARC]: Linux always started with 9600 8N1
    [SPARC64]: arch/sparc64/time.c doesn't compile on Ultra 1 (no PCI)
    [SPARC64]: Eliminate NR_CPUS limitations.
    [SPARC64]: Use machine description and OBP properly for cpu probing.
    [SPARC64]: Negotiate hypervisor API for PCI services.
    [SPARC64]: Report proper system soft state to the hypervisor.
    [SPARC64]: Fix typo in sun4v_hvapi_register error handling.
    [SCSI] ESP: Kill SCSI_ESP_CORE and link directly just like jazz_esp
    [SCSI] jazz_esp: Converted to use esp_core.
    [SPARC64]: PCI device scan is way too verbose by default.
    [SERIAL] sunzilog: section mismatch fix
    [SPARC32]: Removes mismatch section warnigs in sparc time.c file
    [SPARC64]: Don't be picky about virtual-dma values on sun4v.
    [SPARC64]: Kill unused DIE_PAGE_FAULT enum value.
    [SCSI] pluto: Use wait_for_completion_timeout.

    Linus Torvalds
     
  • * 'for_paulus' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc:
    [POWERPC] Fix Kconfig warning
    [PPC] Fix modpost warning
    [POWERPC] Fix modpost warning
    [POWERPC] Fix Section mismatch warnings
    [POWERPC] QE: fix Kconfig 'select' warning with UCC_FAST
    [POWERPC] 52xx: unbreak lite5200 dts (_pic vs. -pic)
    [PPC] Remove duplicate export of __div64_32.
    [PPC] Fix COMMON symbol warnings

    Linus Torvalds
     
  • The RO_DATA section were hardcoded to a specific
    alignment in include/asm-generic/vmlinux.h.
    But for sparc64 this did not match the PAGE_SIZE.

    Introduce a new section definition named:
    RO_DATA that takes actual alignment as parameter.
    RODATA are provided for backward compatibility.

    On top of this avoid hardcoding alignment for
    sparc64 in reset of the script
    Fix is build-tested on sparc64 + x86_64.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

29 May, 2007

7 commits