]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agoW1_MASTER_DS1WM should depend on HAVE_CLK
Al Viro [Sat, 22 Nov 2008 17:34:44 +0000 (17:34 +0000)]
W1_MASTER_DS1WM should depend on HAVE_CLK

Uses clk_...() a lot

Acked-by: rmk+kernel@arm.linux.org.uk
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agoicside section warnings
Al Viro [Sat, 22 Nov 2008 17:34:34 +0000 (17:34 +0000)]
icside section warnings

icside_register_v[56] is called from (__devinit) icside_probe

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agofix talitos
Al Viro [Sat, 22 Nov 2008 17:34:24 +0000 (17:34 +0000)]
fix talitos

talitos_remove() can be called from talitos_probe() on failure
exit path, so it can't be __devexit.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agoistallion section warnings
Al Viro [Sat, 22 Nov 2008 17:34:14 +0000 (17:34 +0000)]
istallion section warnings

stli_findeisabrds() and stli_initbrds() are using __init and called only
from __init.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agosparc64 trivial section misannotations
Al Viro [Sat, 22 Nov 2008 17:34:04 +0000 (17:34 +0000)]
sparc64 trivial section misannotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agosparc32 cpuinit flase positives
Al Viro [Sat, 22 Nov 2008 17:33:54 +0000 (17:33 +0000)]
sparc32 cpuinit flase positives

All noise since we don't have CPU hotplug there.  However, they
did expose something very odd-looking in there - poke_viking()
does a bunch of identical btfixup each time it's called (i.e.
for each CPU).  That one is left alone for now; just the trivial
misannotation fixes.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agopowerpc set_huge_psize() false positive
Al Viro [Sat, 22 Nov 2008 17:33:44 +0000 (17:33 +0000)]
powerpc set_huge_psize() false positive

called only from __init, calls __init.  Incidentally, it ought to be static
in file.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agofalse __cpuinit positives on alpha
Al Viro [Sat, 22 Nov 2008 17:33:34 +0000 (17:33 +0000)]
false __cpuinit positives on alpha

pure noise - alpha doesn't have CPU hotplug

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agomeminit section warnings
Al Viro [Sat, 22 Nov 2008 17:33:24 +0000 (17:33 +0000)]
meminit section warnings

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 years agoMerge branch 'clks' into devel
Russell King [Sun, 30 Nov 2008 17:46:52 +0000 (17:46 +0000)]
Merge branch 'clks' into devel

17 years ago[ARM] amba drivers: don't pass a consumer clock name for devices with unique clocks
Russell King [Sun, 30 Nov 2008 17:38:14 +0000 (17:38 +0000)]
[ARM] amba drivers: don't pass a consumer clock name for devices with unique clocks

Where devices only have one consumer, passing a consumer clock ID
has no real benefit, and it only encourages wrong implementations of
the clk API.  Remove it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] lh7a40x: convert to simple clk API
Russell King [Sun, 30 Nov 2008 17:34:32 +0000 (17:34 +0000)]
[ARM] lh7a40x: convert to simple clk API

lh7a40x only uses the clk API for the framebuffer, so there's
no point having a complicated implementation.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] lh7a40x: clocks - cleanup
Russell King [Sun, 30 Nov 2008 17:30:05 +0000 (17:30 +0000)]
[ARM] lh7a40x: clocks - cleanup

Remove commented out code, and unnecessary declarations.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] aaec2000: convert to simple clk API
Russell King [Sun, 30 Nov 2008 17:27:20 +0000 (17:27 +0000)]
[ARM] aaec2000: convert to simple clk API

aaec2000 only uses the clk API for the framebuffer, so there's
no point having a complicated implementation.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] netx: fix simple clk API
Russell King [Sun, 30 Nov 2008 17:17:25 +0000 (17:17 +0000)]
[ARM] netx: fix simple clk API

... to only return the framebuffer clock for the framebuffer device.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] ep93xx: convert to clkdev and match clocks by struct device where possible
Russell King [Sun, 30 Nov 2008 17:11:49 +0000 (17:11 +0000)]
[ARM] ep93xx: convert to clkdev and match clocks by struct device where possible

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] Update mach-types
Russell King [Sun, 30 Nov 2008 16:39:42 +0000 (16:39 +0000)]
[ARM] Update mach-types

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] davinci: asm/memory.h is not required for mach/vmalloc.h
Russell King [Sun, 30 Nov 2008 14:42:43 +0000 (14:42 +0000)]
[ARM] davinci: asm/memory.h is not required for mach/vmalloc.h

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] amba-clcd: don't use SZ_ constants in drivers
Russell King [Sun, 30 Nov 2008 13:46:10 +0000 (13:46 +0000)]
[ARM] amba-clcd: don't use SZ_ constants in drivers

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] Ensure that both MAX_DMA_ADDRESS and ISA_DMA_THRESHOLD are defined
Russell King [Sun, 30 Nov 2008 13:26:47 +0000 (13:26 +0000)]
[ARM] Ensure that both MAX_DMA_ADDRESS and ISA_DMA_THRESHOLD are defined

Both of these symbols should be defined by a platform, or neither
should be defined.  Ensure that all platforms conform.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] Add a common typesafe __io implementation
Russell King [Sun, 30 Nov 2008 11:45:54 +0000 (11:45 +0000)]
[ARM] Add a common typesafe __io implementation

As Al did for Versatile in 2ad4f86b60b649fd7428265c08d73a3bd360c81b,
add a typesafe __io implementation for platforms to use.  Convert
platforms to use this new simple typesafe implementation.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] integrator: parenthesize __virt_to_bus/__bus_to_virt argument
Russell King [Sun, 30 Nov 2008 11:44:11 +0000 (11:44 +0000)]
[ARM] integrator: parenthesize __virt_to_bus/__bus_to_virt argument

Macro arguments should be parenthesized to avoid unexpected side
effects.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] pnx4008: fix definition of PHYS_OFFSET
Russell King [Sun, 30 Nov 2008 11:43:34 +0000 (11:43 +0000)]
[ARM] pnx4008: fix definition of PHYS_OFFSET

PHYS_OFFSET constants should be defined using UL().

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agoBluetooth: Fix RFCOMM release oops when device is still in use
Marcel Holtmann [Sun, 30 Nov 2008 11:17:29 +0000 (12:17 +0100)]
Bluetooth: Fix RFCOMM release oops when device is still in use

It turns out that the following sequence of actions will reproduce the
oops:

  1. Create a new RFCOMM device (using RFCOMMCREATEDEV ioctl)
  2. (Try to) open the device
  3. Release the RFCOMM device (using RFCOMMRELEASEDEV ioctl)

At this point, the "/dev/rfcomm*" device is still in use, but it is gone
from the internal list, so the device id can be reused.

  4. Create a new RFCOMM device with the same device id as before

And now kobject will complain that the TTY already exists.

(See http://lkml.org/lkml/2008/7/13/89 for a reproducible test-case.)

This patch attempts to correct this by only removing the device from the
internal list of devices at the final unregister stage, so that the id
won't get reused until the device has been completely destructed.

This should be safe as the RFCOMM_TTY_RELEASED bit will be set for the
device and prevent the device from being reopened after it has been
released.

Based on a report from Vegard Nossum <vegard.nossum@gmail.com>

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Fix format arguments warning
Marcel Holtmann [Sun, 30 Nov 2008 11:17:29 +0000 (12:17 +0100)]
Bluetooth: Fix format arguments warning

Newer GCC versions are a little bit picky about how to deal with format
arguments:

net/bluetooth/hci_sysfs.c: In function ‘hci_register_sysfs’:
net/bluetooth/hci_sysfs.c:418: warning: format not a string literal and no format arguments

It is simple enough to fix and makes the compiler happy.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Enable per-module dynamic debug messages
Marcel Holtmann [Sun, 30 Nov 2008 11:17:28 +0000 (12:17 +0100)]
Bluetooth: Enable per-module dynamic debug messages

With the introduction of CONFIG_DYNAMIC_PRINTK_DEBUG it is possible to
allow debugging without having to recompile the kernel. This patch turns
all BT_DBG() calls into pr_debug() to support dynamic debug messages.

As a side effect all CONFIG_BT_*_DEBUG statements are now removed and
some broken debug entries have been fixed.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Allow SCO audio with Asus WL-BTD202 dongle
Marcel Holtmann [Sun, 30 Nov 2008 11:17:27 +0000 (12:17 +0100)]
Bluetooth: Allow SCO audio with Asus WL-BTD202 dongle

This patch allows the Asus WL-BTD202 dongle to be used with a mono
headset without having to specify "options btusb force_scofix=1".

Based on a patch from Guillaume Bedot <littletux@zarb.org>

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Send HCI Reset command by default on device initialization
Marcel Holtmann [Sun, 30 Nov 2008 11:17:26 +0000 (12:17 +0100)]
Bluetooth: Send HCI Reset command by default on device initialization

The Bluetooth subsystem was not using the HCI Reset command when doing
device initialization. The Bluetooth 1.0b specification was ambiguous
on how the device firmware was suppose to handle it. Almost every device
was triggering a transport reset at the same time. In case of USB this
ended up in disconnects from the bus.

All modern Bluetooth dongles handle this perfectly fine and a lot of
them actually require that HCI Reset is sent. If not then they are
either stuck in their HID Proxy mode or their internal structures for
inquiry and paging are not correctly setup.

To handle old and new devices smoothly the Bluetooth subsystem contains
a quirk to force the HCI Reset on initialization. However maintaining
such a quirk becomes more and more complicated. This patch turns the
logic around and lets the old devices disable the HCI Reset command.

The only device where the HCI_QUIRK_NO_RESET is still needed are the
original Digianswer devices and dongles with an early CSR firmware.

CSR reported that they fixed this for version 12 firmware. The last
official release of version 11 firmware is build ID 115. The first
version 12 candidate was build ID 117.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Remove deprecated hci_usb driver
Marcel Holtmann [Sun, 30 Nov 2008 11:17:21 +0000 (12:17 +0100)]
Bluetooth: Remove deprecated hci_usb driver

The old hci_usb driver has been fully replaced with the new btusb driver
and all major distributions switched to the new driver now. This removes
it since it should not be used at all anymore.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Respect HCI_UART_DEBUG config in hci_ll.c
Nick Pelly [Sun, 30 Nov 2008 11:17:20 +0000 (12:17 +0100)]
Bluetooth: Respect HCI_UART_DEBUG config in hci_ll.c

Following the pattern from hci_*.c, turn off BT_DBG messages unless
they have been requested via HCI_UART_DEBUG

Signed-off-by: Nick Pelly <npelly@google.com>
Acked-by: Brian Swetland <swetland@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Change simple_strtol to simple_strtoul
Julia Lawall [Sun, 30 Nov 2008 11:17:20 +0000 (12:17 +0100)]
Bluetooth: Change simple_strtol to simple_strtoul

Since size, addr, fcs, and tmp are unsigned, it would seem better to use
simple_strtoul that simple_strtol.

A simplified version of the semantic patch that makes this change is as
follows: (http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r2@
long e;
position p;
@@

e = simple_strtol@p(...)

@@
position p != r2.p;
type T;
T e;
@@

e =
- simple_strtol@p
+ simple_strtoul
  (...)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Fix warnings for bt_key_strings and bt_slock_key_strings
Marcel Holtmann [Sun, 30 Nov 2008 11:17:19 +0000 (12:17 +0100)]
Bluetooth: Fix warnings for bt_key_strings and bt_slock_key_strings

After adding proper lockdep annotations for Bluetooth protocols the case
when lockdep is disabled produced two compiler warnings:

net/bluetooth/af_bluetooth.c:60: warning: ‘bt_key_strings’ defined but not used
net/bluetooth/af_bluetooth.c:71: warning: ‘bt_slock_key_strings’ defined but not used

Fix both of them by adding a CONFIG_DEBUG_LOCK_ALLOC conditional around
them and re-arranging the code a little bit.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Fix leak of uninitialized data to userspace
Vegard Nossum [Sun, 30 Nov 2008 11:17:19 +0000 (12:17 +0100)]
Bluetooth: Fix leak of uninitialized data to userspace

    struct hci_dev_list_req {
            __u16  dev_num;
            struct hci_dev_req dev_req[0];  /* hci_dev_req structures */
    };

sizeof(struct hci_dev_list_req) == 4, so the two bytes immediately
following "dev_num" will never be initialized. When this structure
is copied to userspace, these uninitialized bytes are leaked.

Fix by using kzalloc() instead of kmalloc(). Found using kmemcheck.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Fix TX error path in btsdio driver
Tomas Winkler [Sun, 30 Nov 2008 11:17:18 +0000 (12:17 +0100)]
Bluetooth: Fix TX error path in btsdio driver

This patch fixes accumulating of the header in case packet was requeued
in the error path.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Add suspend/resume support to btusb driver
Marcel Holtmann [Sun, 30 Nov 2008 11:17:14 +0000 (12:17 +0100)]
Bluetooth: Add suspend/resume support to btusb driver

During suspend it is important that all URBs are cancelled and then on
resume re-submitted. This gives initial suspend/resume support.

Based on initial work from Oliver Neukum <oneukum@suse.de>

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Handle bulk URBs in btusb driver from notify callback
Marcel Holtmann [Sun, 30 Nov 2008 11:17:12 +0000 (12:17 +0100)]
Bluetooth: Handle bulk URBs in btusb driver from notify callback

With the addition of usb_unlink_anchored_urbs() it is possible to fully
control the bulk URBs from the notify callback. There is no need to
schedule work and so only do this for the ISOC URBs.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoBluetooth: Add fine grained mem_flags usage to btusb driver
Marcel Holtmann [Sun, 30 Nov 2008 11:17:10 +0000 (12:17 +0100)]
Bluetooth: Add fine grained mem_flags usage to btusb driver

The URB submission routines need more fine grained control for the
mem_flags used by kmalloc(), usb_alloc_urb() and usb_submit_urb() to
better support different caller situations. Add a mem_flags parameter
and give the caller full control.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agoALSA: hda - More fixes on Gateway entries
Mauro Carvalho Chehab [Mon, 11 Aug 2008 08:18:39 +0000 (10:18 +0200)]
ALSA: hda - More fixes on Gateway entries

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoALSA: patch_sigmatel: Add missing Gateway entries and autodetection
Mauro Carvalho Chehab [Mon, 11 Aug 2008 08:18:39 +0000 (10:18 +0200)]
ALSA: patch_sigmatel: Add missing Gateway entries and autodetection

Gateway autodetection and entries are incomplete.

This patch adds the entries found at the .INI file for their driver version
5.10.5082.0.

It also uses the proper code to seek for notebook ID, since this is based on
codec subsystem ID on those devices.

This should provide a proper pinup for several gateways notebooks:
Gateway M465-E Notebook [Part #1008637]
Gateway M465-G Notebook [Part #1008667]
Gateway NX260X Notebook [Part #1008794]
Gateway NX100X Notebook [Part #1008798]
Gateway E-100M Notebook [Part #1008799]
Gateway E-100M G Notebook [Part #1008800]
Gateway M255-E Notebook [Part #1008801]
Gateway M255-G Notebook [Part #1008803]
Gateway M285-E Convertible Notebook [Part #1008804]
Gateway M285-G Convertible Notebook [Part #1008805]
Gateway CX210S Convertible Notebook [Part #1008807]
Gateway CX210X Convertible Notebook [Part #1008808]
Gateway E-100M SB Notebook [Part #1008973]
Gateway M255-E SB Notebook [Part #1008989]
Gateway M285-E SB Convertible Notebook [Part #1008990]
Gateway M465-E Notebook [Part #1009022]
Gateway CX2724 Convertible Notebook [Part #1009036]
Gateway MX1025 Notebook [Part #1009046]
Gateway CX2720 Convertible Notebook [Part #1009063]
Gateway CX2724h Convertible Notebook [Part #1009089]
Gateway MX1023 Notebook [Part #1009097]
Gateway MX1023h Notebook [Part #1009098]
Gateway NX260X Notebook [Part #1009112]
Gateway E-100M Notebook [Part #1009126]
Gateway MX7533 Notebook [Part #1009146] [Part #1009163]
Gateway CX210X Convertible Notebook [Part #1009346]
Gateway NX570X Notebook [Part #1009442]
Gateway NX570X Notebook [Part #1009448]
Gateway NX270S Notebook [Part #1009550]
Gateway MX6448 Notebook [Part #1013912R]
Gateway MX6453 Notebook [Part #1013913R]
Gateway MX6216 Notebook [Part #1013916R]
Gateway MX6931 Notebook [Part #1013918R]
Gateway CX2726 Convertible Notebook [Part #1013921R]
Gateway MP8708 Notebook [Part #1013924R]
Gateway MX6446 Notebook [Part #1013927R]
Gateway MX6930 Notebook [Part #1013928R]
Gateway MX6447 Notebook [Part #1013932R]
Gateway MX6454 Notebook [Part #1013943R]
Gateway MX6439 Notebook [Part #1013947R] [Part #1013955R] [Part #1013971R]
Gateway MX6930h Notebook [Part #1013973R] [Part #1013974R] [Part #1013975R]
Gateway MX6955 Notebook [Part #1014028R]
Gateway MX6956 Notebook [Part #1014033R]
Gateway MX6959 Notebook [Part #1014061R]
Gateway MX6957 Notebook [Part #1014065R]
Gateway MX6960 Notebook [Part #1014068R]
Gateway MX6958 Notebook [Part #1014072R]
Gateway NX570X Notebook [Part #1014077R]
Gateway NX570XL Notebook [Part #1014078R]
Gateway NX570QS Notebook [Part #1014079R]
Gateway MX6961 Notebook [Part #1014080R] [Part #1014106R]
Gateway MX6961h Notebook [Part #1014112R]
Gateway NX270S Notebook [Part #1014120R]
Gateway MX6431 Notebook [Part #1014121R]
Gateway MX8710 Notebook [Part #2905895R]
Gateway MX3702 Notebook [Part #2905898R]
Blade-K8F GW UMA Single Core Motherboard w/RS485M and 1394 - Quanta (FRU) [Part #4006133R]

Since some entries conflict with existing pinups, I'm providing a separate
patch to fix those entries.

Tested only with Gateway MX6453.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoALSA: hda - Add a new function to seek for a codec ID
Mauro Carvalho Chehab [Mon, 11 Aug 2008 08:18:39 +0000 (10:18 +0200)]
ALSA: hda - Add a new function to seek for a codec ID

Gateway notebooks have their ID inside codec vendor ID, not at PCI ID. Due to
that, model auto-detection were not possible with the standard seek method.

This is what is found at lspci -vnn:

00:14.2 Audio device [0403]: ATI Technologies Inc SB450 HDA Audio [1002:437b] (rev 01)
        Subsystem: ATI Technologies Inc SB450 HDA Audio [1002:437b]

Yet, autodetection is possible, since the codec properly reflects the vendor at
the Subsystem ID:

$ cat /proc/asound/card0/codec#0 |head -4

Codec: SigmaTel STAC9250
Address: 0
Vendor Id: 0x83847634
Subsystem Id: 0x107b0367

This patch adds a new autodetection function that seeks for codec subsystem ID.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agox86: provide readq()/writeq() on 32-bit too, complete
Ingo Molnar [Sun, 30 Nov 2008 09:20:20 +0000 (10:20 +0100)]
x86: provide readq()/writeq() on 32-bit too, complete

if HAVE_READQ/HAVE_WRITEQ are defined, the full range of readq/writeq
APIs has to be provided to drivers:

 drivers/infiniband/hw/amso1100/c2.c: In function 'c2_tx_ring_alloc':
 drivers/infiniband/hw/amso1100/c2.c:133: error: implicit declaration of function '__raw_writeq'

So provide them on 32-bit as well. Also, map all the APIs to the
strongest ordering variant. It's way too easy to mess such details
up in drivers and the difference between "memory" and "" constrained
asm() constructs is in the noise range.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: provide readq()/writeq() on 32-bit too, cleanup
Ingo Molnar [Sun, 30 Nov 2008 08:33:55 +0000 (09:33 +0100)]
x86: provide readq()/writeq() on 32-bit too, cleanup

Impact: cleanup

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: provide readq()/writeq() on 32-bit too
Hitoshi Mitake [Sun, 30 Nov 2008 08:16:04 +0000 (17:16 +0900)]
x86: provide readq()/writeq() on 32-bit too

Impact: add new API for drivers

Add implementation of readq/writeq to x86_32, and add config value to
the x86 architecture to determine existence of readq/writeq.

Signed-off-by: Hitoshi Mitake <h.mitake@gmail.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: intel_cacheinfo, minor show_type cleanup
Jiri Slaby [Sat, 29 Nov 2008 21:33:16 +0000 (22:33 +0100)]
x86: intel_cacheinfo, minor show_type cleanup

Impact: cleanup

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agogigaset: get rid of info() and warn() macros
Tilman Schmidt [Sun, 30 Nov 2008 05:38:28 +0000 (21:38 -0800)]
gigaset: get rid of info() and warn() macros

Join the move away from the obsolete info() macro, opencoding the
remaining uses. While we're at it, also get rid of the warn() macro
by promoting the three remaining uses to err().

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agogigaset: remove unnecessary poll method
Tilman Schmidt [Sun, 30 Nov 2008 05:38:04 +0000 (21:38 -0800)]
gigaset: remove unnecessary poll method

The N_GIGASET_M101 line discipline implemented by the ser_gigaset
driver does not transfer any data from/to userspace through the
tty interface. Therefore a poll method is not needed.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoACPI: EC: fix compilation warning
Hannes Eder [Sat, 29 Nov 2008 06:21:29 +0000 (07:21 +0100)]
ACPI: EC: fix compilation warning

Fix the warning introduced in commit c5279dee26c0e8d7c4200993bfc4b540d2469598,
and give the dummy variable a more verbose name.

  drivers/acpi/ec.c: In function 'acpi_ec_ecdt_probe':
  drivers/acpi/ec.c:1015: warning: ISO C90 forbids mixed declarations and code

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agoATM: horizon, fix hrz_probe fail path
Jiri Slaby [Sun, 30 Nov 2008 04:42:28 +0000 (20:42 -0800)]
ATM: horizon, fix hrz_probe fail path

One fail path in hrz_probe omitted device disable. Fix it.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[ARM] pxa: e740 MFP fix
Ian Molton [Fri, 26 Sep 2008 12:35:28 +0000 (13:35 +0100)]
[ARM] pxa: e740 MFP fix

Add the USB pins to the e740 MFP table.

Signed-off-by: Ian Molton <spyro@f2s.com>
17 years ago[ARM] IrDA support for e7xx
Ian Molton [Sun, 24 Aug 2008 18:21:26 +0000 (19:21 +0100)]
[ARM] IrDA support for e7xx

This patchset provides a fully functional SIR IrDA driver for the Toshiba
e7xx PDAs.

Signed-off-by: Ian Molton <spyro@f2s.com>
17 years agox86: fix dma_mapping_error for 32bit x86
Thomas Bogendoerfer [Sat, 29 Nov 2008 12:46:27 +0000 (13:46 +0100)]
x86: fix dma_mapping_error for 32bit x86

Devices like b44 ethernet can't dma from addresses above 1GB. The driver
handles this cases by falling back to GFP_DMA allocation. But for detecting
the problem it needs to get an indication from dma_mapping_error.
The bug is triggered by using a VMSPLIT option of 2G/2G.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agosched: prevent divide by zero error in cpu_avg_load_per_task, update
Ingo Molnar [Sat, 29 Nov 2008 19:45:15 +0000 (20:45 +0100)]
sched: prevent divide by zero error in cpu_avg_load_per_task, update

Regarding the bug addressed in:

  4cd4262: sched: prevent divide by zero error in cpu_avg_load_per_task

Linus points out that the fix is not complete:

> There's nothing that keeps gcc from deciding not to reload
> rq->nr_running.
>
> Of course, in _practice_, I don't think gcc ever will (if it decides
> that it will spill, gcc is likely going to decide that it will
> literally spill the local variable to the stack rather than decide to
> reload off the pointer), but it's a valid compiler optimization, and
> it even has a name (rematerialization).
>
> So I suspect that your patch does fix the bug, but it still leaves the
> fairly unlikely _potential_ for it to re-appear at some point.
>
> We have ACCESS_ONCE() as a macro to guarantee that the compiler
> doesn't rematerialize a pointer access. That also would clarify
> the fact that we access something unsafe outside a lock.

So make sure our nr_running value is immutable and cannot change
after we check it for nonzero.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agosched, cpusets: fix warning in kernel/cpuset.c
Ingo Molnar [Tue, 25 Nov 2008 09:27:49 +0000 (10:27 +0100)]
sched, cpusets: fix warning in kernel/cpuset.c

this warning:

  kernel/cpuset.c: In function ‘generate_sched_domains’:
  kernel/cpuset.c:588: warning: ‘ndoms’ may be used uninitialized in this function

triggers because GCC does not recognize that ndoms stays uninitialized
only if doms is NULL - but that flow is covered at the end of
generate_sched_domains().

Help out GCC by initializing this variable to 0. (that's prudent anyway)

Also, this function needs a splitup and code flow simplification:
with 160 lines length it's clearly too long.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoMerge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel
Russell King [Sat, 29 Nov 2008 19:35:07 +0000 (19:35 +0000)]
Merge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel

17 years ago[ARM] give RiscPC a NR_IRQS definition and remove default
Russell King [Sat, 29 Nov 2008 19:14:31 +0000 (19:14 +0000)]
[ARM] give RiscPC a NR_IRQS definition and remove default

RiscPC is the only platform using the default setting for NR_IRQS,
so the default NR_IRQS doesn't really make sense; remove it and
make RiscPC provide such a definition.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] Rename ISA mach/dma.h header to mach/isa-dma.h
Russell King [Sat, 29 Nov 2008 18:48:07 +0000 (18:48 +0000)]
[ARM] Rename ISA mach/dma.h header to mach/isa-dma.h

This avoids confusion with platform specific DMA implementations in
mach/dma.h

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] Remove linux/sched.h from asm/cacheflush.h and asm/uaccess.h
Russell King [Sat, 29 Nov 2008 17:35:51 +0000 (17:35 +0000)]
[ARM] Remove linux/sched.h from asm/cacheflush.h and asm/uaccess.h

... and fix those drivers that were incorrectly relying upon
that include.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] Hide ISA DMA API when ISA_DMA_API is unset
Russell King [Sat, 29 Nov 2008 11:40:28 +0000 (11:40 +0000)]
[ARM] Hide ISA DMA API when ISA_DMA_API is unset

When ISA_DMA_API is unset, we're not implementing the ISA DMA API,
so there's no point in publishing the prototypes via asm/dma.h, nor
including the machine dependent parts of that API.

This allows us to remove a lot of mach/dma.h files which don't contain
any useful code.  Unfortunately though, some platforms put their own
private non-ISA definitions into mach/dma.h, so we leave these behind
and fix the appropriate #include statments.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] fix constant values of MAX_DMA_ADDRESS
Russell King [Sat, 29 Nov 2008 10:56:33 +0000 (10:56 +0000)]
[ARM] fix constant values of MAX_DMA_ADDRESS

Since 8d5796d2ec6b5a4e7a52861144e63af438d6f8f7, we have allowed
PAGE_OFFSET to be configurable, so a constant virtual address
for MAX_DMA_ADDRESS is buggy.  It should be defined in terms of
PAGE_OFFSET rather than a constant virtual address.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agoieee1394: sbp2: fix race condition in state change
Stefan Richter [Sat, 29 Nov 2008 13:55:47 +0000 (14:55 +0100)]
ieee1394: sbp2: fix race condition in state change

An intermediate transition from _RUNNING to _IN_SHUTDOWN could have been
missed by the former code.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
17 years agoieee1394: fix list corruption (reported at module removal)
Stefan Richter [Wed, 26 Nov 2008 00:34:25 +0000 (01:34 +0100)]
ieee1394: fix list corruption (reported at module removal)

If there is more than one FireWire controller present, dummy_zero_addr
and dummy_max_addr were added multiple times to different lists, thus
corrupting the lists.  Fix this by allocating them dynamically per host
instead of just once globally.

(Perhaps a better address space allocation algorithm could rid us of the
two dummy address spaces.)

Fixes http://bugzilla.kernel.org/show_bug.cgi?id=10129 .

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
17 years agotracepoints: Documentation TPPROTO misspelt in Documentation/tracepoints.txt
Nikanth Karthikesan [Sat, 29 Nov 2008 10:13:32 +0000 (15:43 +0530)]
tracepoints: Documentation TPPROTO misspelt in Documentation/tracepoints.txt

Impact: fix typo in documentation

TPPROTO is misspelt in Documentation/tracepoints.txt
Kept me wondering what was wrong, when I was trying to add a new tracepoint
subsystem.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years ago[ARM] move MAX_DMA_ADDRESS to mach/memory.h
Russell King [Sat, 29 Nov 2008 10:50:22 +0000 (10:50 +0000)]
[ARM] move MAX_DMA_ADDRESS to mach/memory.h

Move the definition of MAX_DMA_ADDRESS from mach/dma.h to mach/memory.h,
thereby placing it along side its relative, ISA_DMA_THRESHOLD.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agotracing/branch-tracer: include missing irqflags.h
Frederic Weisbecker [Sat, 29 Nov 2008 03:12:46 +0000 (04:12 +0100)]
tracing/branch-tracer: include missing irqflags.h

Impact: fix build error on branch tracer

This should fix a build error reported on alpha in linux-next:

 CC      kernel/trace/trace_branch.o
  kernel/trace/trace_branch.c: In function 'probe_likely_condition':
  kernel/trace/trace_branch.c:44: error: implicit declaration of function 'raw_local_irq_save'
  kernel/trace/trace_branch.c:76: error: implicit declaration of function 'raw_local_irq_restore'

Unfortunately, I can't test it since I don't have any Alpha build environment.

Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agopppol2tp: Add missing sock_put() in pppol2tp_release()
Frédéric Moulins [Sat, 29 Nov 2008 06:12:02 +0000 (22:12 -0800)]
pppol2tp: Add missing sock_put() in pppol2tp_release()

pppol2tp_sock_to_session() do sock_hold() if the session to release is
not NULL.

Signed-off-by: Frédéric Moulins <frederic.moulins@alsatis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agocxgb3: Fix sparse warning and micro-optimize is_pure_response()
Roland Dreier [Sat, 29 Nov 2008 05:55:42 +0000 (21:55 -0800)]
cxgb3: Fix sparse warning and micro-optimize is_pure_response()

The function is_pure_response() does "ntohl(var) & const" and then
essentially just tests whether the result is 0 or not; this can be done
more efficiently by computing "var & htonl(const)" instead and doing the
byte swap at compile time instead of run time.

This change slightly shrinks the compiled code; eg on x86-64 we save a
couple of bswapl instructions:

add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8 (-8)
function                                     old     new   delta
t3_sge_intr_msix_napi                        544     536      -8

and this also has the pleasant side effect of fixing a sparse warning:

    drivers/net/cxgb3/sge.c:2313:15: warning: restricted degrades to integer

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agomlx4_core: Save/restore default port IB capability mask
Jack Morgenstein [Sat, 29 Nov 2008 05:29:46 +0000 (21:29 -0800)]
mlx4_core: Save/restore default port IB capability mask

Commit 7ff93f8b ("mlx4_core: Multiple port type support") introduced
support for different port types.  As part of that support, SET_PORT
is invoked to set the port type during driver startup.  However, as a
side-effect, for IB ports the invocation of this command also sets the
port's capability mask to zero (losing the default value set by FW).

To fix this, get the default ib port capabilities (via a MAD_IFC Port
Info query) during driver startup, and save them for use in the
mlx4_SET_PORT command when setting the port-type to Infiniband.

This patch fixes problems with subnet manager (SM) failover such as
<https://bugs.openfabrics.org/show_bug.cgi?id=1183>, which occurred
because the IsTrapSupported bit in the capability mask was zeroed.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agophy: add the ST ste10Xp PHYs
Giuseppe Cavallaro [Sat, 29 Nov 2008 00:42:41 +0000 (16:42 -0800)]
phy: add the ST ste10Xp PHYs

This patch adds the STMicroelectronics ste10xp PHY device driver.
It supports both the ste100p and the ste101p devices.

Suspend/resume alredy added.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agophy: Add file missed in previous commit.
David S. Miller [Sat, 29 Nov 2008 00:40:26 +0000 (16:40 -0800)]
phy: Add file missed in previous commit.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agophy: power management support
Giuseppe Cavallaro [Sat, 29 Nov 2008 00:24:56 +0000 (16:24 -0800)]
phy: power management support

This patch adds the power management support into the physical
abstraction layer.

Suspend and resume functions respectively turns on/off the bit 11
into the PHY Basic mode control register.
Generic PHY device starts supporting PM.

In order to support the wake-on LAN and avoid to put in power down
the PHY device, the MDIO is aware of what the Ethernet device wants to do.

Voluntary, no CONFIG_PM defines were added into the sources.
Also generic suspend/resume functions are exported to allow
other drivers use them (such as genphy_config_aneg etc.).

Within the phy_driver_register function, we need to remove the
memset. It overrides the device driver owner and it is not good.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agophy: add natsemi PHY driver
Giuseppe Cavallaro [Sat, 29 Nov 2008 00:14:12 +0000 (16:14 -0800)]
phy: add natsemi PHY driver

This patch adds the PHY device driver for the National Semiconductor
DP83865 Gig PHYTER.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agone2: silence static never defined warnings
Ilpo Järvinen [Fri, 28 Nov 2008 23:55:00 +0000 (15:55 -0800)]
ne2: silence static never defined warnings

These warning originate from 50014f1 (ne2: convert to
net_device_ops) which did drop those functions.

drivers/net/ne2.c:140: warning: 'ne_open' declared 'static' but never defined
drivers/net/ne2.c:141: warning: 'ne_close' declared 'static' but never defined

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agobnx2: use net_device_stats nowadays available in net_device
Ilpo Järvinen [Fri, 28 Nov 2008 23:52:43 +0000 (15:52 -0800)]
bnx2: use net_device_stats nowadays available in net_device

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoniu: use net_device_stats nowadays available in net_device
Ilpo Järvinen [Fri, 28 Nov 2008 23:52:00 +0000 (15:52 -0800)]
niu: use net_device_stats nowadays available in net_device

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years ago[ARM] Remove unnecessary mach/hardware.h includes in arch/arm/mm
Russell King [Fri, 28 Nov 2008 22:48:33 +0000 (22:48 +0000)]
[ARM] Remove unnecessary mach/hardware.h includes in arch/arm/mm

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] asm/system.h does not require asm/memory.h
Russell King [Fri, 28 Nov 2008 22:37:15 +0000 (22:37 +0000)]
[ARM] asm/system.h does not require asm/memory.h

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] ns9xxx: mach/hardware.h doesn't need asm/memory.h
Russell King [Fri, 28 Nov 2008 21:13:08 +0000 (21:13 +0000)]
[ARM] ns9xxx: mach/hardware.h doesn't need asm/memory.h

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] ixp4xx: clean up includes
Russell King [Fri, 28 Nov 2008 21:12:40 +0000 (21:12 +0000)]
[ARM] ixp4xx: clean up includes

mach/io.h doesn't need linux/mm.h.
mach/dma.h doesn't need linux/device.h, asm/page.h or mach/hardware.h

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] ixp23xx: mach/io.h doesn't need BUG() anymore
Russell King [Fri, 28 Nov 2008 21:10:06 +0000 (21:10 +0000)]
[ARM] ixp23xx: mach/io.h doesn't need BUG() anymore

ixp23xx's mach/io.h claims to need linux/kernel.h for BUG().
However, this header doesn't make use of BUG().

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] iop13xx: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] iop13xx: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/timex.h.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] iop3xx: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] iop3xx: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h, mach/memory.h and mach/timex.h.  Include
this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] shark: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] shark: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] shark: remove old unused "translated" IO macros
Russell King [Fri, 28 Nov 2008 17:04:11 +0000 (17:04 +0000)]
[ARM] shark: remove old unused "translated" IO macros

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] clps711x: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] clps711x: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] footbridge: mach/hardware.h doesn't require mach/memory.h
Russell King [Fri, 28 Nov 2008 21:09:35 +0000 (21:09 +0000)]
[ARM] footbridge: mach/hardware.h doesn't require mach/memory.h

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agotoshiba_acpi: close race in toshiba_acpi driver
Arjan van de Ven [Fri, 28 Nov 2008 16:19:09 +0000 (08:19 -0800)]
toshiba_acpi: close race in toshiba_acpi driver

the toshiba ACPI driver will, in a failure case, free the rfkill state
before stopping the polling timer that would use this state. More interesting,
in the same failure case handling, it calls the exit function, which also
frees the rfkill state, but after stopping the polling.

If the race happens, a NULL pointer is passed to rfkill_force_state()
which then causes a nice dereference.

Fix the race by just not doing the too-early freeing of the rfkill state.

This appears to be the cause of a hot issue on kerneloops.org; while I
have no solid evidence of that this patch will fix the issue, the race
appears rather real.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
17 years agosched: move double_unlock_balance() higher
Alexey Dobriyan [Fri, 28 Nov 2008 19:08:00 +0000 (22:08 +0300)]
sched: move double_unlock_balance() higher

Move double_lock_balance()/double_unlock_balance() higher to fix the following
with gcc-3.4.6:

   CC      kernel/sched.o
 In file included from kernel/sched.c:1605:
 kernel/sched_rt.c: In function `find_lock_lowest_rq':
 kernel/sched_rt.c:914: sorry, unimplemented: inlining failed in call to 'double_unlock_balance': function body not available
 kernel/sched_rt.c:1077: sorry, unimplemented: called from here
 make[2]: *** [kernel/sched.o] Error 1

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoMerge branch 'sched/urgent' into sched/core
Ingo Molnar [Fri, 28 Nov 2008 19:11:05 +0000 (20:11 +0100)]
Merge branch 'sched/urgent' into sched/core

17 years agovfs, seqfile: export mangle_path() generally
Ingo Molnar [Fri, 28 Nov 2008 17:03:22 +0000 (18:03 +0100)]
vfs, seqfile: export mangle_path() generally

mangle_path() is trivial enough to make  export restrictions on it
pointless - so change the export from EXPORT_SYMBOL_GPL to EXPORT_SYMBOL.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
17 years agodebug warnings: eliminate warn_on_slowpath()
Ingo Molnar [Fri, 28 Nov 2008 16:56:14 +0000 (17:56 +0100)]
debug warnings: eliminate warn_on_slowpath()

Impact: cleanup, eliminate code

now that warn_on_slowpath() uses warn_slowpath(...,NULL), we can
eliminate warn_on_slowpath() altogether and use warn_slowpath().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years ago[ARM] footbridge: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] footbridge: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agodebug warnings: print the DMI board info name in a WARN/WARN_ON
Arjan van de Ven [Fri, 28 Nov 2008 16:36:09 +0000 (08:36 -0800)]
debug warnings: print the DMI board info name in a WARN/WARN_ON

Impact: extend WARN_ON() output with DMI_PRODUCT_NAME

It's very useful for many low level WARN_ON's to find out which
motherboard has the broken BIOS etc... this patch adds a printk
to the WARN_ON code for this.

On architectures without DMI, gcc should optimize the code out.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agodebug warnings: consolidate warn_slowpath and warn_on_slowpath
Arjan van de Ven [Fri, 28 Nov 2008 16:35:25 +0000 (08:35 -0800)]
debug warnings: consolidate warn_slowpath and warn_on_slowpath

Impact: cleanup, code reduction

warn_slowpath is a superset of warn_on_slowpath; just have
warn_on_slowpath call warn_slowpath with a NULL 3rd argument.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years ago[ARM] aaec2000: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] aaec2000: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] lh7a40x: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] lh7a40x: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] l7200: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] l7200: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] h720x: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] h720x: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] imx: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:13:44 +0000 (16:13 +0000)]
[ARM] imx: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h in mach/io.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] pxa: avoid polluting the kernel's namespace
Russell King [Fri, 28 Nov 2008 16:04:54 +0000 (16:04 +0000)]
[ARM] pxa: avoid polluting the kernel's namespace

Avoid unnecessarily pollution of the kernel's namespace by avoiding
mach/hardware.h.  Include this header file where necessary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] rpc: remove obsolete IO accessors
Russell King [Fri, 28 Nov 2008 15:49:11 +0000 (15:49 +0000)]
[ARM] rpc: remove obsolete IO accessors

Remove __arch_base_xxx() and __ioaddrc() macros; they're obsolete and
unused.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>