17 Oct, 2007

27 commits

  • Replace some SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK

    Signed-off-by: Roel Kluin
    Acked-by: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • Remove the old-fashioned lk201 driver under drivers/tc/ that used to be
    used by the old dz.c and zs.c drivers, which is now orphan code referred to
    from nowhere and does not build anymore. A modern replacement is available
    as drivers/input/keyboard/lkkbd.c.

    There are no plans to do anything about this piece of code and it does not
    fit anywhere anymore, so it is not just a matter of maintenance or the lack
    of. There are still some bits that might be added to the new lkkbd.c
    driver based on the old code, and the embedded hardware documentation which
    is otherwise quite hard to get hold of might be useful to keep too. Both
    of these can be done separately though. RIP.

    Signed-off-by: Maciej W. Rozycki
    Acked-by: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Maciej W. Rozycki
     
  • dma_cache_(wback|inv|wback_inv) were the earliest attempt on a generalized
    cache managment API for I/O purposes. Originally it was basically the raw
    MIPS low level cache API exported to the entire world. The API has
    suffered from a lack of documentation, was not very widely used unlike it's
    more modern brothers and can easily be replaced by dma_cache_sync. So
    remove it rsp. turn the surviving bits back into an arch private API, as
    discussed on linux-arch.

    Signed-off-by: Ralf Baechle
    Acked-by: Paul Mundt
    Acked-by: Paul Mackerras
    Acked-by: David S. Miller
    Acked-by: Kyle McMartin
    Acked-by: Haavard Skinnemoen
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ralf Baechle
     
  • All asm/ipc.h files do only #include .

    This patch therefore removes all include/asm-*/ipc.h files and moves the
    contents of include/asm-generic/ipc.h to include/linux/ipc.h.

    Signed-off-by: Adrian Bunk
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • For some time /proc/sys/kernel/core_pattern has been able to set its output
    destination as a pipe, allowing a user space helper to receive and
    intellegently process a core. This infrastructure however has some
    shortcommings which can be enhanced. Specifically:

    1) The coredump code in the kernel should ignore RLIMIT_CORE limitation
    when core_pattern is a pipe, since file system resources are not being
    consumed in this case, unless the user application wishes to save the core,
    at which point the app is restricted by usual file system limits and
    restrictions.

    2) The core_pattern code should be able to parse and pass options to the
    user space helper as an argv array. The real core limit of the uid of the
    crashing proces should also be passable to the user space helper (since it
    is overridden to zero when called).

    3) Some miscellaneous bugs need to be cleaned up (specifically the
    recognition of a recursive core dump, should the user mode helper itself
    crash. Also, the core dump code in the kernel should not wait for the user
    mode helper to exit, since the same context is responsible for writing to
    the pipe, and a read of the pipe by the user mode helper will result in a
    deadlock.

    This patch:

    Remove the check of RLIMIT_CORE if core_pattern is a pipe. In the event that
    core_pattern is a pipe, the entire core will be fed to the user mode helper.

    Signed-off-by: Neil Horman
    Cc:
    Cc:
    Cc: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Neil Horman
     
  • Switch single-linked binfmt formats list to usual list_head's. This leads
    to one-liners in register_binfmt() and unregister_binfmt(). The downside
    is one pointer more in struct linux_binfmt. This is not a problem, since
    the set of registered binfmts on typical box is very small -- (ELF +
    something distro enabled for you).

    Test-booted, played with executable .txt files, modprobe/rmmod binfmt_misc.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (40 commits)
    kbuild: introduce ccflags-y, asflags-y and ldflags-y
    kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP
    kbuild: enable use of AFLAGS and CFLAGS on commandline
    kbuild: enable 'make AFLAGS=...' to add additional options to AS
    kbuild: fix AFLAGS use in h8300 and m68knommu
    kbuild: check for wrong use of CFLAGS
    kbuild: enable 'make CFLAGS=...' to add additional options to CC
    kbuild: fix up CFLAGS usage
    kbuild: make modpost detect unterminated device id lists
    kbuild: call export_report from the Makefile
    kbuild: move Kai Germaschewski to CREDITS
    kconfig/menuconfig: distinguish between selected-by-another options and comments
    kconfig: tristate choices with mixed tristate and boolean values
    include/linux/Kbuild: remove duplicate entries
    kbuild: kill backward compatibility checks
    kbuild: kill EXTRA_ARFLAGS
    kbuild: fix documentation in makefiles.txt
    kbuild: call make once for all targets when O=.. is used
    kbuild: pass -g to assembler under CONFIG_DEBUG_INFO
    kbuild: update _shipped files for kconfig syntax cleanup
    ...

    Fix up conflicts in arch/um/sys-{x86_64,i386}/Makefile manually.

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Increase cp0 compare clockevent min_delta_ns from 0x30 to 0x300.
    [MIPS] Cache: Provide more information on cache policy on bootup.
    [MIPS] Fix aliasing bug in copy_user_highpage, take 2.
    [MIPS] VPE loader: convert from struct class_ device to struct device
    [MIPS] MIPSsim: Fix booting from NFS root
    [MIPS] Alchemy: Get rid of au1xxx_irq_map_t.
    [MIPS] Alchemy: Get rid of au_ffz().
    [MIPS] Alchemy: Get rid of au_ffs().
    [MIPS] Alchemy: cleanup interrupt code.
    [MIPS] Lasat: Fix build by conversion to irq_cpu.c.
    [MIPS] Lasat: Add #ifndef ... #endif include warpper to lasatint.h.
    [MIPS] IP22: Enable -Werror.
    [MIPS] IP22: Fix warning.
    [MIPS] IP22: Complain if requesting the front panel irq failed.
    [MIPS] vmlinux.lds.S: Handle KPROBES_TEXT.
    [MIPS] vmlinux.lds.S: Fix handling of .notes in final link.
    [MIPS] vmlinux.lds.S: Remove duplicate comment.
    [MIPS] MSP71XX: Add workarounds file.
    [MIPS] IP32: Fix build by conversion to irq_cpu.c.

    Linus Torvalds
     
  • Extremly low values are of dubious usefulness anyway but in this case
    they actually were killing Qemu which simply wasn't able to complete
    mips_next_event() within 0x30 100MHz cycles even on fast hosts.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • This should help making bug reports for the gadzillion of cores with all
    their configuration and synthesis options more useful.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Turns out b868868ae0f7272228c95cc760338ffe35bb739d wasn't quite right.
    When called for a page that isn't marked dirty it would artificially
    create an alias instead of doing the obvious thing and access the page
    via KSEG0.

    The same issue also exists in copy_to_user_page and copy_from_user_page
    which was causing the machine to die under rare circumstances for example
    when running ps if the BUG_ON() assertion added by the earlier fix was
    getting triggered.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Kay Sievers
    Signed-off-by: Ralf Baechle

    Kay Sievers
     
  • MIPSsim probably doesn't have any sort of environment, but writing
    a zero in it kills even the compiled in command line. This prevents
    booting via NFS root.

    Signed-Off-By: Thiemo Seufer
    Signed-off-by: Ralf Baechle

    Thiemo Seufer
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • It was plain a bad idea ...

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • CC arch/mips/sgi-ip22/ip22-berr.o
    arch/mips/sgi-ip22/ip22-berr.c: In function 'ip22_be_interrupt':
    arch/mips/sgi-ip22/ip22-berr.c:100: warning: passing argument 2 of 'die_if_kernel' discards qualifiers from pointer target type

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • This fixes the warning:

    CC arch/mips/sgi-ip22/ip22-reset.o
    arch/mips/sgi-ip22/ip22-reset.c: In function 'reboot_setup':
    arch/mips/sgi-ip22/ip22-reset.c:239: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • The rtc-ds1742 platform driver name doesn't match its module name,
    which might prevents it from properly hotplugging. There is only two
    in-tree user of its driver, which are fixed by this patch too.

    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Cc: David Brownell
    Cc: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • We have had complaints where a threaded application is left in a bad state
    after one of it's threads is killed when we hit a VM: out_of_memory
    condition.

    Killing just one of the process threads can leave the application in a bad
    state, whereas killing the entire process group would allow for the
    application to restart, or be otherwise handled, and makes it very obvious
    that something has gone wrong.

    This change allows the entire process group to be taken down, rather
    than just the one thread.

    Signed-off-by: Will Schmidt
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Russell King
    Cc: Ian Molton
    Cc: Haavard Skinnemoen
    Cc: Mikael Starvik
    Cc: David Howells
    Cc: Andi Kleen
    Cc: "Luck, Tony"
    Cc: Hirokazu Takata
    Cc: Geert Uytterhoeven
    Cc: Roman Zippel
    Cc: Ralf Baechle
    Cc: Kyle McMartin
    Cc: Matthew Wilcox
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Heiko Carstens
    Cc: Martin Schwidefsky
    Cc: Paul Mundt
    Cc: Kazumoto Kojima
    Cc: Richard Curnow
    Cc: William Lee Irwin III
    Cc: "David S. Miller"
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Will Schmidt
     
  • Identical handlers of PTRACE_DETACH go into ptrace_request().
    Not touching compat code.
    Not touching archs that don't call ptrace_request.

    Signed-off-by: Alexey Dobriyan
    Acked-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

16 Oct, 2007

3 commits


15 Oct, 2007

1 commit

  • The variable CFLAGS is a wellknown variable and the usage by
    kbuild may result in unexpected behaviour.
    On top of that several people over time has asked for a way to
    pass in additional flags to gcc.

    This patch replace use of CFLAGS with KBUILD_CFLAGS all over the
    tree and enabling one to use:
    make CFLAGS=...
    to specify additional gcc commandline options.

    One usecase is when trying to find gcc bugs but other
    use cases has been requested too.

    Patch was tested on following architectures:
    alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k

    Test was simple to do a defconfig build, apply the patch and check
    that nothing got rebuild.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

13 Oct, 2007

2 commits


12 Oct, 2007

7 commits