]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] ide: merge CONFIG_IDE_TASKFILE_IO=y|n PIO handlers together
Bartlomiej Zolnierkiewicz [Wed, 14 Jul 2004 10:42:19 +0000 (03:42 -0700)]
[PATCH] ide: merge CONFIG_IDE_TASKFILE_IO=y|n PIO handlers together

This fixes a couple of CONFIG_IDE_TASKFILE_IO=n issues:
 - check status after last sector for PIO-in transfers
 - handle drive->unmask properly in PIO-out prehandlers
 - use rq->[hard]_nr_sectors where appropriate

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: no partial completions for PIO (CONFIG_IDE_TASKFILE_IO=y)
Bartlomiej Zolnierkiewicz [Wed, 14 Jul 2004 10:42:07 +0000 (03:42 -0700)]
[PATCH] ide: no partial completions for PIO (CONFIG_IDE_TASKFILE_IO=y)

Don't do partial completions but instead acknowledge already transferred
sectors with verified good status on error.  This allows us to complete
"good" sectors to block layer even if bio they belong to wasn't finished
and simplifies code.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: pre_task_mulout_intr() cleanup (CONFIG_IDE_TASKFILE_IO=n)
Bartlomiej Zolnierkiewicz [Wed, 14 Jul 2004 10:41:55 +0000 (03:41 -0700)]
[PATCH] ide: pre_task_mulout_intr() cleanup (CONFIG_IDE_TASKFILE_IO=n)

drive_is_ready() reads STATUS register if CONFIG_IDEPCI_SHARE_IRQ is not
defined and ALTSTATUS register if it is defined.  Therefore drive_is_ready()
in pre_task_mulout_intr() only makes sense if we can't trust STATUS register
(because we call ide_wait_stat() which reads STATUS register earlier).

Remove this "workaround" for now as it is not present in ide-disk.c
and whole multi PIO-out code (CONFIG_IDE_TASKFILE_IO=n) was buggy before.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove pre_task_out_intr() comment (CONFIG_IDE_TASKFILE_IO=n)
Bartlomiej Zolnierkiewicz [Wed, 14 Jul 2004 10:41:44 +0000 (03:41 -0700)]
[PATCH] remove pre_task_out_intr() comment (CONFIG_IDE_TASKFILE_IO=n)

disable_irq_nosync() in ide-io.c:ide_do_request() protects
pre_task_out_intr() from racing with the task_out_intr().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: remove BUSY check from task_in_intr() (CONFIG_IDE_TASKFILE_IO=n)
Bartlomiej Zolnierkiewicz [Wed, 14 Jul 2004 10:41:32 +0000 (03:41 -0700)]
[PATCH] ide: remove BUSY check from task_in_intr() (CONFIG_IDE_TASKFILE_IO=n)

We shouldn't ever get there if drive is busy and we can't start transfer
in this case.  ide-disk.c:read_intr() also doesn't check for BUSY_STAT bit.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: PIO-out error handling fixes (CONFIG_IDE_TASKFILE_IO=y)
Bartlomiej Zolnierkiewicz [Wed, 14 Jul 2004 10:41:21 +0000 (03:41 -0700)]
[PATCH] ide: PIO-out error handling fixes (CONFIG_IDE_TASKFILE_IO=y)

We shouldn't ever get into ->handler() if drive is busy so
just call ->error() unconditionally if status check fails.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: PIO-out ->prehandler() fixes (CONFIG_IDE_TASKFILE_IO=y)
Bartlomiej Zolnierkiewicz [Wed, 14 Jul 2004 10:41:10 +0000 (03:41 -0700)]
[PATCH] ide: PIO-out ->prehandler() fixes (CONFIG_IDE_TASKFILE_IO=y)

Setup handler and output first data block directly from ->prehandler()
instead of calling ->handler().  The only change in functionality is that
we no longer check DRIVE_READY status bits (there is no need to do it).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ide: PIO-out fixes for ide-taskfile.c (CONFIG_IDE_TASKFILE_IO=n)
Bartlomiej Zolnierkiewicz [Wed, 14 Jul 2004 10:40:58 +0000 (03:40 -0700)]
[PATCH] ide: PIO-out fixes for ide-taskfile.c (CONFIG_IDE_TASKFILE_IO=n)

 - in task_out_intr() fix off-by-1 bug and (stat & DRQ_STAT) check,
   previously "if" was always true for rq->current_nr_sectors == 1
 - fail request if DRQ_STAT is not set and rq->current_nr_sectors != 0
   (instead of setting handler and waiting for the next IRQ) or if DRQ_STAT
   is set but !rq->current_nr_sectors (in task_mulout_intr() this was OK)
 - in task_mulout_intr() check also DRIVE_READY and WRERR_STAT status bits

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://kernel.bkbits.net/jgarzik/libata-upstream-2.6
Linus Torvalds [Wed, 14 Jul 2004 08:10:06 +0000 (01:10 -0700)]
Merge bk://kernel.bkbits.net/jgarzik/libata-upstream-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PCI, libata] Fix "combined mode" PCI quirk for ICH6
Jeff Garzik [Wed, 14 Jul 2004 12:20:05 +0000 (08:20 -0400)]
[PCI, libata] Fix "combined mode" PCI quirk for ICH6

The hardware vendor, in their infinite wisdom, make the combined
mode configuration register different between ICH5 and ICH6.

Take this into account.

22 years ago[PATCH] libata: fix kunmap() of incorrect page, in PIO data xfer
Sergio Gelato [Wed, 14 Jul 2004 12:11:41 +0000 (08:11 -0400)]
[PATCH] libata: fix kunmap() of incorrect page, in PIO data xfer

Obvious bug.  Fixes highmem oops.

22 years agoMerge http://jfs.bkbits.net/linux-2.5
Linus Torvalds [Wed, 14 Jul 2004 07:53:40 +0000 (00:53 -0700)]
Merge http://jfs.bkbits.net/linux-2.5
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge pobox.com:/spare/repo/linux-2.6
Jeff Garzik [Wed, 14 Jul 2004 11:24:08 +0000 (07:24 -0400)]
Merge pobox.com:/spare/repo/linux-2.6
into pobox.com:/spare/repo/net-drivers-2.6

22 years agoMerge pobox.com:/spare/repo/netdev-2.6/misc
Jeff Garzik [Wed, 14 Jul 2004 11:19:30 +0000 (07:19 -0400)]
Merge pobox.com:/spare/repo/netdev-2.6/misc
into pobox.com:/spare/repo/net-drivers-2.6

22 years ago[netdrvr acenic] fix RX descriptor memory ordering
Janice M. Girouard [Wed, 14 Jul 2004 11:13:01 +0000 (07:13 -0400)]
[netdrvr acenic] fix RX descriptor memory ordering

22 years ago[wireless airo] fix alignment problem (particularly on ARM)
Guennadi Liakhovetski [Wed, 14 Jul 2004 11:06:52 +0000 (07:06 -0400)]
[wireless airo] fix alignment problem (particularly on ARM)

Bugzilla #2905

22 years ago[netdrvr tg3] bump version and reldate
Jeff Garzik [Wed, 14 Jul 2004 11:01:55 +0000 (07:01 -0400)]
[netdrvr tg3] bump version and reldate

22 years ago[PATCH] tg3 bug
Anton Blanchard [Wed, 14 Jul 2004 11:00:50 +0000 (07:00 -0400)]
[PATCH] tg3 bug

During receive processing, the tg3 card updates rx_producer (the
hardware position in the receive ring) and the opaque cookie. Due to PCI
rules the stores happen in order. However the cpu may reorder the reads.

In these sort of cases there is usually a data dependency between
reading the index and looking up the data (since we use the index to
load the data). I think all cpus except alpha guarantee the reads
happen in order in this case.

However in this particular case we load hw_idx, compare it to sw_idx and
then use sw_idx to locate the opaque cookie. There is no data dependency
in this case. We need a read memory barrier between the read of
rx_producer and the opaque cookie to enforce ordering.

Thanks to Olof Johansson, Michael Chan and Broadcom for their assistance
in finding this bug.

Signed-off-by: Anton Blanchard <anton@samba.org>
22 years ago[PATCH] fix airo oops-on-removal
Andrew Morton [Wed, 14 Jul 2004 10:42:35 +0000 (06:42 -0400)]
[PATCH] fix airo oops-on-removal

From: Bill Nottingham <notting@redhat.com>

airo creates /proc/driver/aironet/<device name> on device activation.
However, the device can be renamed - then on teardown it tries to remove
the wrong directory.  The removal of /proc/driver/aironet then runs afoul
of the BUG_ON() in remove_proc_entry.

This fixes it by keeping a copy of the name of the directory it created.

(It doesn't actually solve the problem of the stats directory still being
/proc/driver/aironet/eth0 when you rename the device to, say, 'joe'.  But
that patch would be a little less trivial.)

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] prism54 Fix wrong type for BSSID
Margit Schubert-While [Wed, 14 Jul 2004 10:42:25 +0000 (06:42 -0400)]
[PATCH] prism54 Fix wrong type for BSSID

2004-07-12 Margit Schubert-While <margitsw@t-online.de>

* The OID type for BSSID was incorrectly set to type SSID.
  It should be type RAW. This lead to interesting reporting
  by "iwpriv ethX g_bssid".
  (Which caused garbage output and possibly an out of bound)

* Be ultra-cautious in reporting SSID by changing the "%s"
  to "%.*s" and passing the length. (Prompted by the false
  type above, whereby length = 0 and a %s on a garbage field)

22 years agoMerge pobox.com:/spare/repo/netdev-2.6/sis900
Jeff Garzik [Wed, 14 Jul 2004 10:33:02 +0000 (06:33 -0400)]
Merge pobox.com:/spare/repo/netdev-2.6/sis900
into pobox.com:/spare/repo/net-drivers-2.6

22 years agoMerge pobox.com:/spare/repo/netdev-2.6/forcedeth
Jeff Garzik [Wed, 14 Jul 2004 10:31:43 +0000 (06:31 -0400)]
Merge pobox.com:/spare/repo/netdev-2.6/forcedeth
into pobox.com:/spare/repo/net-drivers-2.6

22 years agoMerge pobox.com:/spare/repo/netdev-2.6/natsemi
Jeff Garzik [Wed, 14 Jul 2004 10:30:06 +0000 (06:30 -0400)]
Merge pobox.com:/spare/repo/netdev-2.6/natsemi
into pobox.com:/spare/repo/net-drivers-2.6

22 years ago[netdrvr dmfe] remove ALi pci id
Jeff Garzik [Wed, 14 Jul 2004 10:26:37 +0000 (06:26 -0400)]
[netdrvr dmfe] remove ALi pci id

It's tulip driver, and tulip driver performs better than dmfe
(yet some distro installers pick this driver to use).

Requested by ALi.

22 years ago[PATCH] [TRIVIAL 2.6] sk98lin: kill dup include
Rusty Russell [Wed, 14 Jul 2004 10:26:11 +0000 (06:26 -0400)]
[PATCH] [TRIVIAL 2.6] sk98lin: kill dup include

 From:  a.othieno@bluewin.ch (Arthur Othieno)

22 years ago[netdrvr pci-skeleton] refresh
Pavel Roskin [Wed, 14 Jul 2004 10:25:46 +0000 (06:25 -0400)]
[netdrvr pci-skeleton] refresh

Here it is.  The patch fixes all compile errors and warnings in
pci-skeleton.c.  The "debug" parameter lacks corresponding variable,
so I removed it to avoid a warning on module load.  Obsolete
pci_power_on() and pci_power_off() have been replaced with the new
code using pci_set_power_state(), pci_save_state() and
pci_restore_state().  The driver has been tested by compiling it as
module and as part of the kernel.

22 years agoMerge bk://linux.bkbits.net/linux-2.5
Dave Kleikamp [Wed, 14 Jul 2004 05:50:57 +0000 (22:50 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/j/jfs/linux-2.5

22 years ago[PATCH] Fix 'unsigned' < 0 checks
Mika Kukkonen [Wed, 14 Jul 2004 03:14:43 +0000 (20:14 -0700)]
[PATCH] Fix 'unsigned' < 0 checks

Using "-W" found a few places that should probably use signed
variables since they can contain (and check for) negative error
values.

22 years ago[PATCH] mconf.c: Honor $LINES and $COLUMNS if TIOCGWINSZ failed
Jan-Benedict Glaw [Wed, 14 Jul 2004 02:59:40 +0000 (19:59 -0700)]
[PATCH] mconf.c: Honor $LINES and $COLUMNS if TIOCGWINSZ failed

While reading code, I found this buglet.  If the TIOCGWINSZ fails,
mconf.c assumes 24/80 as screen size, without honoring the LINES and
COLUMNS environment variables.  This is the shorter and IMHO more
correct version.

Signed-off-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] mcdx irq handling cleanup
Alexander Viro [Wed, 14 Jul 2004 02:40:17 +0000 (19:40 -0700)]
[PATCH] mcdx irq handling cleanup

mcdx has different IRQ numbers for all drives; irq handler needs a
pointer to structure describing the drive in question.  However, instead
of passing such pointer at request_irq() time and having it passed to
mcdx_intr() for free, mcdx.c sticks the pointer in question into an
array indexed by IRQ number and has mcdx_intr() go look it up there.

Cleaned up, array killed.

22 years ago[PATCH] sparse: sound compat ioctls annotations
Alexander Viro [Wed, 14 Jul 2004 02:38:57 +0000 (19:38 -0700)]
[PATCH] sparse: sound compat ioctls annotations

Trivial annotations + typo fix in _snd_ioctl32_hwdep_dsp_image()
(we want to copy 32bit structure from userland, convert it to native one
and do normal ioctl on it; see the first changed line below for what's
really happening...)

22 years ago[PATCH] sparse: (ipv6/netfilter) initializer fix
Alexander Viro [Wed, 14 Jul 2004 02:38:46 +0000 (19:38 -0700)]
[PATCH] sparse: (ipv6/netfilter) initializer fix

Missing '=' in C99 initializer

22 years ago[PATCH] sparse: #if where #ifdef should've been (saa7146)
Alexander Viro [Wed, 14 Jul 2004 02:38:34 +0000 (19:38 -0700)]
[PATCH] sparse: #if where #ifdef should've been (saa7146)

22 years ago[PATCH] sparse: more drivers/usb/* annotations
Alexander Viro [Wed, 14 Jul 2004 02:38:23 +0000 (19:38 -0700)]
[PATCH] sparse: more drivers/usb/* annotations

22 years ago[PATCH] sparse: a couple of inline fixes in drivers'/scsi
Alexander Viro [Wed, 14 Jul 2004 02:38:12 +0000 (19:38 -0700)]
[PATCH] sparse: a couple of inline fixes in drivers'/scsi

Usual "inline used before definition" fixes in nsp32.c and sg.c

22 years ago[PATCH] sparse: more drivers/scsi annotations
Alexander Viro [Wed, 14 Jul 2004 02:38:01 +0000 (19:38 -0700)]
[PATCH] sparse: more drivers/scsi annotations

Almost all are trivial, aacraid/linit.c annotations had caught a bug -
copy_from_user() where copy_in_user() should've been.

22 years ago[PATCH] pointer-to-int done the canonical way
Alexander Viro [Wed, 14 Jul 2004 02:37:49 +0000 (19:37 -0700)]
[PATCH] pointer-to-int done the canonical way

Extraction of int from pointer is slightly broken in several places.

22 years ago[PATCH] sparse: __forced added to casts in arch-specific code
Alexander Viro [Wed, 14 Jul 2004 02:37:38 +0000 (19:37 -0700)]
[PATCH] sparse: __forced added to casts in arch-specific code

Casts from __user to address-space-agnostic in amd64 and i386
made explicit (__force added; in these places we pass userland pointer
to arch-specific code that handles kernel and userland pointers the
same way).
csum_partial_copy_*() annotated properly

22 years ago[PATCH] sparse: aout32 sparse fixes for compat
Alexander Viro [Wed, 14 Jul 2004 02:37:27 +0000 (19:37 -0700)]
[PATCH] sparse: aout32 sparse fixes for compat

this basically repeats the stuff done to fs/binfmt_aout.c for amd64
and sparc64 aout32.

22 years ago[PATCH] sparse: missing cpumask_t bits on sparc
Alexander Viro [Wed, 14 Jul 2004 02:37:15 +0000 (19:37 -0700)]
[PATCH] sparse: missing cpumask_t bits on sparc

(no, it still doesn't fix sparc32-smp - just partial compile
fixes ;-/)

22 years ago[PATCH] sparse: read_descriptor_t annotation
Alexander Viro [Wed, 14 Jul 2004 02:37:04 +0000 (19:37 -0700)]
[PATCH] sparse: read_descriptor_t annotation

We have a fun situation with read_descriptor_t - all its instances end
up passed to some actor; these actors use desc->buf as their private
data; there are 5 of them and they expect resp:

        struct lo_read_data *
        struct svc_rqst *
        struct file *
        struct rpc_xprt *
        char __user *

IOW, there is no type safety whatsoever; the field is essentially untyped,
we rely on the fact that actor is chosen by the same code that sets ->buf
and expect it to put something of the right type there.

Right now desc->buf is declared as char __user *.  Moreover, the last
argument of ->sendfile() (what should be stored in ->buf) is void __user *,
even though it's actually _never_ a userland pointer.

If nothing else, ->sendfile() should take void * instead; that alone removes
a bunch of bogus warnings.  I went further and replaced desc->buf with a
union of void * and char __user *.

22 years ago[PATCH] fix ia64 early_printk build problem
Bjorn Helgaas [Wed, 14 Jul 2004 02:28:01 +0000 (19:28 -0700)]
[PATCH] fix ia64 early_printk build problem

Rename PCDP_TABLE_GUID back to HCDP_TABLE_GUID to get the file to compile
again.  This change is against current 2.6 BK and is under
CONFIG_IA64_EARLY_PRINTK_UART.

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] remove outdated Stallion contact information
Adrian Bunk [Wed, 14 Jul 2004 02:27:50 +0000 (19:27 -0700)]
[PATCH] remove outdated Stallion contact information

The patch below (applies against both 2.4 and 2.6) removes the bouncing
email address from all files and removes the outdated MAINTAINERS entry.

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix return codes after i2c_add_driver() in tea6415c and tea6420
Michael Hunold [Wed, 14 Jul 2004 02:27:38 +0000 (19:27 -0700)]
[PATCH] fix return codes after i2c_add_driver() in tea6415c and tea6420

In two of my i2c helper drivers the return value of i2c_add_driver() is
ignored.  Thanks to Arthur Othieno for finding these bugs.

Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch>
Signed-off-by: Michael Hunold <hunold@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix saa7146 compilation
Michael Hunold [Wed, 14 Jul 2004 02:27:27 +0000 (19:27 -0700)]
[PATCH] fix saa7146 compilation

From: Colin Leroy <colin@colino.net>

This patch fixes a compilation error on 2.6.8-rc1.  Here's the error:
drivers/media/common/saa7146_video.c:3: conflicting types for `memory'
include/asm-m68k/setup.h:365: previous declaration of `memory' make[3]: ***
[drivers/media/common/saa7146_video.o] Error 1

Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Michael Hunold <hunold@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] autoselect FAT_FS in config
Hirofumi Ogawa [Wed, 14 Jul 2004 02:27:16 +0000 (19:27 -0700)]
[PATCH] autoselect FAT_FS in config

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove struct_cpy()
Andrew Morton [Wed, 14 Jul 2004 02:27:05 +0000 (19:27 -0700)]
[PATCH] remove struct_cpy()

Only two architectures implement it, so afs broke the build.

Remove struct_cpy() altogether, and use structure assignments.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] `unknown symbol' in sound/oss/kahlua.ko needs unknown symbol udelay
Pawel Sikora [Wed, 14 Jul 2004 02:26:53 +0000 (19:26 -0700)]
[PATCH] `unknown symbol' in sound/oss/kahlua.ko needs unknown symbol udelay

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] floppy.c: remove superfluous variable initialization
Adrian Bunk [Wed, 14 Jul 2004 02:26:42 +0000 (19:26 -0700)]
[PATCH] floppy.c: remove superfluous variable initialization

From: Kam Leo <A1tmblwd@netscape.net>

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] #ifndef guard percpu_counter.h and blockgroup_lock.h
Adrian Bunk [Wed, 14 Jul 2004 02:26:31 +0000 (19:26 -0700)]
[PATCH] #ifndef guard percpu_counter.h and blockgroup_lock.h

Insert header guards to allow possible multiple inclusion for
include/linux/percpu_counter.h and include/linux/blockgroup_lock.h

Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] small style fixups for the new automount code
Christoph Hellwig [Wed, 14 Jul 2004 02:26:20 +0000 (19:26 -0700)]
[PATCH] small style fixups for the new automount code

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix 3c59x.c uses of plain integer as NULL pointer
Petri T. Koistinen [Wed, 14 Jul 2004 02:26:09 +0000 (19:26 -0700)]
[PATCH] Fix 3c59x.c uses of plain integer as NULL pointer

This patch will fix 3Com "Vortex" and "Boomerang" ethernet driver sparse
warnings about using plain integer as NULL pointer.

Signed-off-by: Petri T. Koistinen <petri.koistinen@iki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pmac_zilog: initialize port spinlock on all init paths
David Eger [Wed, 14 Jul 2004 02:25:57 +0000 (19:25 -0700)]
[PATCH] pmac_zilog: initialize port spinlock on all init paths

pmac_zilog: initialize the serial ports' spinlocks even if console over
   serial is not enabled; disable this driver by default for ppc

This lock not being initialized was Oopsing my TiBook :-P

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 agoppc64: fix up si_addr usage
Linus Torvalds [Tue, 13 Jul 2004 09:58:30 +0000 (02:58 -0700)]
ppc64: fix up si_addr usage

Al's last changes mean that it is now annotated as a user
pointer, and we want to avoid warnings.

22 years ago[PATCH] compat_fillonedir() warning fix
Alexander Viro [Tue, 13 Jul 2004 04:30:17 +0000 (21:30 -0700)]
[PATCH] compat_fillonedir() warning fix

access_ok() expects a pointer, not unsigned long.  It's not a
problem on platforms that have this guy done as a macro (or ones that
do not use fs/compat.c at all), but that's still wrong and on some
platforms that care we actually have access_ok() as inlined function.
Bogus cast removed.

22 years ago[PATCH] __vfs_follow_link() made inline again
Alexander Viro [Tue, 13 Jul 2004 04:16:58 +0000 (21:16 -0700)]
[PATCH] __vfs_follow_link() made inline again

__vfs_follow_link() really should be inline; that's a special case since
we are in the middle of recursion and really want to conserve stack
space.  Moved before the first use, made inline again.

22 years ago[PATCH] sparse: more fs/* NULL noise removal
Alexander Viro [Tue, 13 Jul 2004 04:16:47 +0000 (21:16 -0700)]
[PATCH] sparse: more fs/* NULL noise removal

(partially based on patch from Mika Kukkonen)

22 years ago[PATCH] sparse: assorted drivers/* NULL noise removal
Alexander Viro [Tue, 13 Jul 2004 04:04:12 +0000 (21:04 -0700)]
[PATCH] sparse: assorted drivers/* NULL noise removal

22 years ago[PATCH] sparse: net/* NULL noise removal
Alexander Viro [Tue, 13 Jul 2004 04:03:58 +0000 (21:03 -0700)]
[PATCH] sparse: net/* NULL noise removal

22 years ago[PATCH] sparse: drivers/usb NULL noise removal
Alexander Viro [Tue, 13 Jul 2004 04:03:46 +0000 (21:03 -0700)]
[PATCH] sparse: drivers/usb NULL noise removal

22 years ago[PATCH] sparse: drivers/net partial NULL noise removal
Alexander Viro [Tue, 13 Jul 2004 04:03:33 +0000 (21:03 -0700)]
[PATCH] sparse: drivers/net partial NULL noise removal

22 years ago[PATCH] sparse: drivers/media NULL noise removal
Alexander Viro [Tue, 13 Jul 2004 04:03:20 +0000 (21:03 -0700)]
[PATCH] sparse: drivers/media NULL noise removal

22 years ago[PATCH] sparse: gemtek ioctl fix
Alexander Viro [Tue, 13 Jul 2004 04:03:08 +0000 (21:03 -0700)]
[PATCH] sparse: gemtek ioctl fix

Dumb Typo(tm) - the first bug caught by 0/NULL checks (arg is
really a kernel pointer there, so memset() is actually OK - results
will be copied to userland by caller.  Or would be, if we would not
oops  ;-)

22 years ago[PATCH] sparse: ipc compat annotations and cleanups
Alexander Viro [Tue, 13 Jul 2004 04:02:57 +0000 (21:02 -0700)]
[PATCH] sparse: ipc compat annotations and cleanups

ipc compat code switched to compat_alloc_user_space() and annotated.

22 years ago[PATCH] sparse: arch/* NULL noise removal
Alexander Viro [Tue, 13 Jul 2004 04:02:45 +0000 (21:02 -0700)]
[PATCH] sparse: arch/* NULL noise removal

22 years ago[PATCH] sparse: signal annotation
Alexander Viro [Tue, 13 Jul 2004 04:02:33 +0000 (21:02 -0700)]
[PATCH] sparse: signal annotation

ss_sp in struct sigaltstack made __user
->si_addr and ->sival_ptr made __user
your ->sa_restorer and ->sa_handler changes propagated
users of these guys annotated on i386/amd64/alpha/sparc/sparc64

22 years ago[PATCH] sparse: alpha topology.h compile fix
Alexander Viro [Tue, 13 Jul 2004 04:02:21 +0000 (21:02 -0700)]
[PATCH] sparse: alpha topology.h compile fix

Missing bits of cpumask_t conversion

22 years ago[PATCH] sparse: alpha sparse infrastructure
Alexander Viro [Tue, 13 Jul 2004 04:02:10 +0000 (21:02 -0700)]
[PATCH] sparse: alpha sparse infrastructure

* added usual CHECK assignment in Makefile
* switched uaccess.h to __check_uptr()
* added L on long constants (ones missed earlier)
* added __user in osf_sys.c (duh - I've added __user to cast in
the initializer, but forgot to add it in declaration)

22 years ago[PATCH] sparse: alpha NULL noise removal
Alexander Viro [Tue, 13 Jul 2004 04:01:58 +0000 (21:01 -0700)]
[PATCH] sparse: alpha NULL noise removal

22 years ago[PATCH] sparse: drivers/sbus annotation
Alexander Viro [Tue, 13 Jul 2004 04:01:46 +0000 (21:01 -0700)]
[PATCH] sparse: drivers/sbus annotation

22 years ago[PATCH] sparse: drivers/sbus fixes
Alexander Viro [Tue, 13 Jul 2004 04:01:35 +0000 (21:01 -0700)]
[PATCH] sparse: drivers/sbus fixes

a) vfc is not 64bit-clean, marked as such in Kconfig
b) aurora is simply broken - still uses tqueues.  Marked as broken.
c) vfc does dereferencing of userland pointer, right after having
carefully copied the data to kernel space ;-)  Fixed.
d) vfc ->mmap() had missed prototype change.  Fixed.
e) BPP ioctls are misdeclared - they should've been _IO(...) instead
of _IOR(..., void).  Too late to fix, but we can at least make them
_IOR(..., char) - same value, but doesn't try to find sizeof(void).

22 years ago[PATCH] sparse: NULL noise removal in drivers/sbus
Alexander Viro [Tue, 13 Jul 2004 04:01:23 +0000 (21:01 -0700)]
[PATCH] sparse: NULL noise removal in drivers/sbus

22 years ago[PATCH] sparse: tms380tr.c fix
Alexander Viro [Tue, 13 Jul 2004 04:01:12 +0000 (21:01 -0700)]
[PATCH] sparse: tms380tr.c fix

tms380tr is used both by ISA and PCI drivers.  Enabling/disabling
DMA is done only for ISA ones (it's protected by if (dev->dma > 0) and
PCI ones leave it 0), but it's compiled unconditionally.  Which breaks
on platforms that don't have that ISA crap at all, but support PCI just
fine.  Code in question placed under ifdef CONFIG_ISA.

22 years ago[PATCH] sparse: compile fix for rrunner on big-endian platforms
Alexander Viro [Tue, 13 Jul 2004 04:01:01 +0000 (21:01 -0700)]
[PATCH] sparse: compile fix for rrunner on big-endian platforms

bitrot strikes again...

22 years ago[PATCH] sparse: saa fix
Alexander Viro [Tue, 13 Jul 2004 04:00:50 +0000 (21:00 -0700)]
[PATCH] sparse: saa fix

direct write to userland pointer.

22 years ago[PATCH] sparse: isdn compile fix for platforms with HZ > 1000
Alexander Viro [Tue, 13 Jul 2004 04:00:39 +0000 (21:00 -0700)]
[PATCH] sparse: isdn compile fix for platforms with HZ > 1000

Division by zero is an ugly thing...  We are safe wrt overflows,
since the maximal value we ever pass is 10000 - not enough to overflow
unless you've got a platform with HZ > 200000.

22 years ago[PATCH] sparse: usb ioctl cleanups
Alexander Viro [Tue, 13 Jul 2004 04:00:27 +0000 (21:00 -0700)]
[PATCH] sparse: usb ioctl cleanups

usb ioctls in compat_ioctl.c switched to compat_alloc_user_space()
and cleaned up; ioctl structures annotated.

22 years ago[PATCH] sparse: VIDIOCSWIN compat_ioctl fixes
Alexander Viro [Tue, 13 Jul 2004 04:00:16 +0000 (21:00 -0700)]
[PATCH] sparse: VIDIOCSWIN compat_ioctl fixes

In handling of VIDIOCSWIN for 32bit on 64bit platforms:
* switched to compat_alloc_user_space()
* fixed memory corruption in copying arguments from userland
* fixed arithmetic overflows
* added missing checks for get_user() results
  and corresponding returns with -EFAULT.

22 years ago[PATCH] sparse: switching afs to kvec
Alexander Viro [Tue, 13 Jul 2004 04:00:06 +0000 (21:00 -0700)]
[PATCH] sparse: switching afs to kvec

 - afs and rxrpc switched to kvec; definition of kvec moved to uio.h (duh).
 - afs/mntpt.c got missing cast added.

at that point afs is sparse-clean and rxrpc has only one remaining warning
(setsockopt from local variable, protected by set_fs()).

22 years agoMerge bk://cifs.bkbits.net/linux-2.5cifs
Linus Torvalds [Mon, 12 Jul 2004 17:20:03 +0000 (10:20 -0700)]
Merge bk://cifs.bkbits.net/linux-2.5cifs
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoSet DevMajor/DevMinor when querying info on remote char/block devices
Steve French [Mon, 12 Jul 2004 19:42:45 +0000 (14:42 -0500)]
Set DevMajor/DevMinor when querying info on remote char/block devices

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years agoSet Type field when creating block/char/pipe e.g. via mknod.
Steve French [Mon, 12 Jul 2004 18:47:18 +0000 (13:47 -0500)]
Set Type field when creating block/char/pipe e.g. via mknod.
Fixing problem mentioned by Jeremy Allison

remove spurious warning message logged on mount with credentials file (pointed
out by Richard Hughes)

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years agofix the null pointer sparse warning al viros way (resolving potential merge conflict)
Steve French [Mon, 12 Jul 2004 16:41:31 +0000 (11:41 -0500)]
fix the null pointer sparse warning al viros way (resolving potential merge conflict)

Signed-off-by: Steve French (sfrench@us.ibm.com)
22 years agoMerge bk://linux.bkbits.net/linux-2.5
Steve French [Mon, 12 Jul 2004 12:21:07 +0000 (05:21 -0700)]
Merge bk://linux.bkbits.net/linux-2.5
into hostme.bitkeeper.com:/repos/c/cifs/linux-2.5cifs

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-serial
Linus Torvalds [Mon, 12 Jul 2004 10:54:20 +0000 (03:54 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM PATCH] 1961/1: S3C2410 - fix for UART FIFO size calculation
Ben Dooks [Tue, 13 Jul 2004 01:03:03 +0000 (02:03 +0100)]
[ARM PATCH] 1961/1: S3C2410 - fix for UART FIFO size calculation

Patch from Ben Dooks

Fixes calculation of how many bytes in the RX/TX FIFOs.

Previous code failed to check wether the full flags
where set before returning the byte counter. This
should ensure that the serial driver behaves correctly
when the FIFO fills, and not just ignore the input
data

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Mon, 12 Jul 2004 10:52:29 +0000 (03:52 -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] 1962/1: S3C2410 - Rename MACH_VR1000 to Thorcom-VR1000
Ben Dooks [Tue, 13 Jul 2004 01:13:32 +0000 (02:13 +0100)]
[ARM PATCH] 1962/1: S3C2410 - Rename MACH_VR1000 to Thorcom-VR1000

Patch from Ben Dooks

Place correct machine name for VR1000 in machine
support file.

22 years ago[ARM PATCH] 1958/1: make collie use INIT_MACHINE
John Lenz [Tue, 13 Jul 2004 00:37:33 +0000 (01:37 +0100)]
[ARM PATCH] 1958/1: make collie use INIT_MACHINE

Patch from John Lenz

make collie use the new INIT_MACHINE macro instead of arch_initcall.

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Mon, 12 Jul 2004 10:42:23 +0000 (03:42 -0700)]
Merge http://lia64.bkbits.net/to-linus-2.5
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoJFS: Add d_hash and d_compare operations for case-insensitive names
Dave Kleikamp [Mon, 12 Jul 2004 08:31:38 +0000 (03:31 -0500)]
JFS: Add d_hash and d_compare operations for case-insensitive names

JFS supports OS/2-compatibility with case-insensitive file names.
To avoid multiple dentries for these names, jfs needs to provide
the d_hash and d_compare dentry_operations.  The operations are
only used when the volume was created in OS/2 or with the -O flag.

22 years ago[PATCH] ia64: Reduce TLB flushing during process migration
Jack Steiner [Mon, 12 Jul 2004 07:27:49 +0000 (00:27 -0700)]
[PATCH] ia64: Reduce TLB flushing during process migration

This patch adds an architecture-specific callout after explicit
processor migrations.  The callout allows architectures (or platforms)
to update TLB specific information (ex., cpu_vm_mask).

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoMerge tiger.hpl.hp.com:/data1/bk/vanilla/linux-2.5
David Mosberger [Mon, 12 Jul 2004 07:24:00 +0000 (00:24 -0700)]
Merge tiger.hpl.hp.com:/data1/bk/vanilla/linux-2.5
into tiger.hpl.hp.com:/data1/bk/lia64/to-linus-2.5

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

22 years ago[PATCH] ia64: build fixes for IA64_MCA_DEBUG_INFO
Keith Owens [Mon, 12 Jul 2004 06:28:17 +0000 (23:28 -0700)]
[PATCH] ia64: build fixes for IA64_MCA_DEBUG_INFO

Make mca.c build again with debug enabled.

Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PATCH] sparse: drivers/media/* annotation
Alexander Viro [Mon, 12 Jul 2004 02:09:51 +0000 (19:09 -0700)]
[PATCH] sparse: drivers/media/* annotation

22 years ago[PATCH] sparse: blind dereference of userland pointers in ac7110
Alexander Viro [Mon, 12 Jul 2004 02:09:37 +0000 (19:09 -0700)]
[PATCH] sparse: blind dereference of userland pointers in ac7110

22 years ago[PATCH] sparse: dvb_ringbuffer_pkt_write()/dvb_ringbuffer_write() annotation
Alexander Viro [Mon, 12 Jul 2004 02:09:26 +0000 (19:09 -0700)]
[PATCH] sparse: dvb_ringbuffer_pkt_write()/dvb_ringbuffer_write() annotation

copy_from_user() moved from dvb_ringbuffer_{write,pkt_write}() to callers;
these functions are always getting kernel pointer now.  "usermem" argument
killed, code annotated.

22 years ago[PATCH] sparse: drivers/isdn/* annotation
Alexander Viro [Mon, 12 Jul 2004 02:09:14 +0000 (19:09 -0700)]
[PATCH] sparse: drivers/isdn/* annotation

22 years ago[PATCH] sparse: blind dereference of userland pointers in divasproc
Alexander Viro [Mon, 12 Jul 2004 02:09:03 +0000 (19:09 -0700)]
[PATCH] sparse: blind dereference of userland pointers in divasproc