linux-2.6
18 years agolxfb: GEODE: Add framebuffer support for the AMD Geode LX
Jordan Crouse [Tue, 31 Jul 2007 07:37:40 +0000 (00:37 -0700)] 
lxfb: GEODE: Add framebuffer support for the AMD Geode LX

Add framebuffer support for the AMD Geode LX graphics engine.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agovarious doc/kernel-parameters fixes
Randy Dunlap [Tue, 31 Jul 2007 07:37:40 +0000 (00:37 -0700)] 
various doc/kernel-parameters fixes

- tell what APIC (by request), MTD, & PARIDE mean
- correct some source file names
- remove IA64 "llsc*=" (seems to have been removed from source tree)
- removel SCSI "53c7xx=" (driver already removed)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoxilinxfb: Don't bail if the xilinxfb platform device doesn't have any pdata
Grant Likely [Tue, 31 Jul 2007 07:37:39 +0000 (00:37 -0700)] 
xilinxfb: Don't bail if the xilinxfb platform device doesn't have any pdata

Lack of pdata is not a fatal omission.  The driver can still be used even
if we do not know the screen dimensions.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Andrei Konovalov <akonovalov@ru.mvista.com>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoxilinxfb:Remove __initdata from xilinx_fb_fix and xilinx_fb_var
Grant Likely [Tue, 31 Jul 2007 07:37:38 +0000 (00:37 -0700)] 
xilinxfb:Remove __initdata from xilinx_fb_fix and xilinx_fb_var

xilinxfb_drv_probe refers to both tables, but it cannot be initdata.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Andrei Konovalov <akonovalov@ru.mvista.com>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agos3c2410fb: fix s3c2410 compilation
Ben Dooks [Tue, 31 Jul 2007 07:37:37 +0000 (00:37 -0700)] 
s3c2410fb: fix s3c2410 compilation

The implicit mapping has been removed from the arch
as this should be handled in the driver, this patch
fixes the s3c2410_fb driver to ioremap() the necessary
registers.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Acked-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agofbdev: Fix logo if logo depth is less than framebuffer depth
Antonino A. Daplas [Tue, 31 Jul 2007 07:37:36 +0000 (00:37 -0700)] 
fbdev: Fix logo if logo depth is less than framebuffer depth

The VGA16 logo (bpp = 4) and monochrome logo (bpp = 1) do not contain any
color information (no CLUT).  If the fb depth is > logo depth, these logo's
will not properly display. Fix by using the console palette instead of
creating a new one.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agofbcon: Fix typo and bogus logic in get_default_font
Antonino A. Daplas [Tue, 31 Jul 2007 07:37:36 +0000 (00:37 -0700)] 
fbcon: Fix typo and bogus logic in get_default_font

Reported in: Bugzilla Bug 8727

Fix typo and bogus logic in get_default_font(). The bug results in
get_default_font() returning a font that may not be displayed properly by a
framebuffer driver.

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agosynclink_gt: fix transmit DMA stall
Paul Fulghum [Tue, 31 Jul 2007 07:37:35 +0000 (00:37 -0700)] 
synclink_gt: fix transmit DMA stall

Fix transmit DMA stall when write() called in window after previous
transmit DMA completes but before previous serial transmission completes.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoserial_txx9: fix printk format mismatch
Atsushi Nemoto [Tue, 31 Jul 2007 07:37:34 +0000 (00:37 -0700)] 
serial_txx9: fix printk format mismatch

Since the commit 4f640efb3170dbcf99a37a3cc99060647b95428c, "%lx" is not
suitable for p->mapbase (resource_size_t) in 32-bit.  This patch fixes a
compiler warning caused by the mismatch.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agox86-64: Calgary: fix section mismatch warnings in tce
Randy Dunlap [Tue, 31 Jul 2007 07:37:32 +0000 (00:37 -0700)] 
x86-64: Calgary: fix section mismatch warnings in tce

Fix section mismatch warnings:
these functions are called only from __init functions.

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

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agooom: print points as unsigned long
David Rientjes [Tue, 31 Jul 2007 07:37:32 +0000 (00:37 -0700)] 
oom: print points as unsigned long

In badness(), the automatic variable 'points' is unsigned long.  Print it
as such.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agortc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD
Thomas Hommel [Tue, 31 Jul 2007 07:37:31 +0000 (00:37 -0700)] 
rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD

Prevent the RTC driver from returning ENOIOCTLCMD to userspace.

Signed-off-by: Thomas Hommel <thomas.hommel@gefanuc.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoDo not trigger OOM-killer for high-order allocation failures
Mel Gorman [Tue, 31 Jul 2007 07:37:30 +0000 (00:37 -0700)] 
Do not trigger OOM-killer for high-order allocation failures

out_of_memory() may be called when an allocation is failing and the direct
reclaim is not making any progress.  This does not take into account the
requested order of the allocation.  If the request if for an order larger
than PAGE_ALLOC_COSTLY_ORDER, it is reasonable to fail the allocation
because the kernel makes no guarantees about those allocations succeeding.

This false OOM situation can occur if a user is trying to grow the hugepage
pool in a script like;

#!/bin/bash
REQUIRED=$1
echo 1 > /proc/sys/vm/hugepages_treat_as_movable
echo $REQUIRED > /proc/sys/vm/nr_hugepages
ACTUAL=`cat /proc/sys/vm/nr_hugepages`
while [ $REQUIRED -ne $ACTUAL ]; do
echo Huge page pool at $ACTUAL growing to $REQUIRED
echo $REQUIRED > /proc/sys/vm/nr_hugepages
ACTUAL=`cat /proc/sys/vm/nr_hugepages`
sleep 1
done

This is a reasonable scenario when ZONE_MOVABLE is in use but triggers OOM
easily on 2.6.23-rc1. This patch will fail an allocation for an order above
PAGE_ALLOC_COSTLY_ORDER instead of killing processes and retrying.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Acked-by: Andy Whitcroft <apw@shadowen.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agos3c2410: fixup after arch moves
Ben Dooks [Tue, 31 Jul 2007 07:37:28 +0000 (00:37 -0700)] 
s3c2410: fixup after arch moves

Fixup the changes from moving around the arch support for s3c24xx based
systems.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoMake Bruce Fields (co-)maintainer of kNFSDd
Neil Brown [Tue, 31 Jul 2007 07:37:27 +0000 (00:37 -0700)] 
Make Bruce Fields (co-)maintainer of kNFSDd

Make Bruce Fields (co-)maintainer of kNFSDd

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoFix uninitialized local variable "covered" in i386 acpi-cpufreq driver
Fenghua Yu [Tue, 31 Jul 2007 07:37:26 +0000 (00:37 -0700)] 
Fix uninitialized local variable "covered" in i386 acpi-cpufreq driver

The local variable "covered" is used without initialization in i386
acpi-cpufreq driver.  The initial value of covered should be 0.  The bug
will cause memory leak when hit.  The following patch fixes this bug.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoupdate dontdiff file
Randy Dunlap [Tue, 31 Jul 2007 07:37:26 +0000 (00:37 -0700)] 
update dontdiff file

Updates based on recent .gitignore updates:

*.o.*: Says Alexey Dobriyan:
These are presumably temporary gcc files, which aren't interesting.

setup.bin, setup.elf: new x86 boot code files (from Matthew Wilcox)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years ago.gitignore update
Alexey Dobriyan [Tue, 31 Jul 2007 07:37:25 +0000 (00:37 -0700)] 
.gitignore update

Somehow I ended up with the following in tree:

$ git status
...
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       fs/proc/root.o.FuMxJQ
#       net/ipv4/tcp_minisocks.o.geCDYR

These are presumably temporary gcc files, which aren't interesting.

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years agoNOMMU: Fix SYSV IPC SHM
David Howells [Tue, 31 Jul 2007 07:37:24 +0000 (00:37 -0700)] 
NOMMU: Fix SYSV IPC SHM

Fix the SYSV IPC SHM to work with the changes applied by the new fault handler
patches when CONFIG_MMU=n.

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 years ago[RTNETLINK]: Fix warning for !CONFIG_KMOD
Thomas Graf [Tue, 31 Jul 2007 21:13:50 +0000 (14:13 -0700)] 
[RTNETLINK]: Fix warning for !CONFIG_KMOD

replay label is unused otherwise.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[IPV4] ip_options.c: kmalloc + memset conversion to kzalloc
Mariusz Kozlowski [Tue, 31 Jul 2007 21:06:45 +0000 (14:06 -0700)] 
[IPV4] ip_options.c: kmalloc + memset conversion to kzalloc

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[DECNET]: kmalloc + memset conversion to kzalloc
Mariusz Kozlowski [Tue, 31 Jul 2007 21:05:56 +0000 (14:05 -0700)] 
[DECNET]: kmalloc + memset conversion to kzalloc

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[BBC_I2C]: kmalloc + memset conversion to kzalloc
Mariusz Kozlowski [Tue, 31 Jul 2007 21:04:57 +0000 (14:04 -0700)] 
[BBC_I2C]: kmalloc + memset conversion to kzalloc

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[BBC_ENVCTRL]: kmalloc + memset conversion to kzalloc
Mariusz Kozlowski [Tue, 31 Jul 2007 21:04:19 +0000 (14:04 -0700)] 
[BBC_ENVCTRL]: kmalloc + memset conversion to kzalloc

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET]: ethtool_perm_addr only has one implementation
Matthew Wilcox [Tue, 31 Jul 2007 21:00:29 +0000 (14:00 -0700)] 
[NET]: ethtool_perm_addr only has one implementation

All drivers implement ethtool get_perm_addr the same way -- by calling
the generic function.  So we can inline the generic function into the
caller and avoid going through the drivers.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET]: ethtool ops are the only way
Matthew Wilcox [Tue, 31 Jul 2007 21:00:02 +0000 (14:00 -0700)] 
[NET]: ethtool ops are the only way

During the transition to the ethtool_ops way of doing things, we supported
calling the device's ->do_ioctl method to allow unconverted drivers to
continue working.  Those days are long behind us, all in-tree drivers
use the ethtool_ops way, and so we no longer need to support this.

The bonding driver is the biggest beneficiary of this; it no longer
needs to call ioctl() as a fallback if ethtool_ops aren't supported.

Also put a proper copyright statement on ethtool.c.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[PPPOE]: Improve hashing function in hash_item().
Florian Zumbiehl [Tue, 31 Jul 2007 20:47:57 +0000 (13:47 -0700)] 
[PPPOE]: Improve hashing function in hash_item().

The new code produces the same results as the old version and is
~ 3 to 6 times faster for 4-bit hashes on the CPUs I tested.

Signed-off-by: Florian Zumbiehl <florz@florz.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[MIPS] Add smp_call_function_single()
Peter Watkins [Mon, 30 Jul 2007 22:01:29 +0000 (18:01 -0400)] 
[MIPS] Add smp_call_function_single()

In the other archs, there is more factoring of smp call code, and more care
in the use of get_cpu(). That can be a follow-up MIPS patch.

Signed-off-by: Peter Watkins <pwatkins@sicortex.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc
Mariusz Kozlowski [Tue, 31 Jul 2007 18:48:41 +0000 (20:48 +0200)] 
[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Kexec: Fix several 64-bit bugs.
Ralf Baechle [Tue, 31 Jul 2007 14:17:21 +0000 (15:17 +0100)] 
[MIPS] Kexec: Fix several 64-bit bugs.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Kexec: Fix several warnings.
Ralf Baechle [Tue, 31 Jul 2007 14:16:32 +0000 (15:16 +0100)] 
[MIPS] Kexec: Fix several warnings.

arch/mips/kernel/machine_kexec.c: In function 'machine_kexec':
arch/mips/kernel/machine_kexec.c:54: warning: assignment makes integer from pointer without a cast
arch/mips/kernel/machine_kexec.c:70: warning: assignment makes integer from pointer without a cast
arch/mips/kernel/machine_kexec.c:81: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] DDB5477: Remove support
Yoichi Yuasa [Mon, 30 Jul 2007 13:40:35 +0000 (22:40 +0900)] 
[MIPS] DDB5477: Remove support

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Fulong: Remove unneeded header file
Songmao Tian [Mon, 30 Jul 2007 01:06:45 +0000 (09:06 +0800)] 
[MIPS] Fulong: Remove unneeded header file

Signed-off-by: Songmao Tian <tiansm@lemote.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Cobalt: Enable UART on RaQ1
Martin Michlmayr [Sun, 29 Jul 2007 20:19:02 +0000 (22:19 +0200)] 
[MIPS] Cobalt: Enable UART on RaQ1

Unlike the current code suggests, the RaQ1 actually has an UART.  Only
the Qube1 (Qube 2700) lacks one.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Remove unused GROUP_TOSHIBA_NAMES
Yoichi Yuasa [Sun, 29 Jul 2007 12:17:18 +0000 (21:17 +0900)] 
[MIPS] Remove unused GROUP_TOSHIBA_NAMES

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] remove some duplicate includes
Jesper Juhl [Sun, 29 Jul 2007 21:59:35 +0000 (23:59 +0200)] 
[MIPS] remove some duplicate includes

This patch removes some duplicate includes from arch/mips/

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Oprofile: Fix rm9000 performance counter handler
Dajie Tan [Mon, 30 Jul 2007 07:07:42 +0000 (11:07 +0400)] 
[MIPS] Oprofile: Fix rm9000 performance counter handler

The new type of irq handler remove a parameter (struct pt_regs *),but
someone forgot to supply it.

Signed-off-by: Dajie Tan <jiankemeng@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Use -Werror on subdirectories which build cleanly.
Ralf Baechle [Mon, 30 Jul 2007 10:48:58 +0000 (11:48 +0100)] 
[MIPS] Use -Werror on subdirectories which build cleanly.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Yosemite: Fix warning.
Ralf Baechle [Mon, 30 Jul 2007 10:08:35 +0000 (11:08 +0100)] 
[MIPS] Yosemite: Fix warning.

arch/mips/pmc-sierra/yosemite/smp.c: In function 'titan_mailbox_irq':
arch/mips/pmc-sierra/yosemite/smp.c:112: warning: 'status' may be used uninitialized in this function

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] PMON: Fix cpustart declaration.
Ralf Baechle [Mon, 30 Jul 2007 00:07:09 +0000 (01:07 +0100)] 
[MIPS] PMON: Fix cpustart declaration.

This now matches how cpustart is actually being invoked from Linux.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Yosemite: Only build ll_ht_smp_irq_handler() if HYPERTRANSPORT.
Ralf Baechle [Sun, 29 Jul 2007 23:52:14 +0000 (00:52 +0100)] 
[MIPS] Yosemite: Only build ll_ht_smp_irq_handler() if HYPERTRANSPORT.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Yosemite: Fix build error due to undeclared titan_mailbox_irq().
Ralf Baechle [Sun, 29 Jul 2007 23:50:47 +0000 (00:50 +0100)] 
[MIPS] Yosemite: Fix build error due to undeclared titan_mailbox_irq().

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Yosemite: Don't declare titan_mailbox_irq() as asmlinkage.
Ralf Baechle [Sun, 29 Jul 2007 23:47:07 +0000 (00:47 +0100)] 
[MIPS] Yosemite: Don't declare titan_mailbox_irq() as asmlinkage.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Yosemite: Fix warnings in i2c-yoesmite by deleting the unused code.
Ralf Baechle [Sun, 29 Jul 2007 23:45:04 +0000 (00:45 +0100)] 
[MIPS] Yosemite: Fix warnings in i2c-yoesmite by deleting the unused code.

arch/mips/pmc-sierra/yosemite/i2c-yosemite.c: In function 'titan_i2c_xfer':
arch/mips/pmc-sierra/yosemite/i2c-yosemite.c:98: warning: 'data' may be used uninitialized in this function

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Delete unused arch/mips/gt64120/common/
Ralf Baechle [Sun, 29 Jul 2007 08:21:51 +0000 (09:21 +0100)] 
[MIPS] Delete unused arch/mips/gt64120/common/

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Fix build warning in unaligned load/store emulator.
Ralf Baechle [Sun, 29 Jul 2007 08:16:19 +0000 (09:16 +0100)] 
[MIPS] Fix build warning in unaligned load/store emulator.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] IP32: Don't ignore request_irq's return value.
Ralf Baechle [Sat, 28 Jul 2007 23:16:34 +0000 (00:16 +0100)] 
[MIPS] IP32: Don't ignore request_irq's return value.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] IP27: Fix warning.
Ralf Baechle [Sat, 28 Jul 2007 23:14:02 +0000 (00:14 +0100)] 
[MIPS] IP27: Fix warning.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] BCM1480: Include <linux/module.h>.
Ralf Baechle [Sat, 28 Jul 2007 23:00:34 +0000 (00:00 +0100)] 
[MIPS] BCM1480: Include <linux/module.h>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Remove Momentum Ocelot support.
Ralf Baechle [Sat, 28 Jul 2007 13:20:16 +0000 (14:20 +0100)] 
[MIPS] Remove Momentum Ocelot support.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Fix archhelp.
Ralf Baechle [Sat, 28 Jul 2007 12:38:49 +0000 (13:38 +0100)] 
[MIPS] Fix archhelp.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Cleanup default bootfile format rule mess.
Ralf Baechle [Sat, 28 Jul 2007 12:27:21 +0000 (13:27 +0100)] 
[MIPS] Cleanup default bootfile format rule mess.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Replace use of stext with _stext.
Ralf Baechle [Sat, 28 Jul 2007 11:45:47 +0000 (12:45 +0100)] 
[MIPS] Replace use of stext with _stext.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Fix build breakage due to duplicate cpu_clock definition
Ralf Baechle [Sat, 28 Jul 2007 10:46:15 +0000 (11:46 +0100)] 
[MIPS] Fix build breakage due to duplicate cpu_clock definition

commit e436d80085133858bf2613a630365e8a0459fd58
Author: Ingo Molnar <mingo@elte.hu>
Date:   Thu Jul 19 21:28:35 2007 +0200

    [PATCH] sched: implement cpu_clock(cpu) high-speed time source

broke the build of several MIPS platforms which were already using the
symbol cpu_clock for the own purposes.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] ARC: Fix modpost warnings.
Ralf Baechle [Sat, 28 Jul 2007 06:44:08 +0000 (07:44 +0100)] 
[MIPS] ARC: Fix modpost warnings.

WARNING: vmlinux.o(.text+0x1608): Section mismatch: reference to .init.text:ArcRead (between 'indy_8254timer_irq' and 'indy_rtc_set_time')
WARNING: vmlinux.o(.text+0x1157ac): Section mismatch: reference to .init.text:ArcRead (between 'prom_getchar' and 'prom_putchar')
WARNING: vmlinux.o(.text+0x115808): Section mismatch: reference to .init.text:ArcWrite (between 'prom_putchar' and 'csum_partial')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] SMTC: Fix modpost warning.
Ralf Baechle [Fri, 27 Jul 2007 23:54:32 +0000 (00:54 +0100)] 
[MIPS] SMTC: Fix modpost warning.

WARNING: vmlinux.o(.text+0xcf54): Section mismatch: reference to .init.text:smp_bootstrap (between 'smtc_boot_secondary' and 'ipi_interrupt')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Fix modpost warning.
Ralf Baechle [Fri, 27 Jul 2007 23:53:14 +0000 (00:53 +0100)] 
[MIPS] Fix modpost warning.

WARNING: vmlinux.o(.text+0x1718): Section mismatch: reference to .init.text:mipsmt_build_cpu_map (between 'plat_smp_setup' and 'prom_init_secondary')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] rtlx: Fix modpost warning
Ralf Baechle [Fri, 27 Jul 2007 23:51:45 +0000 (00:51 +0100)] 
[MIPS] rtlx: Fix modpost warning

WARNING: vmlinux.o(.text+0x11504): Section mismatch: reference to .init.data:register_chrdev_failed (between 'rtlx_module_init' and 'rtlx_dispatch')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Add missing declaration for mips_ihb().
Ralf Baechle [Fri, 27 Jul 2007 23:49:58 +0000 (00:49 +0100)] 
[MIPS] Add missing declaration for mips_ihb().

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] MTI: Add CoreFPGA4 ID.
Chris Dearman [Fri, 27 Jul 2007 19:02:00 +0000 (20:02 +0100)] 
[MIPS] MTI: Add CoreFPGA4 ID.

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] RP: Sysfs interface for stopping RP program
Ralf Baechle [Fri, 27 Jul 2007 18:37:51 +0000 (19:37 +0100)] 
[MIPS] RP: Sysfs interface for stopping RP program

The old method of attempting to load a invalid program was just too icky.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] RP: Pass number of TCs available to RP program in $2.
Ralf Baechle [Fri, 27 Jul 2007 18:33:18 +0000 (19:33 +0100)] 
[MIPS] RP: Pass number of TCs available to RP program in $2.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] MT: Enable coexistence of AP/SP with VSMP and SMTC.
Ralf Baechle [Fri, 27 Jul 2007 18:31:10 +0000 (19:31 +0100)] 
[MIPS] MT: Enable coexistence of AP/SP with VSMP and SMTC.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] SMTC: Safety net for i8259A interrupts.
Kevin D. Kissell [Fri, 27 Jul 2007 17:45:25 +0000 (18:45 +0100)] 
[MIPS] SMTC: Safety net for i8259A interrupts.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] SMTC: smtc_timer_broadcast ignores its arguments, make it void.
Ralf Baechle [Fri, 27 Jul 2007 17:39:19 +0000 (18:39 +0100)] 
[MIPS] SMTC: smtc_timer_broadcast ignores its arguments, make it void.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] SMTC: Declare static what should be static.
Ralf Baechle [Fri, 27 Jul 2007 17:36:32 +0000 (18:36 +0100)] 
[MIPS] SMTC: Declare static what should be static.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] SMTC: Statically initialize irq_ipi[].
Ralf Baechle [Fri, 27 Jul 2007 17:33:30 +0000 (18:33 +0100)] 
[MIPS] SMTC: Statically initialize irq_ipi[].

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] rbtx4938: Fix warnings
Atsushi Nemoto [Fri, 27 Jul 2007 16:03:41 +0000 (01:03 +0900)] 
[MIPS] rbtx4938: Fix warnings

linux/arch/mips/pci/fixup-tx4938.c:21:5: warning: symbol 'pci_get_irq' was not declared. Should it be static?
linux/arch/mips/pci/fixup-tx4938.c:76: warning: passing argument 1 of 'pci_get_irq' discards qualifiers from pointer target type

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Sort system types alphabetically
Yoichi Yuasa [Fri, 27 Jul 2007 06:25:43 +0000 (15:25 +0900)] 
[MIPS] Sort system types alphabetically

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Fix RBTX49x7 board name
Yoichi Yuasa [Fri, 27 Jul 2007 06:20:24 +0000 (15:20 +0900)] 
[MIPS] Fix RBTX49x7 board name

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] 0 -> NULL
Yoann Padioleau [Fri, 27 Jul 2007 09:45:00 +0000 (11:45 +0200)] 
[MIPS] 0 -> NULL

When comparing a pointer, it's clearer to compare it to NULL than to 0.

Here is an excerpt of the semantic patch:

@@
expression *E;
@@

  E ==
- 0
+ NULL

@@
expression *E;
@@

  E !=
- 0
+ NULL

Signed-off-by: Yoann Padioleau <padator@wanadoo.fr>
Cc: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Cc: akpm@linux-foundation.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] IP27: Fix modpost warning.
Ralf Baechle [Thu, 26 Jul 2007 02:40:16 +0000 (03:40 +0100)] 
[MIPS] IP27: Fix modpost warning.

  MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x3180): Section mismatch: reference to .init.text:per_cpu_init (between 'prom_init_secondary' and 'alloc_cpupda')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Wire up the fallocate syscall.
Ralf Baechle [Thu, 26 Jul 2007 02:38:24 +0000 (03:38 +0100)] 
[MIPS] Wire up the fallocate syscall.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] Fixup secure computing stuff.
Ralf Baechle [Wed, 25 Jul 2007 15:19:33 +0000 (16:19 +0100)] 
[MIPS] Fixup secure computing stuff.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] tx49xx: Add mach specific headers
Atsushi Nemoto [Tue, 24 Jul 2007 16:50:08 +0000 (01:50 +0900)] 
[MIPS] tx49xx: Add mach specific headers

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] rbtx4927: Fix some gcc warnings and a section mismatch.
Atsushi Nemoto [Tue, 24 Jul 2007 15:53:40 +0000 (00:53 +0900)] 
[MIPS] rbtx4927: Fix some gcc warnings and a section mismatch.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[MIPS] rbtx4927: Fix -Werror-implicit-function-declaration build error.
Atsushi Nemoto [Tue, 24 Jul 2007 15:53:29 +0000 (00:53 +0900)] 
[MIPS] rbtx4927: Fix -Werror-implicit-function-declaration build error.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
18 years ago[x86 setup] EDD: Fix the computation of the MBR sector buffer
H. Peter Anvin [Tue, 31 Jul 2007 20:17:13 +0000 (16:17 -0400)] 
[x86 setup] EDD: Fix the computation of the MBR sector buffer

Some BIOSes require that sector buffers not cross 64K
boundaries.  As a result, we compute a dynamic address on the
setup heap.  Unfortunately, this address computation was just
totally wrong.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
18 years ago[x86 setup] Newline after setup signature failure message
H. Peter Anvin [Thu, 26 Jul 2007 23:10:22 +0000 (16:10 -0700)] 
[x86 setup] Newline after setup signature failure message

End the "No setup signature found..." with a newline (the puts
routine will automatically add a carriage return.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
18 years agox86 boot code comments typos
Randy Dunlap [Thu, 26 Jul 2007 17:10:35 +0000 (10:10 -0700)] 
x86 boot code comments typos

Fix comments typos in new x86 boot code.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
18 years ago[XFRM]: State selection update to use inner addresses.
Joakim Koskela [Thu, 26 Jul 2007 07:08:42 +0000 (00:08 -0700)] 
[XFRM]: State selection update to use inner addresses.

This patch modifies the xfrm state selection logic to use the inner
addresses where the outer have been (incorrectly) used. This is
required for beet mode in general and interfamily setups in both
tunnel and beet mode.

Signed-off-by: Joakim Koskela <jookos@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Diego Beltrami <diego.beltrami@gmail.com>
Signed-off-by: Miika Komu <miika@iki.fi>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[IPSEC]: Ensure that state inner family is set
Herbert Xu [Tue, 31 Jul 2007 09:04:32 +0000 (02:04 -0700)] 
[IPSEC]: Ensure that state inner family is set

Similar to the issue we had with template families which
specified the inner families of policies, we need to set
the inner families of states as the main xfrm user Openswan
leaves it as zero.

af_key is unaffected because the inner family is set by it
and not the KM.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[TCP]: Bidir flow must not disregard SACK blocks for lost marking
Ilpo Järvinen [Tue, 31 Jul 2007 02:51:12 +0000 (19:51 -0700)] 
[TCP]: Bidir flow must not disregard SACK blocks for lost marking

It's possible that new SACK blocks that should trigger new LOST
markings arrive with new data (which previously made is_dupack
false). In addition, I think this fixes a case where we get
a cumulative ACK with enough SACK blocks to trigger the fast
recovery (is_dupack would be false there too).

I'm not completely pleased with this solution because readability
of the code is somewhat questionable as 'is_dupack' in SACK case
is no longer about dupacks only but would mean something like
'lost_marker_work_todo' too... But because of Eifel stuff done
in CA_Recovery, the FLAG_DATA_SACKED check cannot be placed to
the if statement which seems attractive solution. Nevertheless,
I didn't like adding another variable just for that either... :-)

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[TCP]: Fix ratehalving with bidirectional flows
Ilpo Järvinen [Tue, 31 Jul 2007 02:48:37 +0000 (19:48 -0700)] 
[TCP]: Fix ratehalving with bidirectional flows

Actually, the ratehalving seems to work too well, as cwnd is
reduced on every second ACK even though the packets in flight
remains unchanged. Recoveries in a bidirectional flows suffer
quite badly because of this, both NewReno and SACK are affected.

After this patch, rate halving is performed for ACK only if
packets in flight was supposedly changed too.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[PPPOL2TP]: Add CONFIG_INET Kconfig dependency.
James Chapman [Tue, 31 Jul 2007 01:51:48 +0000 (18:51 -0700)] 
[PPPOL2TP]: Add CONFIG_INET Kconfig dependency.

PPPOL2TP uses UDP so it obviously depends on CONFIG_INET.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET]: Page offsets and lengths need to be __u32.
David S. Miller [Tue, 31 Jul 2007 01:47:03 +0000 (18:47 -0700)] 
[NET]: Page offsets and lengths need to be __u32.

Based upon a report from Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[AF_UNIX]: Make code static.
Adrian Bunk [Tue, 31 Jul 2007 01:05:45 +0000 (18:05 -0700)] 
[AF_UNIX]: Make code static.

The following code can now become static:
- struct unix_socket_table
- unix_table_lock

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NETFILTER]: Make nf_ct_ipv6_skip_exthdr() static.
Adrian Bunk [Tue, 31 Jul 2007 01:04:57 +0000 (18:04 -0700)] 
[NETFILTER]: Make nf_ct_ipv6_skip_exthdr() static.

nf_ct_ipv6_skip_exthdr() can now become static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[PKTGEN]: make get_ipsec_sa() static and non-inline
Adrian Bunk [Tue, 31 Jul 2007 01:04:09 +0000 (18:04 -0700)] 
[PKTGEN]: make get_ipsec_sa() static and non-inline

Non-static inline code usually doesn't makes sense.

In this case making is static and non-inline is the correct solution.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[PPPoE]: move lock_sock() in pppoe_sendmsg() to the right location
Florian Zumbiehl [Tue, 31 Jul 2007 00:49:13 +0000 (17:49 -0700)] 
[PPPoE]: move lock_sock() in pppoe_sendmsg() to the right location

and the last one for now: Acquire the sock lock in pppoe_sendmsg()
before accessing the sock - and in particular avoid releasing the lock
even though it hasn't been acquired.

Signed-off-by: Florian Zumbiehl <florz@florz.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[PPPoX/E]: return ENOTTY on unknown ioctl requests
Florian Zumbiehl [Tue, 31 Jul 2007 00:48:23 +0000 (17:48 -0700)] 
[PPPoX/E]: return ENOTTY on unknown ioctl requests

here another patch for the PPPoX/E code that makes sure that ENOTTY is
returned for unknown ioctl requests rather than 0 (and removes another
unneeded initializer which I didn't bother creating a separate patch for).

Signed-off-by: Florian Zumbiehl <florz@florz.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[IPV6]: ipv6_addr_type() doesn't know about RFC4193 addresses.
Dave Johnson [Tue, 31 Jul 2007 00:19:31 +0000 (17:19 -0700)] 
[IPV6]: ipv6_addr_type() doesn't know about RFC4193 addresses.

ipv6_addr_type() doesn't check for 'Unique Local IPv6 Unicast
Addresses' (RFC4193) and returns IPV6_ADDR_RESERVED for that range.

SCTP uses this function and will fail bind() and connect() calls that
use RFC4193 addresses, SCTP will also ignore inbound connections from
RFC4193 addresses if listening on IPV6_ADDR_ANY.

There may be other users of ipv6_addr_type() that could also have
problems.

Signed-off-by: Dave Johnson <djohnson@sw.starentnetworks.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET]: Fix prio_tune() handling of root qdisc.
Peter P Waskiewicz Jr [Tue, 31 Jul 2007 00:13:45 +0000 (17:13 -0700)] 
[NET]: Fix prio_tune() handling of root qdisc.

Fix the check in prio_tune() to see if sch->parent is TC_H_ROOT instead of
sch->handle to load or reject the qdisc for multiqueue devices.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET]: Fix sch_api to properly set sch->parent on the root.
Patrick McHardy [Tue, 31 Jul 2007 00:11:50 +0000 (17:11 -0700)] 
[NET]: Fix sch_api to properly set sch->parent on the root.

Fix sch_api to correctly set sch->parent for both ingress and egress
qdiscs in qdisc_create().

Signed-off-by: Patrick McHardy <trash@kaber.net>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET_SCHED]: Fix prio/ingress classification logic error
Patrick McHardy [Tue, 31 Jul 2007 00:07:14 +0000 (17:07 -0700)] 
[NET_SCHED]: Fix prio/ingress classification logic error

Fix handling of empty or completely non-matching filter chains. In
that case -1 is returned and tcf_result is uninitialized, the
qdisc should fall back to default classification in that case.

Noticed by PJ Waskiewicz <peter.p.waskiewicz.jr@intel.com>.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[IPV6]: Remove circular dependency on if_inet6.h
Herbert Xu [Tue, 31 Jul 2007 00:05:49 +0000 (17:05 -0700)] 
[IPV6]: Remove circular dependency on if_inet6.h

net/if_inet6.h includes linux/ipv6.h which also tries to include
net/if_inet6.h.  Since the latter only needs it for forward
declarations, we can fix this by adding the declarations.

A number of files are implicitly including net/if_inet6.h through
linux/ipv6.h.  They also use net/ipv6.h so this patch includes
net/if_inet6.h there.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[IPV4/IPV6]: Fail registration if inet device construction fails
Herbert Xu [Tue, 31 Jul 2007 00:04:52 +0000 (17:04 -0700)] 
[IPV4/IPV6]: Fail registration if inet device construction fails

Now that netdev notifications can fail, we can use this to signal
errors during registration for IPv4/IPv6.  In particular, if we
fail to allocate memory for the inet device, we can fail the netdev
registration.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET]: Allow netdev REGISTER/CHANGENAME events to fail
Herbert Xu [Tue, 31 Jul 2007 00:03:38 +0000 (17:03 -0700)] 
[NET]: Allow netdev REGISTER/CHANGENAME events to fail

This patch adds code to allow errors to be passed up from event
handlers of NETDEV_REGISTER and NETDEV_CHANGENAME.  It also adds
the notifier_from_errno/notifier_to_errnor helpers to pass the
errno value up to the notifier caller.

If an error is detected when a device is registered, it causes
that operation to fail.  A NETDEV_UNREGISTER will be sent to
all event handlers.

Similarly if NETDEV_CHANGENAME fails the original name is restored
and a new NETDEV_CHANGENAME event is sent.

As such all event handlers must be idempotent with respect to
these events.

When an event handler is registered NETDEV_REGISTER events are
sent for all devices currently registered.  Should any of them
fail, we will send NETDEV_GOING_DOWN/NETDEV_DOWN/NETDEV_UNREGISTER
events to that handler for the devices which have already been
registered with it.  The handler registration itself will fail.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET] loopback: Panic if registration fails
Herbert Xu [Mon, 30 Jul 2007 23:37:19 +0000 (16:37 -0700)] 
[NET] loopback: Panic if registration fails

Because IPv4 and IPv6 both depend on the presence of the loopback
device to function, failure in registration the loopback device should
be fatal.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 years ago[NET]: Take dev_base_lock when moving device name hash list entry
Herbert Xu [Mon, 30 Jul 2007 23:35:46 +0000 (16:35 -0700)] 
[NET]: Take dev_base_lock when moving device name hash list entry

When we added name-based hashing the dev_base_lock was designated as the
lock to take when changing the name hash list.  Unfortunately, because
it was a preexisting lock that just happened to be taken in the right
spots we neglected to take it in dev_change_name.

The race can affect calles of __dev_get_by_name that do so without taking
the RTNL.  They may end up walking down the wrong hash chain and end up
missing the device that they're looking for.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>