]> git.neil.brown.name Git - history.git/log
history.git
21 years ago[PATCH] asm-arm26/hdreg.h: use unsigned long for ide_ioreg_t
Bartlomiej Zolnierkiewicz [Tue, 13 Apr 2004 11:28:41 +0000 (04:28 -0700)]
[PATCH] asm-arm26/hdreg.h: use unsigned long for ide_ioreg_t

21 years ago[PATCH] zero 'hw_regs_t hw' allocated from stack in ide.c and ide-cs.c
Bartlomiej Zolnierkiewicz [Tue, 13 Apr 2004 11:28:29 +0000 (04:28 -0700)]
[PATCH] zero 'hw_regs_t hw' allocated from stack in ide.c and ide-cs.c

21 years ago[PATCH] hpt366.c: fix 'cat /proc/ide/hpt366' crash
Bartlomiej Zolnierkiewicz [Tue, 13 Apr 2004 11:28:16 +0000 (04:28 -0700)]
[PATCH] hpt366.c: fix 'cat /proc/ide/hpt366' crash

Disable code doing outb() without any locking in /proc handler.
Otherwise 'cat /proc/ide/hpt366' crashes if done during I/O.

Noticed by John Stoffel <stoffel@lucent.com>.

21 years ago[PATCH] ide-disk.c: workaround for bogus LBA48 drives
Bartlomiej Zolnierkiewicz [Tue, 13 Apr 2004 11:28:03 +0000 (04:28 -0700)]
[PATCH] ide-disk.c: workaround for bogus LBA48 drives

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

Apparently some IDE drives (e.g. a pile of 80 GB ST380020ACE drives I have
access to) advertise to support LBA48, but don't, causing kernels that support
LBA48 (i.e. anything newer than 2.4.18, including 2.4.25 and 2.6.4) to fail on
them.  Older kernels (including 2.2.20 on the Debian woody CDs) work fine.

Check for id->lba_capacity_2 being non-zero in idedisk_supports_lba48().

21 years ago[netdrvr r8169] temporary build fix, until DMA_xxBIT_MASK is upstream
Jeff Garzik [Tue, 13 Apr 2004 12:53:32 +0000 (08:53 -0400)]
[netdrvr r8169] temporary build fix, until DMA_xxBIT_MASK is upstream

21 years agoDelete sis190 net driver.
Jeff Garzik [Tue, 13 Apr 2004 11:10:19 +0000 (07:10 -0400)]
Delete sis190 net driver.

The driver was copied from the very-buggy r8169 (pre-Francois),
and is for hardware that isn't even out of the lab yet.

21 years agoMerge redhat.com:/spare/repo/netdev-2.6/tulip
Jeff Garzik [Tue, 13 Apr 2004 11:03:03 +0000 (07:03 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/tulip
into redhat.com:/spare/repo/net-drivers-2.6

21 years agoMerge redhat.com:/spare/repo/netdev-2.6/s2io
Jeff Garzik [Tue, 13 Apr 2004 11:01:53 +0000 (07:01 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/s2io
into redhat.com:/spare/repo/net-drivers-2.6

21 years agoMerge redhat.com:/spare/repo/netdev-2.6/r8169
Jeff Garzik [Tue, 13 Apr 2004 11:00:08 +0000 (07:00 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/r8169
into redhat.com:/spare/repo/net-drivers-2.6

21 years agoMerge redhat.com:/spare/repo/netdev-2.6/pcnet32
Jeff Garzik [Tue, 13 Apr 2004 10:59:03 +0000 (06:59 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/pcnet32
into redhat.com:/spare/repo/net-drivers-2.6

21 years agoMerge redhat.com:/spare/repo/netdev-2.6/e1000
Jeff Garzik [Tue, 13 Apr 2004 10:57:44 +0000 (06:57 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/e1000
into redhat.com:/spare/repo/net-drivers-2.6

21 years agoMerge redhat.com:/spare/repo/netdev-2.6/b44
Jeff Garzik [Tue, 13 Apr 2004 10:56:28 +0000 (06:56 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/b44
into redhat.com:/spare/repo/net-drivers-2.6

21 years agoMerge redhat.com:/spare/repo/netdev-2.6/8139cp
Jeff Garzik [Tue, 13 Apr 2004 10:54:27 +0000 (06:54 -0400)]
Merge redhat.com:/spare/repo/netdev-2.6/8139cp
into redhat.com:/spare/repo/net-drivers-2.6

21 years ago[PATCH] r8169: mod_timer() expects an absolute time, not a relative offset.
François Romieu [Tue, 13 Apr 2004 10:25:12 +0000 (06:25 -0400)]
[PATCH] r8169: mod_timer() expects an absolute time, not a relative offset.

21 years ago[PATCH] r8169: correct irq handler return value
François Romieu [Tue, 13 Apr 2004 10:25:05 +0000 (06:25 -0400)]
[PATCH] r8169: correct irq handler return value

The irq handler must not return 1 when the status register is null
during the firt iteration.

21 years ago[PATCH] r8169: Missing 'static' qualifier for functions.
François Romieu [Tue, 13 Apr 2004 10:24:58 +0000 (06:24 -0400)]
[PATCH] r8169: Missing 'static' qualifier for functions.

21 years ago[PATCH] MAINTAINER entry for the r8169 driver.
François Romieu [Tue, 13 Apr 2004 10:14:40 +0000 (06:14 -0400)]
[PATCH] MAINTAINER entry for the r8169 driver.

21 years ago[PATCH] pcnet32 fix hang/crash with loopback test
Don Fry [Tue, 13 Apr 2004 10:06:34 +0000 (06:06 -0400)]
[PATCH] pcnet32 fix hang/crash with loopback test

If the pcnet32 interface is not up, running the loopback test may hang or
crash the system.  This patch provided by Jim Lewis fixes that problem.
Tested on ia32 and ppc systems.

21 years ago[PATCH] e1000: replace if(retval=fn()) with retval=fn(); if (retval)
Ganesh Venkatesan [Tue, 13 Apr 2004 09:40:44 +0000 (05:40 -0400)]
[PATCH] e1000: replace if(retval=fn()) with retval=fn(); if (retval)

21 years ago[PATCH] e1000: all other white space fixes, changelog
Ganesh Venkatesan [Tue, 13 Apr 2004 09:40:37 +0000 (05:40 -0400)]
[PATCH] e1000: all other white space fixes, changelog

21 years ago[PATCH] e1000: New bit definitions, fix comments on loadtime parameters
Ganesh Venkatesan [Tue, 13 Apr 2004 09:40:29 +0000 (05:40 -0400)]
[PATCH] e1000: New bit definitions, fix comments on loadtime parameters

21 years ago[PATCH] e1000: Set Attla PHY to Class A
Ganesh Venkatesan [Tue, 13 Apr 2004 09:40:22 +0000 (05:40 -0400)]
[PATCH] e1000: Set Attla PHY to Class A

Some LOM implementation of our controllers pass IEEE tests (Tx
distortion/Symmetry) while operating in Class A mode rather than in
class AB mode.

21 years ago[PATCH] e1000: remove polarity reversal workaround for forced 10H/10F links
Ganesh Venkatesan [Tue, 13 Apr 2004 09:40:14 +0000 (05:40 -0400)]
[PATCH] e1000: remove polarity reversal workaround for forced 10H/10F links

Adding this caused the adapter to fail while operating at 10 mbps, half
duplex. Hence the fix is not complete. We are still investigating a more
complete fix for the polarity reversal issue.

21 years ago[PATCH] e1000: fix eeprom update to include e1000_standby_eeprom
Ganesh Venkatesan [Tue, 13 Apr 2004 09:40:07 +0000 (05:40 -0400)]
[PATCH] e1000: fix eeprom update to include e1000_standby_eeprom

A Bug in e1000_spi_eeprom_ready where the Chip Select bit wasn't being
toggled after every status register read (if the eeprom wasn't ready after
the first status register read). The call to e1000_standby_eeprom manages
the CS bit correctly

21 years ago[PATCH] e1000: ethtool set/get ring param support
Ganesh Venkatesan [Tue, 13 Apr 2004 09:39:59 +0000 (05:39 -0400)]
[PATCH] e1000: ethtool set/get ring param support

21 years ago[PATCH] e1000: ethtool set/get eeprom fixes
Ganesh Venkatesan [Tue, 13 Apr 2004 09:39:52 +0000 (05:39 -0400)]
[PATCH] e1000: ethtool set/get eeprom fixes

21 years ago[PATCH] ppc64: restore r13 in an unrecoverable exception
Andrew Morton [Tue, 13 Apr 2004 02:26:35 +0000 (19:26 -0700)]
[PATCH] ppc64: restore r13 in an unrecoverable exception

From: Anton Blanchard <anton@samba.org>

We have to restore r13 when entering unrecoverable_exception.

21 years ago[PATCH] ppc64: Fix ibmveth.c compilation
Andrew Morton [Tue, 13 Apr 2004 02:26:22 +0000 (19:26 -0700)]
[PATCH] ppc64: Fix ibmveth.c compilation

From: Paul Mackerras <paulus@samba.org>

This patch changes PCI_DMA_TODEVICE to DMA_TO_DEVICE in a couple of
places in drivers/net/ibmveth.c, since it doesn't compile without this
change and it does compile with it.  It also reformats a couple of
over-long lines in the vicinity of the other changes.

21 years ago[PATCH] ufs2_frag_map_fix : fixes wrong content reading in ufs2 code
Andrew Morton [Tue, 13 Apr 2004 02:26:09 +0000 (19:26 -0700)]
[PATCH] ufs2_frag_map_fix : fixes wrong content reading in ufs2  code

From: Niraj Kumar <niraj17@iitbombay.org>

This is in continuation of the ufs2 read-only code that went into 2.6.5.

This patch fixes a bug where wrong content was being read off the disk
after around 4 MB mark.

21 years ago[PATCH] binfmt_misc: remove attribute(unused)
Andrew Morton [Tue, 13 Apr 2004 02:25:55 +0000 (19:25 -0700)]
[PATCH] binfmt_misc: remove attribute(unused)

From: Anton Blanchard <anton@samba.org>

It's been there since the kernel was first imported into bk.  We see no
reason for this.

21 years ago[PATCH] stack reductions: nfs root
Andrew Morton [Tue, 13 Apr 2004 02:25:41 +0000 (19:25 -0700)]
[PATCH] stack reductions: nfs root

From: Arjan van de Ven <arjanv@redhat.com>

root_nfs_name is called one in single threaded environment; can use static.

21 years ago[PATCH] Compile fix for macserial
Andrew Morton [Tue, 13 Apr 2004 02:25:29 +0000 (19:25 -0700)]
[PATCH] Compile fix for macserial

From: Jeff Mahoney <jeffm@suse.com>

This patch fixes a problem with the serial conversion to tiocm[sg]et.

The paste from rs_ioctl included the command sanity checking, but there's no
command for tiocm[sg]et.  The compile ends up failing.

21 years ago[PATCH] pcmcia/rsrc_mgr.c warning fix.
Andrew Morton [Tue, 13 Apr 2004 02:25:15 +0000 (19:25 -0700)]
[PATCH] pcmcia/rsrc_mgr.c warning fix.

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

drivers/pcmcia/rsrc_mgr.c: In function `find_io_region':
drivers/pcmcia/rsrc_mgr.c:604: warning: large integer implicitly truncated to unsigned type

We don't really know what underlying type an ioaddr_t has, so just use an
integer here and let the compiler promote it appropriately.

21 years ago[PATCH] another mips build fix
Andrew Morton [Tue, 13 Apr 2004 02:25:02 +0000 (19:25 -0700)]
[PATCH] another mips build fix

From: Samium Gromoff <deepfire@sic-elvis.zel.ru>

Without this one it fails to build, too.

21 years ago[PATCH] mips build fix
Andrew Morton [Tue, 13 Apr 2004 02:24:49 +0000 (19:24 -0700)]
[PATCH] mips build fix

From: Samium Gromoff <deepfire@sic-elvis.zel.ru>

Without this one it fails to build.

21 years ago[PATCH] Wrong return value in hfs_fill_super
Andrew Morton [Tue, 13 Apr 2004 02:24:35 +0000 (19:24 -0700)]
[PATCH] Wrong return value in hfs_fill_super

From: Nick Wellnhofer <wellnhofer@aevum.de>

hfs_fill_super in 2.6.5 returns -EIO instead of -EINVAL if a valid supe=
block isn't found.  So mount_block_root in init/do_mounts.c bails out before
trying to mount the root device as XFS.

21 years ago[PATCH] m68knommu: fixes to the 68328 DragonBall serial driver
Andrew Morton [Tue, 13 Apr 2004 02:24:22 +0000 (19:24 -0700)]
[PATCH] m68knommu: fixes to the 68328 DragonBall serial driver

From: <gerg@snapgear.com>

A few fixes for the 68328 "DragonBall" serial driver:

. use irqreturn_t for interrupt handlers
. correct a few variable types (stop compiler warnings)
. correctly use return values from put_user(), get_user() and copy_to_user()

Many of these originaly from kernel janitors.

21 years ago[PATCH] m68knommu: fixes to the ColdFire serial driver
Andrew Morton [Tue, 13 Apr 2004 02:24:08 +0000 (19:24 -0700)]
[PATCH] m68knommu: fixes to the ColdFire serial driver

From: <gerg@snapgear.com>

A whole bunch of fixes for the ColdFire serial driver:

. remove unused CONFIG_LEDMAN code
. reformat port definitions to new style structure init
. change "addr" field type to reduce casting in ColdFire serial driver
. cleanup locking problems in mcfrs_write().
. implement fraction baud rate clock support for hardware that
  supports it (namely the ColdFire 5272)
. implement wait_until_sent, some ColdFire parts of hardware support
  for this (again the 5272).
. correctly use return values from put_user(), get_user() and copy_to_user()

Many of these originaly from kernel janitors.

21 years ago[PATCH] m68knommu: change addr type to reduce casting in ColdFire serial driver
Andrew Morton [Tue, 13 Apr 2004 02:23:56 +0000 (19:23 -0700)]
[PATCH] m68knommu: change addr type to reduce casting in ColdFire serial driver

From: <gerg@snapgear.com>

Change "addr" field type to reduce casting in ColdFire serial driver.

21 years ago[PATCH] Fix tmscsim on amd64
Andrew Morton [Tue, 13 Apr 2004 02:23:42 +0000 (19:23 -0700)]
[PATCH] Fix tmscsim on amd64

From: Jeff Garzik <jgarzik@pobox.com>

DC390_init() takes a long, not an int.

21 years ago[PATCH] uninline copy_to_user() and copy_from_user()
Andrew Morton [Tue, 13 Apr 2004 02:23:29 +0000 (19:23 -0700)]
[PATCH] uninline copy_to_user() and copy_from_user()

40k reduction in my vmlinux.

Thanks to Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> for performing
the analysis.

21 years ago[PATCH] uninline seq_puts() and seq_putc()
Andrew Morton [Tue, 13 Apr 2004 02:23:16 +0000 (19:23 -0700)]
[PATCH] uninline seq_puts() and seq_putc()

Saves 3.4k from my vmlinux.

Thanks to Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> for performing
the analysis.

21 years ago[PATCH] uninline put_page()
Andrew Morton [Tue, 13 Apr 2004 02:23:02 +0000 (19:23 -0700)]
[PATCH] uninline put_page()

Shrinks my vmlinux by an astonishing 28k.

   text    data     bss     dec     hex filename
3038796  589890  150612 3779298  39aae2 vmlinux.before
3009761  590107  150612 3750480  393a50 vmlinux.after

Thanks to Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> for performing
the analysis.

21 years ago[PATCH] fix vga16fb.c frame buffer bad memory mapping
Andrew Morton [Tue, 13 Apr 2004 02:22:50 +0000 (19:22 -0700)]
[PATCH] fix vga16fb.c frame buffer bad memory mapping

From: Vincent Sanders <vince@kyllikki.org>

The vga16fb driver uses a direct ioremap on 0xa00000 to gain access to the
vga card.  This is wrong on architectures other than x86, every other driver
uses VGA_MAP_MEM macro from vga.h to ensure the correct memory mapping.

21 years ago[PATCH] shrink VFS hash sizes on small machines
Andrew Morton [Tue, 13 Apr 2004 02:22:37 +0000 (19:22 -0700)]
[PATCH] shrink VFS hash sizes on small machines

From: Matt Mackall <mpm@selenic.com>

Base hash sizes on available memory rather than total memory.  An
additional 50% above current used memory is considered reserved for the
purposes of hash sizing to compensate for the hashes themselves and the
remainder of kernel and userspace initialization.

21 years ago[PATCH] get_files_struct cleanup
Andrew Morton [Tue, 13 Apr 2004 02:22:25 +0000 (19:22 -0700)]
[PATCH] get_files_struct cleanup

From: Russell King <rmk@arm.linux.org.uk>

Cleanup the 4 duplicate "get_files_struct" implementations into one
get_files_struct() function to compliment put_files_struct().

21 years ago[PATCH] put ia32 pgds and pmds back into slab
Andrew Morton [Tue, 13 Apr 2004 02:22:13 +0000 (19:22 -0700)]
[PATCH] put ia32 pgds and pmds back into slab

From: William Lee Irwin III <wli@holomorphy.com>

This optimisation was reverted when I was removing all users of page->list.
Bill fixed it up, so unrevert it again.

21 years ago[PATCH] kbuild: Create .tmp_versions when building external modules
Andrew Morton [Tue, 13 Apr 2004 02:21:59 +0000 (19:21 -0700)]
[PATCH] kbuild: Create .tmp_versions when building external modules

From: Sam Ravnborg <sam@ravnborg.org>

When building external modules the $PWD/.tmp_versions directory is used.
The .tmp_versions directory in the kernel tree cannot be used because this
would clutter up the kernel tree especially when more than one external
module is being build for the same kernel tree.

This patch make sure to create $PWD/.tmp_versions, and to delete it during
make clean.  It also removes warning about 'messed with SUBDIRS', this is
no longer relevant when .tmp_versions is made outside the kernel tree.

21 years ago[PATCH] hugetlbpage highmem fix
Andrew Morton [Tue, 13 Apr 2004 02:21:45 +0000 (19:21 -0700)]
[PATCH] hugetlbpage highmem fix

From: Andy Whitcroft <apw@shadowen.org>

When clearing a large page allocation ensure we use a page clear function
which will correctly clear a ZONE_HIGHMEM page.

21 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Tue, 13 Apr 2004 01:52:00 +0000 (18:52 -0700)]
Merge bk://linux-dj.bkbits.net/cpufreq
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years agoMerge bk://linux-dj.bkbits.net/agpgart
Linus Torvalds [Tue, 13 Apr 2004 01:16:54 +0000 (18:16 -0700)]
Merge bk://linux-dj.bkbits.net/agpgart
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[PATCH] m68k show_interrupts bug
Geert Uytterhoeven [Tue, 13 Apr 2004 00:32:38 +0000 (17:32 -0700)]
[PATCH] m68k show_interrupts bug

M68k: Make sure machine-specific interrupts are always printed (bug introduced
by show_interrupts() conversion)

21 years ago[PATCH] Amiga eth%d
Geert Uytterhoeven [Tue, 13 Apr 2004 00:32:24 +0000 (17:32 -0700)]
[PATCH] Amiga eth%d

Amiga Ethernet drivers: Print card info after calling register_netdev(), to
avoid dev->name still being 'eth%d'.

21 years ago[PATCH] M68k time update
Geert Uytterhoeven [Tue, 13 Apr 2004 00:32:12 +0000 (17:32 -0700)]
[PATCH] M68k time update

M68k: Update time adjustment code cfr. other architectures.
(perhaps do_gettimeofday() is a good candidate for consolidation across archs?)

21 years ago[PATCH] M68k TLB fixes
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:58 +0000 (17:31 -0700)]
[PATCH] M68k TLB fixes

M68k TLB fixes from Roman Zippel:
  - Check current->active_mm for currently active mm
  - Set correct context to flush the right ATC entry
This is especially important for kswapd to correctly flush unmapped entries (it
caused random segfaults during large compiles)

21 years ago[PATCH] m68k I/O
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:46 +0000 (17:31 -0700)]
[PATCH] m68k I/O

m68k: Use explicit-sized types for I/O accesses

21 years ago[PATCH] Amikbd C99 cleanup
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:32 +0000 (17:31 -0700)]
[PATCH] Amikbd C99 cleanup

Amikbd: Use C99 array initializers and standard key defines

21 years ago[PATCH] M68k initializers cleanup
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:19 +0000 (17:31 -0700)]
[PATCH] M68k initializers cleanup

M68k: Clean up initializers:
  - Convert struct/array initializers to C99 style
  - Do not initialize data to 0 or NULL explicitly so it can move to bss

21 years ago[PATCH] M68k vector definitions
Geert Uytterhoeven [Tue, 13 Apr 2004 00:31:05 +0000 (17:31 -0700)]
[PATCH] M68k vector definitions

M68k: Add remaining CPU vector definitions

21 years ago[PATCH] Sun-3 duplicates
Geert Uytterhoeven [Tue, 13 Apr 2004 00:30:52 +0000 (17:30 -0700)]
[PATCH] Sun-3 duplicates

Sun-3: Kill duplicate definitions:
  - FC_CONTROL is defined in <asm/sun3-head.h>
  - vectors[] is declared in <asm/traps.h>

21 years ago[PATCH] MVME16x RTC const
Geert Uytterhoeven [Tue, 13 Apr 2004 00:30:39 +0000 (17:30 -0700)]
[PATCH] MVME16x RTC const

MVME16x RTC: Make days_in_mo[] const

21 years ago[PATCH] Amiga Zorro8390 Ethernet section conflict
Geert Uytterhoeven [Tue, 13 Apr 2004 00:30:24 +0000 (17:30 -0700)]
[PATCH] Amiga Zorro8390 Ethernet section conflict

Zorro8390: const data cannot be in the init data section (from Roman Zippel)

21 years ago[PATCH] pm2fb barrier cleanup
Geert Uytterhoeven [Tue, 13 Apr 2004 00:30:10 +0000 (17:30 -0700)]
[PATCH] pm2fb barrier cleanup

Permedia2: Always use the standard barrier macros (they do exist on m68k, and
map to barrier())

21 years ago[PATCH] Pm2fb is broken on Amiga
Geert Uytterhoeven [Tue, 13 Apr 2004 00:29:57 +0000 (17:29 -0700)]
[PATCH] Pm2fb is broken on Amiga

Permedia2: Mark pm2fb broken on Amiga, until somebody fixes it (pm2fb.c
explicitly tests for CONFIG_PCI right now)

21 years ago[PATCH] Zorro devlist.h kbuild
Geert Uytterhoeven [Tue, 13 Apr 2004 00:29:44 +0000 (17:29 -0700)]
[PATCH] Zorro devlist.h kbuild

Zorro: Quieten building of devlist.h (cfr. PCI)

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Mon, 12 Apr 2004 11:50:49 +0000 (04:50 -0700)]
Merge http://lia64.bkbits.net/to-linus-2.5
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Mon, 12 Apr 2004 11:27:11 +0000 (04:27 -0700)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Mon, 12 Apr 2004 09:32:12 +0000 (02:32 -0700)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge NFS conflicts
Linus Torvalds [Mon, 12 Apr 2004 09:31:17 +0000 (02:31 -0700)]
Merge NFS conflicts

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Mon, 12 Apr 2004 09:24:49 +0000 (02:24 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PCMCIA] init_pcmcia_cs() to return error from class_register()
Randy Dunlap [Mon, 12 Apr 2004 18:54:09 +0000 (19:54 +0100)]
[PCMCIA] init_pcmcia_cs() to return error from class_register()

Patch from: Randy Dunlap

From: Walter Harms

Now init_pcmcia_cs() returns the result of class_register().
Therefore init_pcmcia_cs() will possibly return an error.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-serial
Linus Torvalds [Mon, 12 Apr 2004 09:22:59 +0000 (02:22 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Mon, 12 Apr 2004 09:21:00 +0000 (02:21 -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] use errno #defines in assembly
Randy Dunlap [Mon, 12 Apr 2004 19:03:14 +0000 (20:03 +0100)]
[ARM] use errno #defines in assembly

Patch from: Randy Dunlap

From: Danilo Piazzalunga

Some assembly code (on various archs) either
 1. uses hardcoded errno numbers instead of the canonical macro
    names, or
 2. defines them locally, instead of including the appropriate
    header (while including other headers).

This patch "fixes" such usage in
 - getuser.S for arm
 - putuser.S for arm

22 years agoDelete unused files in sound/oss
Linus Torvalds [Mon, 12 Apr 2004 09:05:30 +0000 (02:05 -0700)]
Delete unused files in sound/oss

From Herbert Xu; the files aren't used anywhere, and
shouldn't be there in the first place.

22 years ago[PATCH] Oprofile: ARM/XScale PMU driver
Andrew Morton [Mon, 12 Apr 2004 08:07:11 +0000 (01:07 -0700)]
[PATCH] Oprofile: ARM/XScale PMU driver

From: Zwane Mwaikambo <zwane@linuxpower.ca>

The following patch adds support for the XScale performance monitoring unit
to OProfile.  It uses not only the performance monitoring counters, but
also the clock cycle counter (CCNT) allowing for upto 5 usable counters.

The code has been developed and tested on an IOP331 (hardware courtesy of
Intel) therefore i haven't been able to test it on XScale PMU1 systems.
Testing on said systems would be appreciated, and if done, please uncomment
the #define DEBUG line at the top of op_model_xscale.c

OProfile userspace support has already been committed and should be
available via CVS.

22 years ago[PATCH] pmdisk is x86 only
Andrew Morton [Mon, 12 Apr 2004 08:06:59 +0000 (01:06 -0700)]
[PATCH] pmdisk is x86 only

Only x86 implements pmdisk_arch_suspend().  So mark pmdisk as ia32-only, to
avoid breaking allyesconfig.

22 years ago[PATCH] cciss_scsi warning
Andrew Morton [Mon, 12 Apr 2004 08:06:45 +0000 (01:06 -0700)]
[PATCH] cciss_scsi warning

drivers/block/cciss_scsi.c: In function `scsi_cmd_stack_free':
drivers/block/cciss_scsi.c:241: warning: cast from pointer to integer of different size

22 years ago[PATCH] cciss: /proc fix
Andrew Morton [Mon, 12 Apr 2004 08:06:33 +0000 (01:06 -0700)]
[PATCH] cciss: /proc fix

From: <mikem@beardog.cca.cpqcorp.net>

This patch fixes a bug where /proc displays 1 less logical volume than is
actually configured.  This causes problems for some installers.

22 years ago[PATCH] JBD: BH_Revoke cleanup
Andrew Morton [Mon, 12 Apr 2004 08:06:19 +0000 (01:06 -0700)]
[PATCH] JBD: BH_Revoke cleanup

Use the bh bit test/set infrastructure rather than open-coding everything.
No functional changes.

22 years ago[PATCH] Add CONFIG_SYSFS
Andrew Morton [Mon, 12 Apr 2004 08:06:06 +0000 (01:06 -0700)]
[PATCH] Add CONFIG_SYSFS

From: Patrick Mochel <mochel@digitalimplant.org>

Here is a patch to make sysfs optional.  Note that with CONFIG_SYSFS=n you
must specify the boot device's major:minor on the kernel boot command line
with

root=03:01

For embedded systems, it will save a significant amount of memory during
runtime.  And, it saves 4k from the built kernel image for me.

22 years ago[PATCH] parport: no procfs warning fix
Andrew Morton [Mon, 12 Apr 2004 08:05:52 +0000 (01:05 -0700)]
[PATCH] parport: no procfs warning fix

drivers/parport/procfs.c: In function `parport_default_proc_unregister':
drivers/parport/procfs.c:529: warning: `return' with a value, in function returning void

22 years ago[PATCH] kbuild: external module support
Andrew Morton [Mon, 12 Apr 2004 08:05:40 +0000 (01:05 -0700)]
[PATCH] kbuild: external module support

From: Sam Ravnborg <sam@ravnborg.org>

Based on initial patch from Andreas Gruenbacher there is now better support
for building external modules with kbuild.

The preferred syntax is now:
make -C $KERNELSRC M=$PWD

but the old syntax:
make -C $KERNELSRC SUBDIRS=$PWD modules
will remain supported.

The major differences compared to before are that:
1) No attempt is made to neither check nor update any files in $KERNELSRC
2) Module versions are now supported

During stage 2 of kernel compilation where the modules are built, a new file
Module.symvers is created.  This file contains the version for all symbols
exported by the kernel and any module compiled within the kernel tree.

When the external module is build the Module.symvers file is being read and
symbol versions are used from that file.

The purpose of avoiding any updates in the kernel src is that usually in a
distribution the kernel src will be read-only, and there is no need to try to
update it.  And when building an external module the focus is on the module,
not the kernel.

I expect the distributions will start using something like this:

kernel src - with no generated files. Not even .config:
/usr/src/linux-<version>

Output from build:
/lib/modules/linux-<version>/build

where build is a real directory with relevant output files and the
appropriate .config.

I have some Documentation in the pipe-line, but wants to see how this
approach is received before completing it.

This patch is made on top of the previously posted patch to divide
make clean in three steps.

And you may need to edit the following line in the patch to make it apply:
 %docs: scripts_basic FORCE
to
 %docs: scripts FORCE

22 years ago[PATCH] kbuild: cleaning in three steps
Andrew Morton [Mon, 12 Apr 2004 08:05:26 +0000 (01:05 -0700)]
[PATCH] kbuild: cleaning in three steps

From: Sam Ravnborg <sam@ravnborg.org>

Previously 'make clean' deleted all automatically generated files.  The
following patch revert this behaviour, and now 'make clean' leaves enough
behind to allow external modules to be built.

The cleaning is now done in three steps:

make clean     - delete everything not needed for building external modules
make mrproper  - delete all generated files, including .config
make distclean - delete all temporary files such as *.orig, *~, *.rej etc.

This fixes reports about nvidia and vmware build issues.

22 years ago[PATCH] Make %docs depend on scripts_basic
Andrew Morton [Mon, 12 Apr 2004 08:05:14 +0000 (01:05 -0700)]
[PATCH] Make %docs depend on scripts_basic

From: Sam Ravnborg <sam@ravnborg.org>

From: Herbert Xu <herbert@gondor.apana.org.au>

It seems that the %docs targets only needs scripts_basic.  The following
patch does just that.  This removes its dependency on the existence of a
.config file.

22 years ago[PATCH] fb_copy_cmap() fix
Andrew Morton [Mon, 12 Apr 2004 08:04:59 +0000 (01:04 -0700)]
[PATCH] fb_copy_cmap() fix

From: Arjan van de Ven <arjanv@redhat.com>

fb_copy_cmap() takes an argument about wether to do memcpy, copy_from_user or
copy_to_user.  0 is memcpy, 2 is copy_to_user.  In the ioctl you want
copy_to_user for copying the colormap to userspace.

22 years ago[PATCH] framebuffer bugfix
Andrew Morton [Mon, 12 Apr 2004 08:04:47 +0000 (01:04 -0700)]
[PATCH] framebuffer bugfix

From: Arjan van de Ven <arjanv@redhat.com>

Patch below fixes a thinko in the frame buffer drivers; the code does

cursor.image.data = kmalloc(size, GFP_KERNEL);
....
cursor.mask = kmalloc(size, GFP_KERNEL);
....
                if (copy_from_user(&cursor.image.data, sprite->image.data, size) ||
                    copy_from_user(cursor.mask, sprite->mask, size)) {
....

where it's clear that the & in the first copy_from_user is utterly bogus
since the destination is the content of the newly allocated buffer, and not
the pointer to it as the code does.

22 years ago[PATCH] BSD accounting oops fix
Andrew Morton [Mon, 12 Apr 2004 08:04:34 +0000 (01:04 -0700)]
[PATCH] BSD accounting oops fix

oopses have been reported in do_acct_process(), with premption enabled, when
threaded applications are exitting.

It appears that we're racing with another thread which is nulling out
current->tty.  I think this race is still there after we moved current->tty
into current->signal->tty, so let's take the needed lock.

22 years ago[PATCH] tpqic02 warnings
Andrew Morton [Mon, 12 Apr 2004 08:04:21 +0000 (01:04 -0700)]
[PATCH] tpqic02 warnings

drivers/char/tpqic02.c: In function `rdstatus':
drivers/char/tpqic02.c:700: warning: int format, different type arg (arg 2)
drivers/char/tpqic02.c:700: warning: int format, different type arg (arg 2)

22 years ago[PATCH] applicom warnings and usercopy-in-cli fix
Andrew Morton [Mon, 12 Apr 2004 08:04:08 +0000 (01:04 -0700)]
[PATCH] applicom warnings and usercopy-in-cli fix

drivers/char/applicom.c: In function `ac_write':
drivers/char/applicom.c:363: warning: int format, different type arg (arg 2)
drivers/char/applicom.c:363: warning: int format, different type arg (arg 3)
drivers/char/applicom.c:363: warning: int format, different type arg (arg 2)
drivers/char/applicom.c:363: warning: int format, different type arg (arg 3)
drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. - copy*user in cli"
drivers/char/applicom.c: In function `ac_read':
drivers/char/applicom.c:546: warning: int format, different type arg (arg 2)
drivers/char/applicom.c:546: warning: int format, different type arg (arg 3)
drivers/char/applicom.c:546: warning: int format, different type arg (arg 2)
drivers/char/applicom.c:546: warning: int format, different type arg (arg 3)

22 years ago[PATCH] policydb printk warnings
Andrew Morton [Mon, 12 Apr 2004 08:03:56 +0000 (01:03 -0700)]
[PATCH] policydb printk warnings

security/selinux/ss/policydb.c:1160: warning: signed size_t format, different type arg (arg 3)
security/selinux/ss/policydb.c:1160: warning: signed size_t format, different type arg (arg 3)

22 years ago[PATCH] i2c-dev warning fixes
Andrew Morton [Mon, 12 Apr 2004 08:03:42 +0000 (01:03 -0700)]
[PATCH] i2c-dev warning fixes

drivers/i2c/i2c-dev.c: In function `i2cdev_read':
drivers/i2c/i2c-dev.c:140: warning: int format, different type arg (arg 3)
drivers/i2c/i2c-dev.c: In function `i2cdev_write':
drivers/i2c/i2c-dev.c:168: warning: int format, different type arg (arg 3)

22 years ago[PATCH] Rename bitmap_clear to bitmap_zero, remove CLEAR_BITMAP
Andrew Morton [Mon, 12 Apr 2004 08:03:29 +0000 (01:03 -0700)]
[PATCH] Rename bitmap_clear to bitmap_zero, remove CLEAR_BITMAP

From: Rusty Russell <rusty@rustcorp.com.au>

clear_bit(n, addr) clears the nth bit.
test_and_clear_bit(n, addr) clears the nth bit.
cpu_clear(n, cpumask) clears the nth bit (vs. cpus_clear()).
bitmap_clear(bitmap, n) clears out all the bits up to n.

Moreover, there's a CLEAR_BITMAP() in linux/types.h which bitmap_clear() is
a wrapper for.

Rename bitmap_clear to bitmap_zero, which is harder to confuse (yes, it bit
me), and make everyone use it.

22 years ago[PATCH] Fix More Problems Introduced By Module Structure Added in modpost.c
Andrew Morton [Mon, 12 Apr 2004 08:03:15 +0000 (01:03 -0700)]
[PATCH] Fix More Problems Introduced By Module Structure Added in modpost.c

From: Rusty Russell <rusty@rustcorp.com.au>

Sam Ravnborg found these.

1) have_vmlinux is a global, and should not be reset every time.

2) We pretend every module needs cleanup_module so it gets versioned,
   but that isn't defined for CONFIG_MODULE_UNLOAD=n.

3) The visible effect of this is that modpost will start complaning about
   undefined symbols - previously this happened only when the module was
   isntalled.

22 years ago[PATCH] do_fork() error path memory leak
Andrew Morton [Mon, 12 Apr 2004 08:03:03 +0000 (01:03 -0700)]
[PATCH] do_fork() error path memory leak

From: <john.l.byrne@hp.com>

In do_fork(), if an error occurs after the mm_struct for the child has been
allocated, it is never freed.  The exit_mm() meant to free it increments
the mm_count and this count is never decremented.  (For a running process
that is exitting, schedule() takes care this; however, the child process
being cleaned up is not running.) In the CLONE_VM case, the parent's
mm_struct will get an extra mm_count and so it will never be freed.

This patch should fix both the CLONE_VM and the not CLONE_VM case; the test
of p->active_mm prevents a panic in the case that a kernel-thread is being
cloned.

22 years ago[PATCH] mdacon.c warning fix.
Andrew Morton [Mon, 12 Apr 2004 08:02:49 +0000 (01:02 -0700)]
[PATCH] mdacon.c warning fix.

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

drivers/video/console/mdacon.c:599: warning: initialization from incompatible pointer type

22 years ago[PATCH] fix for potential integer overflow in zoran driver
Andrew Morton [Mon, 12 Apr 2004 08:02:37 +0000 (01:02 -0700)]
[PATCH] fix for potential integer overflow in zoran driver

From: "Ronald S. Bultje" <R.S.Bultje@students.uu.nl>

Attached patch fixes a potential integer overflow in zoran_procs.c (part of
the zr36067 driver).  Bug was detected by Ken Ashcraft with the Stanford
checker.

22 years ago[PATCH] ext3fs sb= mount option fix
Andrew Morton [Mon, 12 Apr 2004 08:02:23 +0000 (01:02 -0700)]
[PATCH] ext3fs sb= mount option fix

From: <achurch@achurch.org> (Andrew Church)

The following patch fixes a bug in the processing of the sb= (alternate
superblock) mount option for ext3: when changing the device block size, the
given superblock is ignored and the code reverts to using block 1.

22 years ago[PATCH] ext2fs sb= mount option fix
Andrew Morton [Mon, 12 Apr 2004 08:02:11 +0000 (01:02 -0700)]
[PATCH] ext2fs sb= mount option fix

From: <achurch@achurch.org> (Andrew Church)

The following patch fixes a bug in the processing of the sb= (alternate
superblock) mount option for ext2: when changing the device block size, the
given superblock is ignored and the code reverts to using block 1.

22 years ago[PATCH] fix test_and_change_bit comment
Andrew Morton [Mon, 12 Apr 2004 08:01:57 +0000 (01:01 -0700)]
[PATCH] fix test_and_change_bit comment

From: Paul Jackson <pj@sgi.com>

I've read over the code in each case, built and ran a test case for i386 in
particular, and studied the other uses and definitions of
test_and_change_bit().  Everything I see recommends this change.

- Fix test_and_change_bit() comment: returns old value, not new one.