]> git.neil.brown.name Git - history.git/log
history.git
21 years ago[SPARC64]: Update defconfig.
David S. Miller [Fri, 30 Jul 2004 06:50:04 +0000 (23:50 -0700)]
[SPARC64]: Update defconfig.

21 years agoMerge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
David S. Miller [Fri, 30 Jul 2004 06:17:34 +0000 (23:17 -0700)]
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6

21 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Thu, 29 Jul 2004 16:04:58 +0000 (09:04 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[PATCH] cmap annotations
Alexander Viro [Thu, 29 Jul 2004 15:48:53 +0000 (08:48 -0700)]
[PATCH] cmap annotations

fb_set_cmap() and fb_copy_cmap() split into kernel and userland versions.
fb_cmap, fb_image and fb_cursor split and annotated.
fixed bug in sbuslib.c that used to call "userland" version of fb_set_cmap()
when kernel one was need (RGB data was already copied into kernel space).

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] fb_cursor() fixes
Alexander Viro [Thu, 29 Jul 2004 15:48:40 +0000 (08:48 -0700)]
[PATCH] fb_cursor() fixes

Massive leaks fixed in fb_cursor().

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] console_font_op annotated
Alexander Viro [Thu, 29 Jul 2004 15:48:29 +0000 (08:48 -0700)]
[PATCH] console_font_op annotated

->vc_font switched to console_font (from console_font_op, of all things!)
console_font_op annotated (->data is finally makred __user).

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] con_get_font sanitized
Alexander Viro [Thu, 29 Jul 2004 15:48:17 +0000 (08:48 -0700)]
[PATCH] con_get_font sanitized

->con_font_get() sanitized.  We pass console_font * to method instead of
console_font_op * and do not mess with mixing ->data in these guys.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] fbcon_do_set_font() sanitized
Alexander Viro [Thu, 29 Jul 2004 15:48:06 +0000 (08:48 -0700)]
[PATCH] fbcon_do_set_font() sanitized

fbcon internal cleanup.  Instead of passing console_font_op into
fbcon_do_set_font() we pass width/height directly.  Amusing (but harmless)
bug fixed there:
if (!w > 32) {
bogus code that fortunately never got triggered
}
Fixed by removal of the junk in question (and yes, it's verifiable junk -
it would not do anything even if we replaced the check with intended
!(w > 32)).

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] con_set_font sanitized
Alexander Viro [Thu, 29 Jul 2004 15:47:55 +0000 (08:47 -0700)]
[PATCH] con_set_font sanitized

con_font_set() sanitized.  We are passing console_font and flags into
the method in separate arguments and we are not messing with
console_font_op->data anymore - it's a userland pointer (to be annotated
several patches later in the series, due to another abuse of console_font_op
that needs to be fixed first), while console_font->data is kernel one
and they don't mix anymore.

We also do a sanity check (font width > 0) in the caller instead of
method instances, since we are already checking for width <= 32 and
height <= 32 there; doesn't make sense leaving that one in method
instances.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] con_font_copy sanitized
Alexander Viro [Thu, 29 Jul 2004 15:47:43 +0000 (08:47 -0700)]
[PATCH] con_font_copy sanitized

->con_font_copy() sanitized.  We extract the number of console to copy the
font from in the caller (it's taken from the field of console_font_op that
is normally used for font height - messy even for an ioctl, but that animal
used to be passed all the way down into console drivers).

With decoding done in con_font_copy(), we simply pass source console number
into the method.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] con_font_default sanitized
Alexander Viro [Thu, 29 Jul 2004 15:47:32 +0000 (08:47 -0700)]
[PATCH] con_font_default sanitized

->con_font_default() sanitized.  We copy font name (if any) from userland
in the caller and pass it explicitly.  We are also beginning to get rid
of console_font_op in method arguments.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] con_font_op split
Alexander Viro [Thu, 29 Jul 2004 15:47:21 +0000 (08:47 -0700)]
[PATCH] con_font_op split

Preparations for cleanups: con_font_op() is turned into a switch calling
con_font_{get,set,default,copy} depending on the operation required;
method ->con_font_op() also split, with NULL resulting in -ENOSYS on
operation in question.

Code that used to be in con_font_op() got slightly cleaned up after move
into new helpers (we are beginning to untangle the mess; there will be
more cleanups in the next patches).

Methods are currently using exact same arguments as old ->con_font_op().
That will change in subsequent patches, method by method (right now there's
a hell of a scary field reuse between them, making impossible to do any
static checks and practically begging for bugs).

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] ppc64: fix memcpy_to/from_io
Benjamin Herrenschmidt [Thu, 29 Jul 2004 15:44:24 +0000 (08:44 -0700)]
[PATCH] ppc64: fix memcpy_to/from_io

The ppc64 implementation of memcpy_to/from_io was bogus (used memcpy
which uses cache hints and thus is broken on non cacheable IO space).

This re-implements them with some simple/gross C code doing 32 bits
accesses when aligned and bytes accesses when not.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] ppc64: hash table races fixes
Benjamin Herrenschmidt [Thu, 29 Jul 2004 15:44:13 +0000 (08:44 -0700)]
[PATCH] ppc64: hash table races fixes

This fixes some possible rare issues with the hash code beeing called
with interrupts enabled from update_mmu_cache, and fixes some races in
the iSeries low level htab code by adding an array of spinlocks

This is actually an old patch already present in SLES kernel and that
got "missed" somewhat in the main tree, adapted to recent changes.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[DMA]: Fix example code in DMA-mapping.txt
David S. Miller [Thu, 29 Jul 2004 12:36:08 +0000 (05:36 -0700)]
[DMA]: Fix example code in DMA-mapping.txt

Spotted by Jack Spaar <jspaar@myrealbox.com>

Signed-off-by: David S. Miller <davem@redhat.com>
21 years ago[CIFS] fix smb return code
Steve French [Thu, 29 Jul 2004 11:30:37 +0000 (06:30 -0500)]
[CIFS] fix smb return code

Signed-off-by: Steve French (sfrench@us.ibm.com)
21 years ago[SPARC]: sparc64 openpromio.h needs compiler.h, sync sparc32
David S. Miller [Thu, 29 Jul 2004 10:32:10 +0000 (03:32 -0700)]
[SPARC]: sparc64 openpromio.h needs compiler.h, sync sparc32

21 years agoMerge bk://ppc.bkbits.net/for-linus-ppc
Linus Torvalds [Thu, 29 Jul 2004 06:37:27 +0000 (23:37 -0700)]
Merge bk://ppc.bkbits.net/for-linus-ppc
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Thu, 29 Jul 2004 06:32:31 +0000 (23:32 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Thu, 29 Jul 2004 06:31:34 +0000 (23:31 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Thu, 29 Jul 2004 12:54:02 +0000 (05:54 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

21 years agoMerge bk://dsaxena.bkbits.net/linux-2.6-for-rmk
Linus Torvalds [Thu, 29 Jul 2004 06:30:41 +0000 (23:30 -0700)]
Merge bk://dsaxena.bkbits.net/linux-2.6-for-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge http://lia64.bkbits.net/to-base-2.6
Linus Torvalds [Thu, 29 Jul 2004 06:26:25 +0000 (23:26 -0700)]
Merge http://lia64.bkbits.net/to-base-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge plexity.net:/home/dsaxena/src/linux-2.5-bk
Deepak Saxena [Thu, 29 Jul 2004 04:22:53 +0000 (21:22 -0700)]
Merge plexity.net:/home/dsaxena/src/linux-2.5-bk
into plexity.net:/home/dsaxena/src/linux-2.6-for-rmk

21 years agoMerge bk://linux.bkbits.net/linux-2.5
Deepak Saxena [Thu, 29 Jul 2004 04:15:05 +0000 (21:15 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into plexity.net:/home/dsaxena/src/linux-2.5-bk

21 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Thu, 29 Jul 2004 03:24:07 +0000 (20:24 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

21 years ago[PPC32] Merge MPC52xx changes with recent CPM changes.
Tom Rini [Thu, 29 Jul 2004 01:17:53 +0000 (18:17 -0700)]
[PPC32] Merge MPC52xx changes with recent CPM changes.

21 years ago[serial/ppc] Add support for MPC52xx PSCs.
Sylvain Munaut [Thu, 29 Jul 2004 17:12:57 +0000 (19:12 +0200)]
[serial/ppc] Add support for MPC52xx PSCs.

Can be used as serial port and console. Compliant with the OCP driver model.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
21 years ago[ppc] Add basic support for the Freescale MPC52xx embedded CPU and the LITE5200 platform
Sylvain Munaut [Thu, 29 Jul 2004 17:09:03 +0000 (19:09 +0200)]
[ppc] Add basic support for the Freescale MPC52xx embedded CPU and the LITE5200 platform

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
21 years ago[CIFS] Resize cifs request buffer mempools as tcp sessions are added to avoid potenti...
Steve French [Wed, 28 Jul 2004 19:16:47 +0000 (14:16 -0500)]
[CIFS] Resize cifs request buffer mempools as tcp sessions are added to avoid potential deadlocks.

Signed-off-by: Steve French (sfrench@us.ibm.com)
21 years ago# Signed-off-by: Gordon Jin <gordon.jin@intel.com>
Tony Luck [Wed, 28 Jul 2004 17:57:12 +0000 (17:57 +0000)]
#   Signed-off-by: Gordon Jin <gordon.jin@intel.com>
#   Signed-off-by: Arun Sharma <arun.sharma@intel.com>
#   Signed-off-by: Tony Luck <tony.luck@intel.com>

21 years ago[PATCH] swsusp: documentation update
Pavel Machek [Wed, 28 Jul 2004 16:14:37 +0000 (09:14 -0700)]
[PATCH] swsusp: documentation update

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] remove dead code from copy_process()
Luiz Capitulino [Wed, 28 Jul 2004 16:14:26 +0000 (09:14 -0700)]
[PATCH] remove dead code from copy_process()

Don't assign to `retval' twice in a row.

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>
21 years ago[PATCH] Fix up HP copyright & license text
Bjorn Helgaas [Wed, 28 Jul 2004 16:14:15 +0000 (09:14 -0700)]
[PATCH] Fix up HP copyright & license text

Fix up HP copyrights and add licensing terms (GPL v2) for hp-agp.c and
pcdp.

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>
21 years ago[PATCH] Watchdog driver for Intel IXP2000 Network Processor
Deepak Saxena [Wed, 28 Jul 2004 16:14:03 +0000 (09:14 -0700)]
[PATCH] Watchdog driver for Intel IXP2000 Network Processor

Following patch adds support for the watchdog driver embedded in Intel's
IXP2000 family of network processors.  The architecture-specific bits of
IXP2000 support will be merged upstream via the ARM tree once all the
various drivers have been merged.

Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] comment "ptrace_list" and "children" members
David Mosberger [Wed, 28 Jul 2004 16:13:51 +0000 (09:13 -0700)]
[PATCH] comment "ptrace_list" and "children" members

Document the purpose of the "ptrace_list/ptrace_children" and
"children/sibling" lists.

Signed-off-by: <davidm@hpl.hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] mark swim3 floppy controller as removable device
Olaf Hering [Wed, 28 Jul 2004 16:13:40 +0000 (09:13 -0700)]
[PATCH] mark swim3 floppy controller as removable device

Mark the mac floppy controller driver as removable media.  This prevents an
entry in /proc/partitions.  Several tools will not try to access the floppy
anymore with this change.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] convert ipmi_watchdog to use module option nowayout
Arkadiusz Miskiewicz [Wed, 28 Jul 2004 16:13:29 +0000 (09:13 -0700)]
[PATCH] convert ipmi_watchdog to use module option nowayout

Convert ipmi_watchdog to also use module option `nowayout' as is done in
other watchdog drivers.

From: Corey Minyard <cminyard@mvista.com>

   The patch is good (same style as other watchdogs), but needs to have
   some documentation updated.  I've tacked that on.

Signed-off-by: Arkadiusz Miskiewicz <arekm@pld-linux.org>
Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] writepages drops bh on not uptodate page
Andrea Arcangeli [Wed, 28 Jul 2004 16:13:18 +0000 (09:13 -0700)]
[PATCH] writepages drops bh on not uptodate page

I think I understood why some ext2 fs corruption still happens even after
the last i_size fix.

what happened I believe is that the writepages layer got a not a fully
uptodate page (in turn with bh mapped on top of it), and then right before
unlocking the page and entering the writeback mode, it freed all the bh.
Without bh a not uptodate page will trigger a full readpage from disk, that
overwrites the pagecache before the multi-bio gets submitted, generating fs
corruption.

I believe the below patch should fix it (untested) against kernel CVS.

The testcases developed by Kurt showed the pagecache being overwritten with
on-disk data at block offsets, and Chris as well was wondering about races
between wait_on_page_writeback and readpage.  the below fix just explains
everything we've seen since not-fully-uptodate pages must have always bh on
them and the below patch enforces just that invariant, and it should fix
our pagecache-overwritten-by-disk-data problem.

Signed-off-by: Andrea Arcangeli <andrea@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] remove boot98
Brian Gerst [Wed, 28 Jul 2004 16:13:06 +0000 (09:13 -0700)]
[PATCH] remove boot98

Remove the orphaned PC9800 boot code.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Subject: PATCH: fix bogus ioctl return in mtrr
Alan Cox [Wed, 28 Jul 2004 16:12:55 +0000 (09:12 -0700)]
[PATCH] Subject: PATCH: fix bogus ioctl return in mtrr

This is fairly self explanatory - ENOIOCTLCMD is an internal code outside
of the -1 to -511 range.  The correct return for an unknown ioctl is
-ENOTTY although some Linux devices return the incorrect -EINVAL result.

Patch-By: Alan Cox <alan@redhat.com>
OSDL Developer Certificate of Origin 1.0 included herein by reference

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] trivial doc patch for partitions
Martin Pool [Wed, 28 Jul 2004 16:12:45 +0000 (09:12 -0700)]
[PATCH] trivial doc patch for partitions

It's slightly hard to see how these variables are used; this patch adds a
short description.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] lost error code in rescan_partitions
Martin Pool [Wed, 28 Jul 2004 16:12:34 +0000 (09:12 -0700)]
[PATCH] lost error code in rescan_partitions

This fixes a path where an error from reloading the partition table could be
lost.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] s390: network driver changes
Martin Schwidefsky [Wed, 28 Jul 2004 16:12:22 +0000 (09:12 -0700)]
[PATCH] s390: network driver changes

From: Ursula Braun-Krahl <braunu@de.ibm.com>
From: Thomas Spatzier <tspat@de.ibm.com>
From: Peter Tiedemann <ptiedem@de.ibm.com>

network driver changes.
 - iucv: add missing symbolic links between /sys/bus/iucv/drivers/netiucv
   and /sys/class/net.
 - iucv: make use of the debug feature.
 - iucv: 0 vs. NULL cleanup, avoid build warnings.
 - iucv: remove unnecessary -ENODEV check after call to iucv_declare_buffer.
 - ctc: adjust debug feature log levels.
 - lcs: replace broken schedule_timeout call with msleep.
 - qeth: add missing link type.
 - qeth: treat add_hhlen attribute as decimal value.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] s390: zfcp host adapter.
Martin Schwidefsky [Wed, 28 Jul 2004 16:12:10 +0000 (09:12 -0700)]
[PATCH] s390: zfcp host adapter.

From: Heiko Carstens <heiko.carstens@de.ibm.com>
From: Maxim Shchetynin <maxim@de.ibm.com>

zfcp host adapter changes:
 - Get rid of ZFCP_WAIT_EVENT_TIMEOUT macro.
 - Correct an error log mesage.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] s390: core changes
Martin Schwidefsky [Wed, 28 Jul 2004 16:11:59 +0000 (09:11 -0700)]
[PATCH] s390: core changes

s390 core changes:
 - Rework system call entry cleanup code to fix a potential asynchronous
   interrupt stack overflow if the user stack pointer happens to be in
   the same range as the asynchronous stack.
 - Replace broken schedule_timeout call with msleep.
 - Regenerate default configuration

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Recommend 'noapic' when timer via IOAPIC fails
Zwane Mwaikambo [Wed, 28 Jul 2004 16:11:47 +0000 (09:11 -0700)]
[PATCH] Recommend 'noapic' when timer via IOAPIC fails

We might as well recommend the user boot with the noapic kernel parameter
instead of filling poor Ingo's mailbox.

Signed-off-by: Zwane Mwaikambo <zwane@fsmlabs.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] ncpfs: setattr return value fix
Andrew Morton [Wed, 28 Jul 2004 16:11:37 +0000 (09:11 -0700)]
[PATCH] ncpfs: setattr return value fix

Arjan's new warning found a bug!

fs/ncpfs/inode.c: In function `ncp_notify_change':
fs/ncpfs/inode.c:960: warning: ignoring return value of `inode_setattr', declared with attribute warn_unused_result

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] ext2_readdir() return value fix
Jan Blunck [Wed, 28 Jul 2004 16:11:25 +0000 (09:11 -0700)]
[PATCH] ext2_readdir() return value fix

ext2_readdir() is ignoring the set error return values and always returns
0.

Signed-off-by: Jan Blunck <j.blunck@tu-harburg.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] ppc32: snd-powermac requires i2c
Olaf Hering [Wed, 28 Jul 2004 16:11:14 +0000 (09:11 -0700)]
[PATCH] ppc32: snd-powermac requires i2c

The alsa driver for powermacs requires i2c support.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Automatically disable laptop mode when battery almost runs out.
Bart Samwel [Wed, 28 Jul 2004 16:11:03 +0000 (09:11 -0700)]
[PATCH] Automatically disable laptop mode when battery almost runs out.

From: Jan Topinski <simcha@chatka.org>

Add support to automatically disable laptop mode when the battery almost
runs out.  This prevents data loss when the battery actually runs out.

Signed-off-by: Bart Samwel <bart@samwel.tk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Add documentation about /proc/sys/vm/laptop_mode to various docs.
Bart Samwel [Wed, 28 Jul 2004 16:10:53 +0000 (09:10 -0700)]
[PATCH] Add documentation about /proc/sys/vm/laptop_mode to various docs.

From: Bart Samwel <bart@samwel.tk>

A bunch of small laptop mode updates:

* Mention the laptop_mode and block_dump sysctls in the relevant docs,
  referring to the laptop-mode.txt. Improve description of what the
  laptop_mode knob means (i.e. seconds between last I/O and automatic
  sync).

* Document the most relevant config file options.

* Change the installation instructions in the laptop mode doc to describe
  the ACPI-bound version first, because this is the easiest. Explain
  the non-ACPI version afterwards. Added a reference to my "packaged
  version" of the scripts.

* Move the setting of hdparm and cpu frequency out of the ACPI script
  and into the core laptop mode script. Add config option DO_HD to
  enable hdparm. Add config setting HD to set device to do hdparm on.
  Rename Dax's CPU_MANAGE to DO_CPU, with 0/1 instead of yes/no, to
  improve consistency.

* Fix a problem where the root filesystem wouln't be remounted when
  /etc/mtab listed its type as "unknown". Deduce the type of "unknown"
  filesystems from /etc/fstab.

This depends on the patch that adds config files, which was submitted
to Linus by Dax Kelson on July 10.

Signed-off-by: Bart Samwel <bart@samwel.tk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Config file for laptop mode.
Bart Samwel [Wed, 28 Jul 2004 16:10:42 +0000 (09:10 -0700)]
[PATCH] Config file for laptop mode.

From: Dax Kelson <dax@gurulabs.com>

Add support for a external configuration file for /sbin/laptop_mode, and
/etc/acpi/actions/battery.sh.  Convert battery.sh to use CPUFreq (off by
default) instead of CPU throttling (that was off by default).

Cleanup some formating for 80 columns.

All changes were written by me on a plane flight from Philadelphia to Salt
Lake City on July 9th.  :)

(Note from Bart Samwel: was submitted to Linus earlier, this patch is
unchanged from that.  I needed to submit this into -mm for now because my
other changes are dependent on Dax's changes.)

Signed-off-by: Bart Samwel <bart@samwel.tk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] front buttons wouldn't mute ESS Maestro
Samuel Thibault [Wed, 28 Jul 2004 16:10:30 +0000 (09:10 -0700)]
[PATCH] front buttons wouldn't mute ESS Maestro

Here is a small fix to enable muting ESS Maestro sound card thanks to the
up/down buttons: when has reached the driver's minimum (!  this is
something like -dB value), just mute.  (It was working in OSS driver, but
not in ALSA)

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] hlist_for_each_safe cleanup
Stephen Hemminger [Wed, 28 Jul 2004 16:10:19 +0000 (09:10 -0700)]
[PATCH] hlist_for_each_safe cleanup

Make code for hlist_for_each_safe use better code (same as
hlist_for_each_entry_safe).  Get rid of comment about prefetch, because
that was fixed a while ago.  Only current use of this is in the bridge
code, that I maintain.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Export all functions in lib/string.c
Roland Dreier [Wed, 28 Jul 2004 16:10:10 +0000 (09:10 -0700)]
[PATCH] Export all functions in lib/string.c

Quite a few functions in lib/string.c are not exported.  I ran into this
trying to use strnchr() in a module.

This patch
 - exports every function defined in lib/string.c
 - adds some missing __HAVE_ARCH_xxx defines for i386
 - gets rid of the exports of functions from lib/string.c in arch/s390
   (BTW, why is s390 exporting things NOVERS?)

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] remove faulty __init's from drivers/video/fbmem.c
Domen Puncer [Wed, 28 Jul 2004 16:09:59 +0000 (09:09 -0700)]
[PATCH] remove faulty __init's from drivers/video/fbmem.c

From: Geert Uytterhoeven <geert@linux-m68k.org>

These four are called from fb_show_logo, which is exported symbol, called
by fbcon_switch.

From: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] page_cache_readahead unused variable
Shane Shrybman [Wed, 28 Jul 2004 16:09:47 +0000 (09:09 -0700)]
[PATCH] page_cache_readahead unused variable

Removal of unused variable in mm/readahead.c.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] cirrusfb: update for amiga (zorro)
David Eger [Wed, 28 Jul 2004 16:09:36 +0000 (09:09 -0700)]
[PATCH] cirrusfb: update for amiga (zorro)

Cirrusfb updates:
  - Cirrusfb depends on Zorro or PCI
  - Revive Zorro support, using new Zorro driver framework
  - Merge PCI and Zorro code where possible
  - Use C99 initializers
  - Kill superfluous whitespace
  - #undef I/O ops before redefining them on Amiga

From: Geert Uytterhoeven <geert@linux-m68k.org>
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>
21 years ago[PATCH] Dallas 1-wire delay.h
Geert Uytterhoeven [Wed, 28 Jul 2004 16:09:24 +0000 (09:09 -0700)]
[PATCH] Dallas 1-wire delay.h

Dallas 1-wire: never include <asm/delay.h> directly

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI: Matrox 1-wire
Geert Uytterhoeven [Wed, 28 Jul 2004 16:09:13 +0000 (09:09 -0700)]
[PATCH] depends on PCI: Matrox 1-wire

Matrox 1-wire unconditionally depends on PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI: Toshiba and VIA FIR
Geert Uytterhoeven [Wed, 28 Jul 2004 16:09:02 +0000 (09:09 -0700)]
[PATCH] depends on PCI: Toshiba and VIA FIR

Toshiba and VIA FIR unconditionally depend on PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI DMA API: Cisco/Aironet 34X/35X/4500/4800
Geert Uytterhoeven [Wed, 28 Jul 2004 16:08:50 +0000 (09:08 -0700)]
[PATCH] depends on PCI DMA API: Cisco/Aironet 34X/35X/4500/4800

Cisco/Aironet 34X/35X/4500/4800 unconditionally depends on the PCI DMA API, so
mark it broken if !PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI: Technisat Skystar2 PCI
Geert Uytterhoeven [Wed, 28 Jul 2004 16:08:39 +0000 (09:08 -0700)]
[PATCH] depends on PCI: Technisat Skystar2 PCI

Technisat Skystar2 PCI unconditionally depends on PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI: Guillemot MAXI Radio FM 2000
Geert Uytterhoeven [Wed, 28 Jul 2004 16:08:28 +0000 (09:08 -0700)]
[PATCH] depends on PCI: Guillemot MAXI Radio FM 2000

Guillemot MAXI Radio FM 2000 unconditionally depends on PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] !PCI warnings: Hisax ISDN
Geert Uytterhoeven [Wed, 28 Jul 2004 16:08:16 +0000 (09:08 -0700)]
[PATCH] !PCI warnings: Hisax ISDN

Kill warnings in Hisax ISDN drivers when !PCI.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI: Fritz!PCI/PCIv2/PnP and HYSDN
Geert Uytterhoeven [Wed, 28 Jul 2004 16:08:04 +0000 (09:08 -0700)]
[PATCH] depends on PCI: Fritz!PCI/PCIv2/PnP and HYSDN

Fritz!PCI/PCIv2/PnP and HYSDN unconditionally depend on PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI DMA API: IEEE1394 core and SBP-2
Geert Uytterhoeven [Wed, 28 Jul 2004 16:07:53 +0000 (09:07 -0700)]
[PATCH] depends on PCI DMA API: IEEE1394 core and SBP-2

IEEE1394 core and SBP-2 unconditionally depend on the PCI DMA API, so mark
them broken if !PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI: VIA686A i2c
Geert Uytterhoeven [Wed, 28 Jul 2004 16:07:42 +0000 (09:07 -0700)]
[PATCH] depends on PCI: VIA686A i2c

VIA686A i2c unconditionally depends on PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] !PCI warnings: Specialix serial
Geert Uytterhoeven [Wed, 28 Jul 2004 16:07:30 +0000 (09:07 -0700)]
[PATCH] !PCI warnings: Specialix serial

Kill warnings in Specialix serial driver when !PCI.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] !PCI warnings: Moxa serial
Geert Uytterhoeven [Wed, 28 Jul 2004 16:07:19 +0000 (09:07 -0700)]
[PATCH] !PCI warnings: Moxa serial

Kill warnings in MOXA Intellio and Smartio multiport serial drivers when !PCI.
Also kill warnings about unused variables in the non-modular case.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] depends on PCI: Multi-Tech, SyncLink, Applicom serial
Geert Uytterhoeven [Wed, 28 Jul 2004 16:07:08 +0000 (09:07 -0700)]
[PATCH] depends on PCI: Multi-Tech, SyncLink, Applicom serial

Multi-Tech, Microgate SyncLink, and Applicom serial unconditionally depend on
PCI

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] M68k Maintainership
Geert Uytterhoeven [Wed, 28 Jul 2004 16:06:57 +0000 (09:06 -0700)]
[PATCH] M68k Maintainership

M68k maintainership update:
  - Transfer maintainership to Roman and me (ack'ed by Jes and Roman)
  - Update main website URL
  - Add Linux/m68k CVS repository website

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] M68k pgalloc fixup
Geert Uytterhoeven [Wed, 28 Jul 2004 16:06:45 +0000 (09:06 -0700)]
[PATCH] M68k pgalloc fixup

M68k: Fix build after <asm/pgalloc.h> surgery in 2.6.8-rc1:
  - Add missing include on machines with a standard m68k MMU
  - Convert __pte_free_tlb() to a macro (like it is on most other archs) on
    Sun-3, to avoid include hell

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] M68k checksum include
Geert Uytterhoeven [Wed, 28 Jul 2004 16:06:34 +0000 (09:06 -0700)]
[PATCH] M68k checksum include

M68k: Add missing include, showing up due to include reshuffling in 2.6.8-rc1

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] M68k bitops
Geert Uytterhoeven [Wed, 28 Jul 2004 16:06:23 +0000 (09:06 -0700)]
[PATCH] M68k bitops

M68k: Add `volatile' to some bitops parameters, as this is required by the
cpumask code in 2.6.8-rc1.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] dmasound paths
Geert Uytterhoeven [Wed, 28 Jul 2004 16:06:11 +0000 (09:06 -0700)]
[PATCH] dmasound paths

Dmasound was moved to sound/oss/ a while ago

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] m68k hardirq.h
Geert Uytterhoeven [Wed, 28 Jul 2004 16:06:00 +0000 (09:06 -0700)]
[PATCH] m68k hardirq.h

M68k: Add missing #include <linux/config.h>

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] amifb sparse &=
Geert Uytterhoeven [Wed, 28 Jul 2004 16:05:49 +0000 (09:05 -0700)]
[PATCH] amifb sparse &=

Amiga Frame buffer: Use `&' instead of `&=' (found by sparse, present since at
least 2.0.x)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] dnfb sparse struct init
Geert Uytterhoeven [Wed, 28 Jul 2004 16:05:37 +0000 (09:05 -0700)]
[PATCH] dnfb sparse struct init

Apollo Frame buffer: Fix C99 struct initializers (found by sparse)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] m68k sparse floating point
Geert Uytterhoeven [Wed, 28 Jul 2004 16:05:26 +0000 (09:05 -0700)]
[PATCH] m68k sparse floating point

M68k: Replace floating point by integer constants (found by sparse)
Affected drivers:
  - Amiga frame buffer
  - ATI Mach64 frame buffer

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] dsp56k sparse const
Geert Uytterhoeven [Wed, 28 Jul 2004 16:05:15 +0000 (09:05 -0700)]
[PATCH] dsp56k sparse const

Atari dsp56k: Add missing `const' keywords (found by sparse)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] m68k sparse inline
Geert Uytterhoeven [Wed, 28 Jul 2004 16:05:04 +0000 (09:05 -0700)]
[PATCH] m68k sparse inline

M68k: Define inline functions before use (found by sparse)
Affected drivers:
  - Atari floppy
  - Amiga A2232 serial
  - Amiga Fastlane SCSI
  - Mac/PowerMac Valkyrie frame buffer

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] m68k sparse extern
Geert Uytterhoeven [Wed, 28 Jul 2004 16:04:52 +0000 (09:04 -0700)]
[PATCH] m68k sparse extern

M68k: Remove `extern' at function definition (found by sparse)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] m68k sparse void return
Geert Uytterhoeven [Wed, 28 Jul 2004 16:04:41 +0000 (09:04 -0700)]
[PATCH] m68k sparse void return

M68k: Don't return anything in functions returning void (found by sparse)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] m68k sparse #if vs. #ifdef
Geert Uytterhoeven [Wed, 28 Jul 2004 16:04:30 +0000 (09:04 -0700)]
[PATCH] m68k sparse #if vs. #ifdef

M68k: Use #ifdef instead of #if (found by sparse)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] m68k sparse missing void
Geert Uytterhoeven [Wed, 28 Jul 2004 16:04:18 +0000 (09:04 -0700)]
[PATCH] m68k sparse missing void

M68k: Add missing `void' parameters (found by sparse)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] M68k ifpsp060
Geert Uytterhoeven [Wed, 28 Jul 2004 16:04:07 +0000 (09:04 -0700)]
[PATCH] M68k ifpsp060

68060 Integer Support Package: Fix _060_real_lock_page(): test %d0 before
actually using it (from Roman Zippel)

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] M68k 68060 errata I14
Geert Uytterhoeven [Wed, 28 Jul 2004 16:03:56 +0000 (09:03 -0700)]
[PATCH] M68k 68060 errata I14

M68k: gcc lately manages to generate the code sequence described in the 060
errata I14, so use the described workaround (from Roman Zippel)

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] MAINTAINERS: update mailing list for osst
Willem Riede [Wed, 28 Jul 2004 16:03:45 +0000 (09:03 -0700)]
[PATCH] MAINTAINERS: update mailing list for osst

This list has been on sourceforge for a while now, please apply this patch
to make MAINTAINERS reflect that.

Signed-off-by: Willem Riede <osst@riede.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] fix readahead breakage for sequential after random reads
Miklos Szeredi [Wed, 28 Jul 2004 16:03:33 +0000 (09:03 -0700)]
[PATCH] fix readahead breakage for sequential after random reads

Current readahead logic is broken when a random read pattern is followed by
a long sequential read.  The cause is that on a window miss ra->next_size
is set to ra->average, but ra->average is only updated at the end of a
sequence, so window size will remain 1 until the end of the sequential
read.

This patch fixes this by taking the current sequence length into account
(code taken from towards end of page_cache_readahead()), and also setting
ra->average to a decent value in handle_ra_miss() when sequential access is
detected.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] remove scripts/mkconfigs
Brian Gerst [Wed, 28 Jul 2004 16:03:22 +0000 (09:03 -0700)]
[PATCH] remove scripts/mkconfigs

This script is no longer used after the patch to consolidate the stored
configs.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] ipmi_msghandler module load failure fix
Khalid Aziz [Wed, 28 Jul 2004 16:03:11 +0000 (09:03 -0700)]
[PATCH] ipmi_msghandler module load failure fix

On a 2.6.7 kernel, when I try to modprobe ipmi_msghandler, it fails to load
with following message:

FATAL: Error inserting ipmi_msghandler (/lib/modules/2.6.7/kernel/drivers/char/ipmi/ipmi_msghandler.ko): Invalid module format

And there is an error message in dmesg:

ipmi_msghandler: init symbol 0xa000000200058080 used in module code at a000000200031b32

What I have been able to determine is that ipmi_msghandler.c defines
ipmi_init_msghandler() as the module_init() routine and then it also calls
ipmi_init_msghandler() diretcly from couple of other places.  This does not
seem to be okay in 2.6.7 kernel.  I was able to fix this by defining a new
module_init routine which in turn calls ipmi_init_msghandler().  I also
removed __init from ipmi_init_msghandler() since it gets called from
ipmi_open() on an open of the ipmi device file.  So I would think we want
to keep ipmi_init_msghandler() around even after initialization.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] fix for buffer limit for long in sysctl.c
Stéphane Eranian [Wed, 28 Jul 2004 16:03:00 +0000 (09:03 -0700)]
[PATCH] fix for buffer limit for long in sysctl.c

Fix a bug in do_proc_doulongvec_minmax() where the the string buffer was
too short to parse a 64-bit number expressed in decimal.  That was causing
problems with entries in /proc/sys using long and allowing large number
(such as -1)

Signed-off-by: Stephane Eranian <eranian@hpl.hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] Remove dead comment in mm/filemap.c
Himanshu Raj [Wed, 28 Jul 2004 16:02:48 +0000 (09:02 -0700)]
[PATCH] Remove dead comment in mm/filemap.c

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] sign fix in swapfile.c
Mika Kukkonen [Wed, 28 Jul 2004 16:02:37 +0000 (09:02 -0700)]
[PATCH] sign fix in swapfile.c

  CC      mm/swapfile.o
mm/swapfile.c: In function `scan_swap_map':
mm/swapfile.c:114: warning: comparison between signed and unsigned

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] radeonfb x86_64 fix
Pavel Machek [Wed, 28 Jul 2004 16:02:27 +0000 (09:02 -0700)]
[PATCH] radeonfb x86_64 fix

Fix radeonfb and aty128fb on x86_64 by using the correct ifdef.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] v850: Define find_first_bit
Miles Bader [Wed, 28 Jul 2004 16:02:16 +0000 (09:02 -0700)]
[PATCH] v850: Define find_first_bit

Signed-off-by: Miles Bader <miles@gnu.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] fdomain_cs needs ISA
Pawel Sikora [Wed, 28 Jul 2004 16:02:05 +0000 (09:02 -0700)]
[PATCH] fdomain_cs needs ISA

drivers/scsi/pcmcia/fdomain_cs.ko needs unknown symbol isa_memcpy_fromio
drivers/scsi/pcmcia/fdomain_cs.ko needs unknown symbol isa_readb

iirc the isa bus isn't available on ppc.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
21 years ago[PATCH] hugetlbfs vm_pgoff bugs
Oleg Nesterov [Wed, 28 Jul 2004 16:01:53 +0000 (09:01 -0700)]
[PATCH] hugetlbfs vm_pgoff bugs

1. hugetlbfs_file_mmap() must check that vm_pgoff is hugepage aligned.

2. hugetlb_vmtruncate_list() confuses << with >> while converting
   vm_pgoff to huge page offset, and zaps wrong area.

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>