27 Jul, 2007

40 commits

  • BLK_DEV_BSG was added outside of the if BLOCK check, which allows it to
    be enabled when CONFIG_BLOCK=n. This leads to many screenlengths of
    errors, starting with a parse error on the request_queue_t definition.
    Obviously this wasn't intended for CONFIG_BLOCK=n usage, so just move the
    option back in to the block.

    Caught with a randconfig on sh.

    Signed-off-by: Paul Mundt

    --

    block/Kconfig | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)
    Signed-off-by: Jens Axboe

    Paul Mundt
     
  • The two comments were transposed.

    Signed-off-by: Qi Yong
    Signed-off-by: Jens Axboe

    Qi Yong
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
    drivers/mmc/core/: make 3 functions static
    mmc: add missing printk levels
    mmc: remove redundant debug information from sdhci and wbsd
    mmc: proper debugging output in core
    mmc: be more verbose about card insertions/removal
    mmc: Don't hold lock when releasing an added card
    mmc: add a might_sleep() to mmc_claim_host()
    mmc: update kerneldoc
    mmc: update header file paths
    sdhci: add support to ENE-CB714
    mmc: check error bits before command completion

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (21 commits)
    [POWERPC] spusched: Fix initial timeslice calculation
    [POWERPC] spufs: Fix incorrect initialization of cbe_spu_info.spus
    [POWERPC] Fix Maple platform ISA bus
    [POWERPC] Make pci_iounmap actually unmap things
    [POWERPC] Add function to check if address is an IO port
    [POWERPC] Fix Pegasos keyboard detection
    [POWERPC] iSeries: Fix section mismatch warning in lpevents
    [POWERPC] iSeries: Fix section mismatch warnings
    [POWERPC] iSeries: We need vio_enable_interrupts
    [POWERPC] Fix RTC and device tree on linkstation machines
    [POWERPC] Add of_register_i2c_devices()
    [POWERPC] Fix loop with unsigned long counter variable
    [POWERPC] Fix register labels on show_regs() message for 4xx/Book-E
    [POWERPC] Only allow building of BootX text support on PPC_MULTIPLATFORM
    [POWERPC] Fix the ability to reset on MPC8544 DS and MPC8568 MDS boards
    [POWERPC] Fix mpc7448hpc2 tsi108 device_type bug
    [POWREPC] Fixup a number of modpost warnings on ppc32
    [POWERPC] Fix ethernet PHY support on MPC8544 DS
    [POWERPC] Don't try to allocate resources for a Freescale POWERPC PHB
    Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()"
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched:
    [PATCH] sched: debug feature - make the sched-domains tree runtime-tweakable
    [PATCH] sched: add above_background_load() function
    [PATCH] sched: update Documentation/sched-stats.txt
    [PATCH] sched: mark sysrq_sched_debug_show() static
    [PATCH] sched: make cpu_clock() not use the rq clock
    [PATCH] sched: remove unused rq->load_balance_class
    [PATCH] sched: arch preempt notifier mechanism
    [PATCH] sched: increase SCHED_LOAD_SCALE_FUZZ

    Linus Torvalds
     
  • It's a totally independent decision for the user whether he wants
    suspend and/or hibernation support, and ACPI shouldn't care.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Commit bd804eba1c8597cbb7cd5a5f9fe886aae16a079a ("PM: Introduce
    pm_power_off_prepare") caused problems in the poweroff path, as reported by
    YOSHIFUJI Hideaki / 吉藤英明.

    Generally, sysdev_shutdown() should be called after the ACPI preparation for
    powering the system off. To make it happen, we can separate sysdev_shutdown()
    from device_shutdown() and call it directly wherever necessary.

    Signed-off-by: Rafael J. Wysocki
    Tested-by: YOSHIFUJI Hideaki / 吉藤英明
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • This reverts most of commit 19d36ccdc34f5ed444f8a6af0cbfdb6790eb1177.

    The way to DEBUG_RODATA interactions with KPROBES and CPU hotplug is to
    just not mark the text as being write-protected in the first place.
    Both of those facilities depend on rewriting instructions.

    Having "helpful" debug facilities that just cause more problem is not
    being helpful. It just adds complexity and bugs. Not worth it.

    Reported-by: Rafael J. Wysocki
    Cc: Andi Kleen
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • These are manual fixups after running Lindent. No functional change.

    Signed-off-by: Bjorn Helgaas
    Cc: Len Brown
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Run Lindent on all PNP source files.

    Produced by:

    $ quilt new pnp-lindent
    $ find drivers/pnp -name \*.[ch] | xargs quilt add
    $ quilt add include/linux/{pnp.h,pnpbios.h}
    $ scripts/Lindent drivers/pnp/*.c drivers/pnp/*/*.c include/linux/pnp*.h
    $ quilt refresh --sort

    Signed-off-by: Bjorn Helgaas
    Cc: Len Brown
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • tsc_unstable is declared twice.

    Signed-off-by: Thomas Gleixner
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     
  • Change INT0 trigger mode from edge-sense mode to level-sense mode,
    in order to fix the following timeout error:
    'NETDEV WATCHDOG: eth0: transmit timed out'.

    This patch is required only for the Mappi platform.

    Signed-off-by: Hirokazu Takata
    Cc: Hitoshi Yamamoto
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hirokazu Takata
     
  • With the introduction of kernelcore=, a configurable zone is created on
    request. In some cases, this value will be small enough that some nodes
    contain only ZONE_MOVABLE. On some NUMA configurations when this occurs,
    arch-independent zone-sizing will get the size of the memory holes within
    the node incorrect. The value of present_pages goes negative and the boot
    fails.

    This patch fixes the bug in the calculation of the size of the hole. The
    test case is to boot test a NUMA machine with a low value of kernelcore=
    before and after the patch is applied. While this bug exists in early
    kernel it cannot be triggered in practice.

    This patch has been boot-tested on a variety machines with and without
    kernelcore= set.

    Signed-off-by: Mel Gorman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • Fix link errors below by selecting FW_LOADER
    LD .tmp_vmlinux1
    drivers/built-in.o: In function `cyz_load_fw':
    drivers/char/cyclades.c:4908: undefined reference to `request_firmware'
    drivers/char/cyclades.c:4979: undefined reference to `release_firmware'

    Cc:
    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Fix the following two section mismatch warnings:

    WARNING: vmlinux.o(.text+0x1ce84): Section mismatch: reference to .init.text:free_bootmem (between 'free_tce_table' and 'build_tce_table')
    WARNING: vmlinux.o(.text+0x1d04d): Section mismatch: reference to .init.text:__alloc_bootmem_low (between 'alloc_tce_table' and 'kretprobe_trampoline_holder')

    In both cases the functions was used only from __init
    context so mark them __init.

    Signed-off-by: Sam Ravnborg
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sam Ravnborg
     
  • Fixed 'depends on PPC_PASEMI' in EDAC Kconfig. Module PASEMI depends ONLY on
    the PASEMI on PPC.

    Was previously enabled for ALL PPC

    Cc: Alan Cox
    Cc: Egor N. Martovetsky
    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • EDAC has a foundation to perform software memory scrubbing, but it requires a
    per architecture (atomic_scrub) function for performing an atomic update
    operation. Under X86, this is done with a

    lock: add [addr],0

    in the file asm-x86/edac.h

    This patch provides the MIPS arch with that atomic function, atomic_scrub() in

    asm-mips/edac.h

    Cc: Alan Cox
    Cc: Ralf Baechle
    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • This patch fixes sysfs exit code for the EDAC PCI device in a similiar manner
    and the previous fixes for EDAC_MC and EDAC_DEVICE.

    It removes the old (and incorrect) completion model and uses reference counts
    on per instance kobjects and on the edac core module.

    This pattern was applied to the edac_mc and edac_device code, but the EDAC PCI
    code was missed. In addition, this fixes a system hang after a low level
    driver was unloaded. (A cleanup function was called twice, which really
    screwed things up)

    Cc: Greg KH
    Cc: Alan Cox
    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • This fixes a deadlock that could occur on a 'setup' and 'teardown' sequence of
    the workq for a edac_mc control structure instance. A similiar fix was
    previously implemented for the edac_device code.

    In addition, the edac_mc device code there was missing code to allow the workq
    period valu to be altered via sysfs control.

    This patch adds that fix on the code, and allows for the changing of the
    period value as well.

    Cc: Alan Cox
    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • Nathan Lynch reported:
    2.6.23-rc1 breaks the build for 64-bit powerpc for me (using
    maple_defconfig):

    LD vmlinux.o
    powerpc64-unknown-linux-gnu-ld: dynreloc miscount for
    kernel/built-in.o, section .opd
    powerpc64-unknown-linux-gnu-ld: can not edit opd Bad value
    make: *** [vmlinux.o] Error 1

    However, I see a possibly related binutils patch:
    http://article.gmane.org/gmane.comp.gnu.binutils/33650

    It was tracked down to be caused by the weak prototype
    declaration in mm.h:
    __attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma);

    But there is no need to make the declaration weak - only the definition
    needs to be marked weak. So drop the weak declaration. And in the process
    drop the duplicate definition in page.h for powerpc.

    Note: the arch_vma_name fix for x86_64 needs to be applied first to avoid
    breaking x86_64

    Signed-off-by: Sam Ravnborg
    Cc: Nathan Lynch
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sam Ravnborg
     
  • The function arch_vma_name() is declared weak and thus it was
    not noticed that x86_64 had two almost identical implementations.

    It was introduced in syscall32.c by: c633090e3105e779c97d4978e5e3d7d66b291cfb
    It was introduced in mm/init.c by: 2aae950b21e4bc789d1fc6668faf67e8748300b7

    Signed-off-by: Roland McGrath
    Acked-by: Sam Ravnborg
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roland McGrath
     
  • chipsfb.c shouldn't use PM_SUSPEND_MEM in there, but PM_EVENT_SUSPEND.

    Cc: Cedric Le Goater
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • ext[234]_check_descriptors sanity checks block group descriptor geometry at
    mount time, testing whether the block bitmap, inode bitmap, and inode table
    reside wholly within the blockgroup. However, the inode table test is off
    by one so that if the last block in the inode table resides on the last
    block of the block group, the test incorrectly fails. This is because it
    tests the last block as (start + length) rather than (start + length - 1).

    This can be seen by trying to mount a filesystem made such as:

    mkfs.ext2 -F -b 1024 -m 0 -g 256 -N 3744 fsfile 1024

    which yields:

    EXT2-fs error (device loop0): ext2_check_descriptors: Inode table for group 0 not in group (block 101)!
    EXT2-fs: group descriptors corrupted!

    There is a similar bug in e2fsprogs, patch already sent for that.

    (I wonder if inside(), outside(), and/or in_range() should someday be
    used in this and other tests throughout the ext filesystems...)

    Signed-off-by: Eric Sandeen
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Sandeen
     
  • This patch fixes an obvious use-after-free spotted by the Coverity checker.

    Signed-off-by: Adrian Bunk
    Acked-by: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • drivers/edac/edac_stub.c:15:22: asm/edac.h: No such file or directory

    was it even supposed to work?

    Cc: Douglas Thompson
    Cc: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • ia64:

    drivers/i2c/chips/ds1682.c: In function `ds1682_show':
    drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long unsigned int arg (arg 3)
    drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long unsigned int arg (arg 3)

    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Alphabetic reordering of the drivers in the rtc subsys makefile.

    (akpm: merge this asap! Makefiles are the source of many patch conflicts..)

    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • release_pages() in mm/swap.c changes page_count() to be 0 without removing
    PageLRU flag...

    This means isolate_lru_page() can see a page, PageLRU() &&
    page_count(page)==0.. This is BUG. (get_page() will be called against
    count=0 page.)

    Signed-off-by: KAMEZAWA Hiroyuki
    Acked-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • In usual, migrate_pages(page,,) is called with holding mm->sem by system call.
    (mm here is a mm_struct which maps the migration target page.)
    This semaphore helps avoiding some race conditions.

    But, if we want to migrate a page by some kernel codes, we have to avoid
    some races. This patch adds check code for following race condition.

    1. A page which page->mapping==NULL can be target of migration. Then, we have
    to check page->mapping before calling try_to_unmap().

    2. anon_vma can be freed while page is unmapped, but page->mapping remains as
    it was. We drop page->mapcount to be 0. Then we cannot trust page->mapping.
    So, use rcu_read_lock() to prevent anon_vma pointed by page->mapping from
    being freed during migration.

    Signed-off-by: KAMEZAWA Hiroyuki
    Acked-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • Davi fixed a missing cast in the __put_user(), that was making timerfd
    return a single byte instead of the full value.

    Talking with Michael about the timerfd man page, we think it'd be better to
    use a u64 for the returned value, to align it with the eventfd
    implementation.

    This is an ABI change. The timerfd code is new in 2.6.22 and if we merge this
    into 2.6.23 then we should also merge it into 2.6.22.x. That will leave a few
    early 2.6.22 kernels out in the wild which might misbehave when a future
    timerfd-enabled glibc is run on them.

    mtk says: The difference would be that read() will only return 4 bytes, while
    the application will expect 8. If the application is checking the size of
    returned value, as it should, then it will be able to detect the problem (it
    could even be sophisticated enough to know that if this is a 4-byte return,
    then it is running on an old 2.6.22 kernel). If the application is not
    checking the return from read(), then its 8-byte buffer will not be filled --
    the contents of the last 4 bytes will be undefined, so the u64 value as a
    whole will be junk.

    Signed-off-by: Davide Libenzi
    Cc: Michael Kerrisk
    Cc: Davi Arnaut
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Davide Libenzi
     
  • This patch fixes the following compile error introduced by
    commit e8666b2718fdb5bf0ea7c3126f7e292bbbf2946b and reported
    by Alexey Dobriyan:

    CC arch/i386/kernel/acpi/cstate.o
    In file included from arch/i386/kernel/acpi/cstate.c:17:
    include/acpi/processor.h:88: error: expected specifier-qualifier-list before 'acpi_integer'

    If you select something you must ensure that the dependencies of what
    you are selecting are fulfilled.

    Signed-off-by: Adrian Bunk
    Cc: Alexey Dobriyan
    Cc: Joshua Hoblitt
    Cc: Dave Jones
    Cc: Michal Piotrowski
    Cc: Len Brown
    Cc: Andrew Morton
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Documentation: The FIXMEs

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Switcher

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Host

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Launcher

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Drivers

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Guest

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • The netfilter code had very good documentation: the Netfilter Hacking HOWTO.
    Noone ever read it.

    So this time I'm trying something different, using a bit of Knuthiness.

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Fix:
    linux/include/xen/page.h: In function mfn_pte:
    linux/include/xen/page.h:149: error: __supported_pte_mask undeclared (first use in this function)
    linux/include/xen/page.h:149: error: (Each undeclared identifier is reported only once
    linux/include/xen/page.h:149: error: for each function it appears in.)

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeremy Fitzhardinge
     
  • Fix a typo turned up by a Coverity check: referring to the wrong register,
    which could cause problems with DS1338 RTCs whose oscillators halted.

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell