]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] [sparse] get rid of warnings about #if DEBUG
Stephen Hemminger [Wed, 30 Jun 2004 19:26:04 +0000 (15:26 -0400)]
[PATCH] [sparse] get rid of warnings about #if DEBUG

Several drivers use '#if DEBUG' which is a warning under the sparse checker.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
22 years ago[PATCH] (2/3) skfp -- sparse __user annotation
Stephen Hemminger [Wed, 30 Jun 2004 19:24:24 +0000 (15:24 -0400)]
[PATCH] (2/3) skfp -- sparse __user annotation

Add __user annotation to the device specific ioctl.

22 years ago[PATCH] (1/3) skfp - cleanup is_XXX functions
Stephen Hemminger [Wed, 30 Jun 2004 19:24:14 +0000 (15:24 -0400)]
[PATCH] (1/3) skfp - cleanup is_XXX functions

This started out from sparse warnings about calling with fddi_broadcast
that is declared const.  This fixes that and gets rid of some of the namespace
pollution of this driver by moving the predicate function is_individual, is_broadcast, ...
as inline's in the one file that uses them.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
22 years ago[PATCH] net/ne2.c needs MCA_LEGACY
Andrew Morton [Wed, 30 Jun 2004 19:21:48 +0000 (15:21 -0400)]
[PATCH] net/ne2.c needs MCA_LEGACY

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

drivers/net/ne2.c does not compile without CONFIG_MCA_LEGACY set.

As CONFIG_MCA_LEGACY depends on CONFIG_MCA, we can use only
CONFIG_MCA_LEGACY, insteed of "MCA && MCA_LEGACY".

Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] net/at1700.c depends on MCA_LEGACY
Andrew Morton [Wed, 30 Jun 2004 19:21:39 +0000 (15:21 -0400)]
[PATCH] net/at1700.c depends on MCA_LEGACY

From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>

drivers/net/at1700.c does not compile without CONFIG_MCA_LEGACY set.

As CONFIG_MCA_LEGACY depends on CONFIG_MCA, we can use only
CONFIG_MCA_LEGACY, insteed of "MCA && MCA_LEGACY".

Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] pcnet32: change to use module_param
Don Fry [Wed, 30 Jun 2004 19:20:45 +0000 (15:20 -0400)]
[PATCH] pcnet32: change to use module_param

Change the pcnet32 driver to use module_param and module_param_array.

22 years ago[PATCH] pcnet32: correctly program bcr32.
Don Fry [Wed, 30 Jun 2004 19:20:36 +0000 (15:20 -0400)]
[PATCH] pcnet32:  correctly program bcr32.

The pcnet32 driver was not correctly enabling MII autonegotiation after
booting when ppc firmware forced the speed/duplex mode of the chip.
After several conversations with AMD this patch corrects the problem.

I have tested this on hardware I have available (ia32 and ppc64) but I
would like wider audience testing of this patch.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>
22 years ago[PATCH] pcnet32: Add HomePNA parameter for 79C978.
Don Fry [Wed, 30 Jun 2004 19:20:27 +0000 (15:20 -0400)]
[PATCH] pcnet32: Add HomePNA parameter for 79C978.

This patch adds a module parameter to select HomePNA mode of operation for
the 79C978 version of the pcnet32.  Tested ia32 and ppc64.

signed-off-by: Patrick Simmons <psimmons@flash.net>
signed-off-by: Don Fry <brazilnut@us.ibm.com>

22 years ago[PATCH] pcnet32: acknowledge all interrupts early.
Don Fry [Wed, 30 Jun 2004 19:20:18 +0000 (15:20 -0400)]
[PATCH] pcnet32: acknowledge all interrupts early.

A recent change I made broke pcnet32 in a way that allowed real hardware
to work, but broke VMWare.  This patch acknowledges all interrupts early
in the pcnet32_interrupt while loop.  Without this patch on real hardware
the first transmit operation would clear the 'init' interrupt, but in
VMWare it would rain interrupts.  Keith Moore did more testing for me
on VMWare and I did a better job testing on hardware.  Petr Vandrovec
correctly pointed out the source of the problem on lkml.

This patch is not needed for 2.4.27-rc1 unless my patch labeled
"pcnet32: recover after rx hang" is applied (which it has not).

signed-off-by: Don Fry <brazilnut@us.ibm.com>

22 years ago[PATCH] prism54 use set_pci_mwi()
Margit Schubert-While [Wed, 30 Jun 2004 19:17:12 +0000 (15:17 -0400)]
[PATCH] prism54 use set_pci_mwi()

2004-06-28 Margit Schubert-While <margitsw@t-online.de>

* Use set_pci_mwi()

22 years ago[PATCH] prism54 remove prog reg poke
Margit Schubert-While [Wed, 30 Jun 2004 19:17:03 +0000 (15:17 -0400)]
[PATCH] prism54 remove prog reg poke

2004-06-28 Margit Schubert-While <margitsw@t-online.de>

* Don't poke around in the timeout registers

22 years ago[PATCH] prism54 device list cleanup
Margit Schubert-While [Wed, 30 Jun 2004 19:16:54 +0000 (15:16 -0400)]
[PATCH] prism54 device list cleanup

2004-06-28 Margit Schubert-While <margitsw@t-online.de>

* Clean up the device table

22 years ago[PATCH] prism54 fix unlikely
Margit Schubert-While [Wed, 30 Jun 2004 19:16:45 +0000 (15:16 -0400)]
[PATCH] prism54 fix unlikely

2004-06-28 Margit Schubert-While <margitsw@t-online.de>

* Fix a thinko by me

22 years ago[PATCH] prism54 missing error check
Margit Schubert-While [Wed, 30 Jun 2004 19:16:36 +0000 (15:16 -0400)]
[PATCH] prism54 missing error check

2004-06-28 Margit Schubert-While <margitsw@t-online.de>

* Missing error check after dev_alloc_skb

22 years ago[PATCH] prism54 cleanup functions
Margit Schubert-While [Wed, 30 Jun 2004 19:16:26 +0000 (15:16 -0400)]
[PATCH] prism54 cleanup functions

2004-06-28 Margit Schubert-While <margitsw@t-online.de>

* Clean up function definitions (missing static, extraneous inline)

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Wed, 30 Jun 2004 09:22:46 +0000 (02:22 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM PATCH] 1949/1: warning fix
Nicolas Pitre [Wed, 30 Jun 2004 22:11:22 +0000 (23:11 +0100)]
[ARM PATCH] 1949/1: warning fix

Patch from Nicolas Pitre

Missing prototype.

22 years ago[ARM PATCH] 1948/1: Mainstone compile fix
Nicolas Pitre [Wed, 30 Jun 2004 21:58:10 +0000 (22:58 +0100)]
[ARM PATCH] 1948/1: Mainstone compile fix

Patch from Nicolas Pitre

... and a comment fix in bonus

22 years ago[ARM PATCH] 1947/1: Remove unused async_struct in OMAP pm.h
Tony Lindgren [Wed, 30 Jun 2004 21:48:13 +0000 (22:48 +0100)]
[ARM PATCH] 1947/1: Remove unused async_struct in OMAP pm.h

Patch from Tony Lindgren

Removes some dead code as noted by Russell King.

22 years agoMerge bk://linux-dj.bkbits.net/agpgart
Linus Torvalds [Wed, 30 Jun 2004 08:57:30 +0000 (01:57 -0700)]
Merge bk://linux-dj.bkbits.net/agpgart
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[AGPGART] K8T800 Pro support in amd64 driver.
Dave Jones [Wed, 30 Jun 2004 17:30:47 +0000 (18:30 +0100)]
[AGPGART] K8T800 Pro support in amd64 driver.

Signed-off-by: Kris Kersey <augustus@linuxhardware.org>
Signed-off-by: Dave Jones <davej@redhat.com>
22 years ago[PATCH] sparse: NULL vs 0 - the rest of it
Mika Kukkonen [Wed, 30 Jun 2004 08:52:08 +0000 (01:52 -0700)]
[PATCH] sparse: NULL vs 0 - the rest of it

22 years ago[PATCH] sparse: NULL vs 0 - sound/*
Mika Kukkonen [Wed, 30 Jun 2004 08:51:56 +0000 (01:51 -0700)]
[PATCH] sparse: NULL vs 0 - sound/*

22 years ago[PATCH] sparse: NULL vs 0 - net/*
Mika Kukkonen [Wed, 30 Jun 2004 08:51:44 +0000 (01:51 -0700)]
[PATCH] sparse: NULL vs 0 - net/*

22 years ago[PATCH] sparse: NULL vs 0 - filesystems
Mika Kukkonen [Wed, 30 Jun 2004 08:51:31 +0000 (01:51 -0700)]
[PATCH] sparse: NULL vs 0 - filesystems

22 years ago[PATCH] sparse: NULL vs 0 - drivers/usb
Mika Kukkonen [Wed, 30 Jun 2004 08:51:19 +0000 (01:51 -0700)]
[PATCH] sparse: NULL vs 0 - drivers/usb

22 years ago[PATCH] sparse: NULL vs 0 - rest of drivers
Mika Kukkonen [Wed, 30 Jun 2004 08:51:07 +0000 (01:51 -0700)]
[PATCH] sparse: NULL vs 0 - rest of drivers

22 years ago[PATCH] sparse: NULL vs 0 - drivers/char/*
Mika Kukkonen [Wed, 30 Jun 2004 08:50:54 +0000 (01:50 -0700)]
[PATCH] sparse: NULL vs 0 - drivers/char/*

22 years ago[PATCH] sparse: NULL vs 0 - drivers/acpi/*
Mika Kukkonen [Wed, 30 Jun 2004 08:50:43 +0000 (01:50 -0700)]
[PATCH] sparse: NULL vs 0 - drivers/acpi/*

22 years ago[PATCH] sparse: NULL vs 0 - arch/i386/*
Mika Kukkonen [Wed, 30 Jun 2004 08:50:31 +0000 (01:50 -0700)]
[PATCH] sparse: NULL vs 0 - arch/i386/*

22 years ago[AGPGART] Fix sparse NULL pointer warnings.
Dave Jones [Wed, 30 Jun 2004 00:29:58 +0000 (01:29 +0100)]
[AGPGART] Fix sparse NULL pointer warnings.

Signed-off-by: Dave Jones <davej@redhat.com>
22 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Tue, 29 Jun 2004 13:22:55 +0000 (06:22 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agosparse: get rid of more integer/pointer confusion
Linus Torvalds [Tue, 29 Jun 2004 13:22:07 +0000 (06:22 -0700)]
sparse: get rid of more integer/pointer confusion

Use NULL, not 0, where appropriate.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Tue, 29 Jun 2004 12:56:54 +0000 (05:56 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM] Miscellaneous fixes
Russell King [Tue, 29 Jun 2004 19:26:07 +0000 (20:26 +0100)]
[ARM] Miscellaneous fixes

- Remove 'arc' machine name from Makefile
- clk_set_rate() should return non-zero atm.
- proc-sa1100.S doesn't need asm/ptrace.h
- update mach-types
- kill line of spaces in clock.h

22 years ago[ARM] MMC mclk is no longer used, so remove it.
Russell King [Tue, 29 Jun 2004 19:06:12 +0000 (20:06 +0100)]
[ARM] MMC mclk is no longer used, so remove it.

22 years ago[ARM] Reliably update SIZEOF_MACHINE_DESC
Russell King [Tue, 29 Jun 2004 18:57:12 +0000 (19:57 +0100)]
[ARM] Reliably update SIZEOF_MACHINE_DESC

Generate SIZEOF_MACHINE_DESC using asm-offsets method rather than
relying on people updating the definition in asm/mach/arch.h

22 years ago[ARM] Move arch_adjust_zones to asm/memory.h
Russell King [Tue, 29 Jun 2004 17:48:23 +0000 (18:48 +0100)]
[ARM] Move arch_adjust_zones to asm/memory.h

This places arch_adjust_zones along side ISA_DMA_THRESHOLD.  These
two are related, but having them in separate files means its not
obvious that they are.

ISA_DMA_THRESHOLD is a DMA mask which must be defined such that it
matches the memory handed out by GFP_DMA, which in turn is controlled
by arch_adjust_zones.

22 years ago[ARM] Move ISA_DMA_THRESHOLD to asm/memory.h
Russell King [Tue, 29 Jun 2004 17:17:09 +0000 (18:17 +0100)]
[ARM] Move ISA_DMA_THRESHOLD to asm/memory.h

This allows machine classes to override ISA_DMA_THRESHOLD as
necessary.

22 years ago[ARM] arch/arm/Makefile cleanups
Russell King [Tue, 29 Jun 2004 16:21:15 +0000 (17:21 +0100)]
[ARM] arch/arm/Makefile cleanups

Clean up bzImage target, remove a couple of obsolete testing targets,
and add better bootpImage help text.

22 years ago[ARM] EBSA110 I/O and decompressor fixes.
Russell King [Tue, 29 Jun 2004 16:02:46 +0000 (17:02 +0100)]
[ARM] EBSA110 I/O and decompressor fixes.

This fixes the buggy decompressor assembly, and fixes PCMCIA IO
to use the correct byte lane when accessing certain PCMCIA cards.

22 years ago[ARM] Prevent static data in misc.o
Russell King [Tue, 29 Jun 2004 14:39:12 +0000 (15:39 +0100)]
[ARM] Prevent static data in misc.o

Static data causes GOTOFF relocations to be used, which won't work
because we want to relocate the .data section separately from the
.text section.  Therefore, force all data to be nonstatic.

22 years ago[ARM] Kernel boot decompressor updates
Russell King [Tue, 29 Jun 2004 13:33:49 +0000 (14:33 +0100)]
[ARM] Kernel boot decompressor updates

- use 'Image' target for kernel image to be compressed rather than
  duplicating its generation.
- use .incbin-based generation of ELF objects from binary data rather
  than 'ld'-based generation.

22 years ago[ARM] Convert bootp to use kbuild infrastructure.
Russell King [Tue, 29 Jun 2004 13:18:41 +0000 (14:18 +0100)]
[ARM] Convert bootp to use kbuild infrastructure.

22 years ago[ARM] Fix install/zinstall to work with separated source/build trees.
Russell King [Tue, 29 Jun 2004 13:05:41 +0000 (14:05 +0100)]
[ARM] Fix install/zinstall to work with separated source/build trees.

22 years ago[ARM] arch/arm/boot variable name consistency.
Russell King [Tue, 29 Jun 2004 12:54:28 +0000 (13:54 +0100)]
[ARM] arch/arm/boot variable name consistency.

For clarity and consistency, use the same name for makefile and
linker symbols.

22 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Tue, 29 Jun 2004 12:46:18 +0000 (05:46 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

22 years ago[ARM] Move ZTEXTADDR/ZBSSADDR initialisation to compressed/Makefile
Russell King [Tue, 29 Jun 2004 12:38:54 +0000 (13:38 +0100)]
[ARM] Move ZTEXTADDR/ZBSSADDR initialisation to compressed/Makefile

Since this is where these two variables are used, it makes sense to
have them in that makefile.  Also, consolidate "targets"
initialisation, fixes a missing FORCE dependency for the uImage rule,
and remove more FTVPCI code.

22 years ago[PATCH] kill mm_struct.used_hugetlb
Oleg Nesterov [Tue, 29 Jun 2004 12:26:38 +0000 (05:26 -0700)]
[PATCH] kill mm_struct.used_hugetlb

mm_struct.used_hugetlb used to eliminate costly find_vma() from
follow_page().  Now it is used only in ia64 version of follow_huge_addr().
I know nothing about ia64, but this REGION_NUMBER() looks simple enough to
kill used_hugetlb.

There is debug version (commented out) of follow_huge_addr() in i386 which
looks at used_hugetlb, but it can work without this check.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radeonfb: 16bpp copyarea() fix
David Eger [Tue, 29 Jun 2004 12:21:36 +0000 (05:21 -0700)]
[PATCH] radeonfb: 16bpp copyarea() fix

radeonfb: fix 16bpp copyarea() bug

It turns out the bug was due to my mis-copying a certain set of flags from
the x.org tree.

Signed-off-by: David Eger <eger@havoc.gtf.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix Alpha compilation
Peter Chubb [Tue, 29 Jun 2004 12:21:25 +0000 (05:21 -0700)]
[PATCH] Fix Alpha compilation

When using gcc 3.3.3 on alpha, the current BK head doesn't compile.

- there's an external declaration for abs() in the same scope as a macro
  definition in arch/alpha/time.c

- The compiler is picky about `const' declarations, which breaks on
  bitops.h.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix page->count discrepancy for zero page
Dave Hansen [Tue, 29 Jun 2004 12:21:13 +0000 (05:21 -0700)]
[PATCH] fix page->count discrepancy for zero page

While writing some analysis tools for memory hot-remove, we came across a
single page which had a ->count that always increased, without bound.  It
ended up always being the zero page, and it was caused by a leaked
reference in some do_wp_page() code that ends up avoiding PG_reserved
pages.

Basically what happens is that page_cache_release()/put_page() ignore
PG_reserved pages, while page_cache_get()/get_page() go ahead and take the
reference.  So, each time there's a COW fault on the zero-page, you get a
leaked page->count increment.

It's pretty rare to have a COW fault on anything that's PG_reserved, in
fact, I can't think of anything else that this applies to other than the
zero page.

In any case, it the bug doesn't cause any real problems, but it is a bit of
an annoyance and is obviously incorrect.  We've been running with this
patch for about 3 months now, and haven't run into any problems with it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add <linux/compiler.h> to <linux/fd.h>
Tom Rini [Tue, 29 Jun 2004 12:21:02 +0000 (05:21 -0700)]
[PATCH] Add <linux/compiler.h> to <linux/fd.h>

<linux/fd.h> references __user which is defined in <linux/compiler.h>.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] small fixes to checkstack
Jörn Engel [Tue, 29 Jun 2004 12:20:51 +0000 (05:20 -0700)]
[PATCH] small fixes to checkstack

 - fix documentation
 - use $(src) in Makefile (fixes cross-compilation)

Both spottet by Geert Uytterhoeven

Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add m68k support to checkstack
Jörn Engel [Tue, 29 Jun 2004 12:20:40 +0000 (05:20 -0700)]
[PATCH] Add m68k support to checkstack

Add m68k support to checkstack.pl

Regular expression combination by Andres Schwab

Signed-off-by: <geert@linux-m68k.org>
Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] dma_get_required_mask()
James Bottomley [Tue, 29 Jun 2004 12:20:29 +0000 (05:20 -0700)]
[PATCH] dma_get_required_mask()

This patch implements dma_get_required_mask() which may be used by drivers
to probe the optimal DMA descriptor type they should be implementing on the
platform.

I've also tested it this time with the sym_2 driver...making it chose the
correct descriptors for the platform.  (although I don't have a 64 bit
platform with >4GB memory, so I only confirmed it selects the 32 bit
descriptors all the time...)

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Combined patch for remaining trivial sparse warnings in allnoconfig build
Mika Kukkonen [Tue, 29 Jun 2004 12:20:18 +0000 (05:20 -0700)]
[PATCH] Combined patch for remaining trivial sparse warnings in allnoconfig build

Well, one of these (fs/block_dev.c) is little non-trivial, but i felt
throwing that away would be a shame (and I did add comments ;-).

Also almost all of these have been submitted earlier through other
channels, but have not been picked up (the only controversial is again the
fs/block_dev.c patch, where Linus felt a better job would be done with
__ffs(), but I could not convince myself that is does the same thing as
original code).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] EDD: store mbr_signature on first 16 int13 devices
Matt Domsch [Tue, 29 Jun 2004 12:20:06 +0000 (05:20 -0700)]
[PATCH] EDD: store mbr_signature on first 16 int13 devices

Currently, the x86/x86_64 real-mode kernel setup code reads and stores the
mbr_signature (4 bytes in the MBR at offset 440 decimal) for BIOS int13h
device 80h only.  This is useful, but not as useful as if we stored such
signatures for all int13h devices.  Think OS installer wanting to set up md
software RAID across several BIOS disks.

Patch below against 2.6.7 allows the storing of the mbr_signature for the
first 16 BIOS int13h devices, and exports them via
/sys/firmware/edd/int13_dev8x/mbr_signature as before.

This also merges the three EXPORT_SYMBOLs that setup.c exported for edd.c's
use into one.

Signed-off-by: Matt Domsch <Matt_Domsch@dell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] signed bug in drivers/video/console/fbcon.c con2fb_map[]
Olaf Hering [Tue, 29 Jun 2004 12:19:54 +0000 (05:19 -0700)]
[PATCH] signed bug in drivers/video/console/fbcon.c con2fb_map[]

drivers/video/console/fbcon.c:310: warning: comparison is always true due
to limited range of data type

char can be either signed or unsigned, depending on the target system.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cirrusfb: minor fixes
François Romieu [Tue, 29 Jun 2004 12:19:43 +0000 (05:19 -0700)]
[PATCH] cirrusfb: minor fixes

- fix unbalanced invocation of pci_enable_device();

- leaks plugged in cirrusfb_zorro_setup();

- move framebuffer_release() into cirrusfb_{pci/zorro}_unmap() to balance
  cirrusfb_{pci/zorro}_setup();

- make cirrusfb_{pci/zorro}_setup() return adequate error codes when
  something fails;

- cirrusfb_zorro_unmap: iounmap() now take as argument values previously
  returned by ioremap().

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David Eger <eger@havoc.gtf.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh/sh64: MAINTAINERS update.
Paul Mundt [Tue, 29 Jun 2004 12:19:32 +0000 (05:19 -0700)]
[PATCH] sh/sh64: MAINTAINERS update.

This updates MAINTAINERS for sh/sh64 to match up with the 2.4 entries.

I've also removed NIIBE-san as an active sh maintainer, since he hasn't
been involved or submitted any code since 2002/06/26.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kyrofb: Fix modedb usage when built as a module.
Paul Mundt [Tue, 29 Jun 2004 12:19:21 +0000 (05:19 -0700)]
[PATCH] kyrofb: Fix modedb usage when built as a module.

Since James confirmed that this doesn't need to be module specific, we get
rid of the #ifndef MODULE checks for both the modedb and the modedb lookup.

Additionally we also switch from memset_io() to fb_memset().

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh64: Fix syscall table alignment
Paul Mundt [Tue, 29 Jun 2004 12:19:10 +0000 (05:19 -0700)]
[PATCH] sh64: Fix syscall table alignment

If the syscall table is in the text section, the movi that loads its
address into a register will at link time have its immediates resolved as
though it's an SHmedia symbol, i.e.  the LSB will be 1.  This is then
misaligned as a base address for loading the address to jump to.

This could be fixed either by moving the table back to the .data section
(as done here), or by masking off the LSB after loading the table address
into a register.

Signed-off-by: Richard Curnow <richard.curnow@superh.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh64 support
Paul Mundt [Tue, 29 Jun 2004 12:18:58 +0000 (05:18 -0700)]
[PATCH] sh64 support

This patch adds sh64 support.

This is a bit overdue, as this was on the should-fix list, though we
weren't done debugging and finishing off the port until just recently (I
did a port against 2.5.68 but it wasn't in any shape to be merged).

sh64 is already in 2.4 and has been for quite awhile, so this is mostly
just a forward port of that code to 2.6 with appropriate bug fixes, etc.
along the way.  There isn't much in the way of new features that have been
added to the port yet, though I have added rough hugetlb and oprofile
support.

This patch doesn't really touch any common code, with the exception of an
ifdef or two for keyboard support and an ifdef in fb.h to omit sh64 from
the __raw_xxx() wrapping that sh does.

The only other common driver changes were to sh-sci for serial support, but
those bits were already merged with the latest batch of sh-sci updates.

Beyond that, the port is completely isolated.

Signed-off-by: Richard Curnow <richard.curnow@superh.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] hpet fixes
Robert Picco [Tue, 29 Jun 2004 12:18:44 +0000 (05:18 -0700)]
[PATCH] hpet fixes

Some hpet clean up and a fix to the RTC request_irq issue.

Signed-off-by: Bob Picco <Robert.Picco@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: viotape integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:33 +0000 (05:18 -0700)]
[PATCH] ppc64: viotape integration

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: viocd integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:22 +0000 (05:18 -0700)]
[PATCH] ppc64: viocd integration

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: viodasd integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:11 +0000 (05:18 -0700)]
[PATCH] ppc64: viodasd integration

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: iseries_veth integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:00 +0000 (05:18 -0700)]
[PATCH] ppc64: iseries_veth integration

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: vio infrastructure modifications
Stephen Rothwell [Tue, 29 Jun 2004 12:17:49 +0000 (05:17 -0700)]
[PATCH] ppc64: vio infrastructure modifications

The intention here is to have no effect on pSeries except:

1) vio_register_device is renamed to vio_register_device_node to better
   reflect is purpose and to allow me to introduce
   vio_register_device_iseries.

2) I have introduced the name and type fields in struct vio_dev to make
   these two fields independent of subarchitecture.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] PCDP console detection support fixes
Bjorn Helgaas [Tue, 29 Jun 2004 12:17:38 +0000 (05:17 -0700)]
[PATCH] PCDP console detection support fixes

Check for ioremap failure and use correct UPIO_{MEM,PORT} constants.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] CREDITS update
Luiz Capitulino [Tue, 29 Jun 2004 12:17:26 +0000 (05:17 -0700)]
[PATCH] CREDITS update

Luiz has ~40 patches to his name, go he gets a banana.

Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix to microcode driver for the old CPUs.
Tigran Aivazian [Tue, 29 Jun 2004 12:17:15 +0000 (05:17 -0700)]
[PATCH] fix to microcode driver for the old CPUs.

Here is a patch against Linux 2.6.7 which fixes the sigmatch() macro to
work for the relatively old processors as well, which have 'pf == 0'
(processor flags as read from MSR 0x17), For example, the processors
failing without this patch are Pentium II 300 MHz (Klamath) with
family/model/stepping 6/3/4 and 6/3/3.

The patch also contains minor cosmetic changes (to make source code more
uniform).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbcon: fix display artifacts
Antonino Daplas [Tue, 29 Jun 2004 12:17:04 +0000 (05:17 -0700)]
[PATCH] fbcon: fix display artifacts

Fixed display artifacts present in the space reserved for the boot logo.
Use attributes of the background erase character instead of hardcoding the
color to zero.

Signed-off-by: Antonino A. Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] watchdog: indydog.c update
Wim Van Sebroeck [Tue, 29 Jun 2004 12:16:52 +0000 (05:16 -0700)]
[PATCH] watchdog: indydog.c update

<wim@iguana.be> (04/06/27 1.1770)
   [WATCHDOG] indydog.c-patch-20040627

   * Fix: since we use the new module_param's: make sure that
   linux/moduleparam.h stays included
   * in the release code we can just use indydog_stop();

The ChangeSets can also be looked at on:
http://linux-watchdog.bkbits.net:8080/linux-2.6-watchdog

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Provide console_suspend() and console_resume()
Russell King [Tue, 29 Jun 2004 12:16:41 +0000 (05:16 -0700)]
[PATCH] Provide console_suspend() and console_resume()

Add console_stop() and console_start() methods so the serial drivers
can disable console output before suspending a port, and re-enable output
afterwards.

We also add locking to ensure that we synchronise with any in-progress
printk.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Provide console_device()
Russell King [Tue, 29 Jun 2004 12:16:30 +0000 (05:16 -0700)]
[PATCH] Provide console_device()

[This patch series has also been separately sent to the architecture
 maintainers]

Add console_device() to return the console tty driver structure and the
index.  Acquire the console lock while scanning the list of console drivers
to protect us against console driver list manipulations.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Translate Japanese comments in arch/v850
Kalin Rumenov Kozhuharov [Tue, 29 Jun 2004 12:16:19 +0000 (05:16 -0700)]
[PATCH] Translate Japanese comments in arch/v850

Convert the Japanese comments in arch/v850.

I am not exactly 100% sure I translated it correctly since I have no idea
what exactly was that NEC v850 evaluation board, but should be OK (say 95%
sure).

Acked by Miles Bader <miles@lsi.nec.co.jp>

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] binfmt misc fd passing via ELF aux vector
Yoav Zach [Tue, 29 Jun 2004 12:16:08 +0000 (05:16 -0700)]
[PATCH] binfmt misc fd passing via ELF aux vector

The proposed patch uses the aux-vector to pass the fd of the open misc
binary to the interpreter, instead of using argv[1] for that purpose.

Previous patch - open_nonreadable_binaries, offered the option of
binfmt_misc opening the binary on behalf of the interpreter.  In case
binfmt_misc is requested to do that it would pass the file-descriptor of
the open binary to the interpreter as its second argument (argv[1]).  This
method of passing the file descriptor was suspected to be problematic,
since it changes the command line that users expect to see when using tools
such as 'ps' and 'top'.

The proposed patch changes the method of passing the fd of the open binary
to the translator.  Instead of passing it as an argument, binfmt_misc will
request the ELF loader to pass it as a new element in the aux-vector that
it prepares on the stack for ELF interpreter.  With this patch, argv[1]
will hold the full path to the binary regardless of whether it opened it or
not.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix deadlocks when oopsing while mmap_sem is held
Andy Whitcroft [Tue, 29 Jun 2004 12:15:56 +0000 (05:15 -0700)]
[PATCH] ppc64: fix deadlocks when oopsing while mmap_sem is held

If a fault in the kernel leads to an unexpected protection fault whilst in
a code path which holds mmap_sem we will deadlock in do_page_fault() while
trying to classify the fault.  By carefully testing the source of the fault
we can detect and OOPS on the vast majority of these, greatly enhancing
diagnosis of such bugs.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64 .init.setup alignment fix
Andrew Morton [Tue, 29 Jun 2004 12:15:45 +0000 (05:15 -0700)]
[PATCH] x86_64 .init.setup alignment fix

We're now putting 24-byte structures into .init.setup via __setup.  But
x86_64's compiler is emitting a `.align 16' in there, so they end up on
32-byte boundaries and do_early_param()'s pointer arithmetic goes wrong.

Fix that up by forcing the compiler to align these structures to sizeof(long).

Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Tue, 29 Jun 2004 12:06:07 +0000 (05:06 -0700)]
Merge http://lia64.bkbits.net/to-linus-2.5
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
Linus Torvalds [Tue, 29 Jun 2004 12:05:05 +0000 (05:05 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 29 Jun 2004 12:03:55 +0000 (05:03 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] ia64: Quiet corrected errors (CMC/CPE)
Hidetoshi Seto [Tue, 29 Jun 2004 11:17:11 +0000 (04:17 -0700)]
[PATCH] ia64: Quiet corrected errors (CMC/CPE)

Trivial patch to quiet messages about corrected errors.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoia64: Fix UP-build breakage caused by early_console_setup() patch.
David Mosberger [Tue, 29 Jun 2004 10:47:08 +0000 (03:47 -0700)]
ia64: Fix UP-build breakage caused by early_console_setup() patch.

22 years ago[BRIDGE]: Fix message age in bridge STP config packets.
Stephen Hemminger [Tue, 29 Jun 2004 09:14:15 +0000 (02:14 -0700)]
[BRIDGE]: Fix message age in bridge STP config packets.

This is a revised version of Kishore's patch to set message age appropriately
in STP configuration packets.

Signed-off-by: Kishore A K <KishoreAK@myw.ltindia.com>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: fix reloc-out-of-range error on module loading
Tony Luck [Tue, 29 Jun 2004 08:52:46 +0000 (01:52 -0700)]
[PATCH] ia64: fix reloc-out-of-range error on module loading

I'm hitting this problem because the module I want to load was
compiled with -g, so the filesize is absolutely huge.  kernel/module.c
does a vmalloc() to inhale the entire file, and then two calls to
module_alloc() (which calls vmalloc() on ia64) to load the 'init' and
'core' sections. The 'init' is small and slips into a gap early in the
vmalloc playspace, while the 'core' area is allocated after the huge
area that was allocated for the inhaled copy of the whole file.

I made a one coding change to Jean-Marc's version, adding a check to
see whether the init/core sections are close enough together for the
PCREL21B to reach (they almost always are).

I've kept the test that there are no jumps from core to init (though
the message that is printed is almost as unhelpful as the one that you
get when you statically link a module into the kernel that has calls
to the discarded .exit section :-)

This patch stalled out before on the question of whether a PLT was
overkill for a section-to-section branch, and whether it would be
better to use relaxation techniques to extend the range.  Doing that
might be more elegant in some way, but it needs a whole heap of extra
code (to count how many relaxed branches need to be added and
allocated them as needed).  This seems a lot of extra code that is
only ever going to be exercised by maniacs like me with 49MB .ko
files.

I fixed up the comments to be a little more heplful.

Signed-off-by: <tony.luck@intel.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoCset exclude: dtor_core@ameritech.net|ChangeSet|20040629212548|46753
David S. Miller [Tue, 29 Jun 2004 08:16:23 +0000 (01:16 -0700)]
Cset exclude: dtor_core@ameritech.net|ChangeSet|20040629212548|46753

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.6
Greg Kroah-Hartman [Tue, 29 Jun 2004 07:49:04 +0000 (00:49 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/usb-2.6

22 years ago[PATCH] ia64: update early printk for new console driver
Jesse Barnes [Tue, 29 Jun 2004 07:47:36 +0000 (00:47 -0700)]
[PATCH] ia64: update early printk for new console driver

The Altix console driver has been replaced in Andrew's tree by a new
one that uses the serial core API.  Update the early_console_setup
routine to use the new config option so that it's ready when the
driver hits Linus' tree.  This will also fix a build bug since the old
driver hasn't been updated.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PKT_SCHED]: Use get_jiffies_64()
Stephen Hemminger [Tue, 29 Jun 2004 07:45:35 +0000 (00:45 -0700)]
[PKT_SCHED]: Use get_jiffies_64()

The packet scheduler simulates 64 bit jiffies on 32 bit platforms by running
a timer keeping a mark and and offset.  Since there is no locking and this is
racy and doesn't handle jiffie wrap real well.

We can use get_jiffies_64 on 2.6 do get what is needed.
The downside is the overhead of a function call, and a cache miss in
get_jiffies_64.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Eliminate guard from TDIFF_SAFE.
Stephen Hemminger [Tue, 29 Jun 2004 07:40:01 +0000 (00:40 -0700)]
[PKT_SCHED]: Eliminate guard from TDIFF_SAFE.

The last argument in the PSCHED_TDIFF_SAFE is no longer used;
only usage eliminated by previous patch. It gets rid of a bad macro
usage.

Also, can use the standard min_t macro which also eliminates the
macro problem of double evaluation of bound.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Bad TDIFF_SAFE in csz.
Stephen Hemminger [Tue, 29 Jun 2004 07:38:31 +0000 (00:38 -0700)]
[PKT_SCHED]: Bad TDIFF_SAFE in csz.

This code in the csz scheduler, is just plain broken.  The TDIFF_SAFE
effectively expands to:
unsigned long delay = now - q->t_c;
if (delay > 0) {
delay = 0;
goto do_reset;
}
if (delay >> q->delta_log)

So delay is always 0!  I assume that what was originally intended
is the to keep delay bounded to 1<<q->delta_log.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: fix incorrect initialization of ar.k4 for BP
Kenneth W. Chen [Tue, 29 Jun 2004 07:36:05 +0000 (00:36 -0700)]
[PATCH] ia64: fix incorrect initialization of ar.k4 for BP

The patch to move the current pointer for init_task from region 7 to
region 5 inadvertendly caused ar.k4 (CURRENT_STACK) to be initialized
improperly for the bootstrap processor.  Fix this by initializing it
to -1.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agosparse: fix pointer/integer confusion
Linus Torvalds [Tue, 29 Jun 2004 07:35:41 +0000 (00:35 -0700)]
sparse: fix pointer/integer confusion

I don't think we're in K&R any more, Toto.

If you want a NULL pointer, use NULL. Don't use an integer.

Most of the users really didn't seem to know the proper type.

22 years agoUSB: fix bug where removing usb-serial modules or usb serial devices could oops
Greg Kroah-Hartman [Tue, 29 Jun 2004 07:33:28 +0000 (00:33 -0700)]
USB: fix bug where removing usb-serial modules or usb serial devices could oops

This fixes the issue where the Generic driver would bind to all usb-serial
devices, so the disconnect would not properly go to the real driver that
controlled the device.  This was very bad when unloading the module with
the device still connected.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PKT_SCHED]: Packet scheduler exports.
Stephen Hemminger [Tue, 29 Jun 2004 07:27:19 +0000 (00:27 -0700)]
[PKT_SCHED]: Packet scheduler exports.

The packet scheduling code has some ugly define's which were to deal with
configuration possibilities and the old style module exports.  With the current
2.6 method, this is unnecessary.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Compile warning and logic rearrangement in sch_prio enqueue.
Dmitry Torokhov [Tue, 29 Jun 2004 07:25:48 +0000 (00:25 -0700)]
[PKT_SCHED]: Compile warning and logic rearrangement in sch_prio enqueue.

When CONFIG_NET_CLS_ACT is not set 'result' variable in prio_classify is
unused. Also I was looking over the rest of the module and had hard time
understanding the logic in prio_enqueue - I rearranged it a bit for better
readability. Plus there are some formatting changes.

Signed-off-by: Dmitry Torokhov <dtor_core@ameritech.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: Clean up needlessly large stack frames in PAL-call stubs
Kenneth W. Chen [Tue, 29 Jun 2004 07:25:14 +0000 (00:25 -0700)]
[PATCH] ia64: Clean up needlessly large stack frames in PAL-call stubs

The code allocated all 96 stacked registers, for no apparent reason.

Also, fix ia64_pal_call_static() to switch RSE to enforced-lazy, LE
mode before the PAL-call.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>