]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] cpqarray.c: seed the random number pool
Andrew Morton [Tue, 1 Jun 2004 01:51:39 +0000 (18:51 -0700)]
[PATCH] cpqarray.c: seed the random number pool

From: George France <france@handhelds.org>

Teach cpqarray.c to do the add_disk_randomness() thing.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sched: remove noinline workaround
Andrew Morton [Tue, 1 Jun 2004 01:51:28 +0000 (18:51 -0700)]
[PATCH] sched: remove noinline workaround

From: Ingo Molnar <mingo@elte.hu>

Now the x86_64 bitop memory clobber problem has been fixed we can remove
this.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] i386: add missing bitop.h memory clobbers
Andrew Morton [Tue, 1 Jun 2004 01:51:17 +0000 (18:51 -0700)]
[PATCH] i386: add missing bitop.h memory clobbers

From: Andi Kleen <ak@muc.de>

Add missing memory clobbers to find_first_bit() and find_first_zero_bit().

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix readahead handling in knfsd
Andrew Morton [Tue, 1 Jun 2004 01:51:07 +0000 (18:51 -0700)]
[PATCH] Fix readahead handling in knfsd

From: NeilBrown <neilb@cse.unsw.edu.au>

The read-ahead structures were not being initialised properly, and were not
having the use-count decremented after use, making them fairly useless
(since Apr 2002!).

From: Colin Gibbs <colin@gibbsonline.net>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix mca procfs stub
Andrew Morton [Tue, 1 Jun 2004 01:50:56 +0000 (18:50 -0700)]
[PATCH] fix mca procfs stub

From: Christoph Hellwig <hch@lst.de>

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] linux/timer.h needs linux/stddef.h
Andrew Morton [Tue, 1 Jun 2004 01:50:45 +0000 (18:50 -0700)]
[PATCH] linux/timer.h needs linux/stddef.h

From: Christoph Hellwig <hch@lst.de>

timer.h is using NULL and thus needs stddef.h, without it some drivers
break on alpha.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s/tkill/tgkill/ in /** documentation */
Andrew Morton [Tue, 1 Jun 2004 01:50:34 +0000 (18:50 -0700)]
[PATCH] s/tkill/tgkill/ in /** documentation */

From: bert hubert <ahu@ds9a.nl>

Documentation is in fact for tgkill and not for tkill

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] vesafb: vram boot option the same as 2.4.x
Andrew Morton [Tue, 1 Jun 2004 01:50:23 +0000 (18:50 -0700)]
[PATCH] vesafb: vram boot option the same as 2.4.x

From: Marc-Christian Petersen <m.c.p@kernel.linux-systeme.com>

Give the vesafb `vram' boot option the same (silly) syntax as 2.4 and
document it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Document checkstacks
Andrew Morton [Tue, 1 Jun 2004 01:50:12 +0000 (18:50 -0700)]
[PATCH] Document checkstacks

From: Diego Calleja =?ISO-8859-15?Q?Garc=EDa?= <diegocg@teleline.es>

It'll be much better if the world can know about the existence of
checkstacks.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pnpbios only makes sense for X86
Andrew Morton [Tue, 1 Jun 2004 01:50:02 +0000 (18:50 -0700)]
[PATCH] pnpbios only makes sense for X86

From: Christoph Hellwig <hch@lst.de>

Extracted from the Debian kernel package

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] SECURITY_SELINUX depends on NET
Andrew Morton [Tue, 1 Jun 2004 01:49:51 +0000 (18:49 -0700)]
[PATCH] SECURITY_SELINUX depends on NET

From: Adrian Bunk <bunk@fs.tum.de>

  LD      .tmp_vmlinux1
security/built-in.o(.text+0x97e4): In function `selnl_notify':
: undefined reference to `alloc_skb'
security/built-in.o(.text+0x988a): In function `selnl_notify':
: undefined reference to `netlink_broadcast'

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] POSIX_MQUEUE depends on NET
Andrew Morton [Tue, 1 Jun 2004 01:49:40 +0000 (18:49 -0700)]
[PATCH] POSIX_MQUEUE depends on NET

From: Adrian Bunk <bunk@fs.tum.de>

POSIX_MQUEUE requires netlink.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] md.c message during quiet boot
Andrew Morton [Tue, 1 Jun 2004 01:49:31 +0000 (18:49 -0700)]
[PATCH] md.c message during quiet boot

From: Ingo Molnar <mingo@elte.hu>

the patch below gets rid of a message that gets printed during FC2's quiet
bootup.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Missing pop-off in arch/i386/kernel/acpi/wakeup.S
Andrew Morton [Tue, 1 Jun 2004 01:49:20 +0000 (18:49 -0700)]
[PATCH] Missing pop-off in arch/i386/kernel/acpi/wakeup.S

From: <gniibe@m17n.org>

There is a missing pop-off after call of acpi_enter_sleep_state.  On
success, acpi_enter_sleep_state never returns, but on failure, it will
cause kernel OOPS.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Support for SC1100
Andrew Morton [Tue, 1 Jun 2004 01:49:10 +0000 (18:49 -0700)]
[PATCH] Support for SC1100

From: David Goodenough <david.goodenough@btconnect.com>

Add PCI device supoprt for the Geode SC1100-based Microtik Routerboard 230.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Mark cache_names __initdata
Andrew Morton [Tue, 1 Jun 2004 01:48:58 +0000 (18:48 -0700)]
[PATCH] Mark cache_names __initdata

From: Brian Gerst <bgerst@didntduck.org>

We don't need to keep the pointer array around after the caches are
initialized.  This doesn't affect the actual strings.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add FUTEX_CMP_REQUEUE futex op
Andrew Morton [Tue, 1 Jun 2004 01:48:47 +0000 (18:48 -0700)]
[PATCH] Add FUTEX_CMP_REQUEUE futex op

From: Jakub Jelinek <jakub@redhat.com>

FUTEX_REQUEUE operation has been added to the kernel mainly to improve
pthread_cond_broadcast which previously used FUTEX_WAKE INT_MAX op.
pthread_cond_broadcast releases internal condvar mutex before FUTEX_REQUEUE
operation, as otherwise the woken up thread most likely immediately sleeps
again on the internal condvar mutex until the broadcasting thread releases it.

Unfortunately this is racy and causes e.g.
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nptl/tst-cond16.c?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=glibc
to hang on SMP.

http://listman.redhat.com/archives/phil-list/2004-May/msg00023.html contains
analysis how the hang happens, the problem is if any thread does
pthread_cond_*wait in between releasing of the internal condvar mutex and
FUTEX_REQUEUE operation, a wrong thread might be awaken (and immediately go to
sleep again because it doesn't satisfy conditions for returning from
pthread_cond_*wait) while the right thread requeued on the associated mutex
and there would be nobody to wake that thread up.

The patch below extends FUTEX_REQUEUE operation with something FUTEX_WAIT
already uses:

FUTEX_CMP_REQUEUE is passed an additional argument which is the expected value
of *futex.  Kernel then while holding the futex locks checks if *futex !=
expected and returns -EAGAIN in that case, while if it is equal, continues
with a normal FUTEX_REQUEUE operation.  If the syscall returns -EAGAIN, NPTL
can fall back to FUTEX_WAKE INT_MAX operation which doesn't have this problem,
but is less efficient, while in the likely case that nobody hit the (small)
window the efficient FUTEX_REQUEUE operation is used.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add watchdog timer to iseries_veth driver
Andrew Morton [Tue, 1 Jun 2004 01:48:36 +0000 (18:48 -0700)]
[PATCH] Add watchdog timer to iseries_veth driver

From: David Gibson <david@gibson.dropbear.id.au>

Currently the iSeries virtual ethernet driver has no Tx watchdog timer.
This makes it vulnerable to clagging up if the other end of connection is
misbehaving - in particular if it is not giving timely hypervisor level
acks to our data frams.

This patch adds a watchdog timer which resets the connection to any lpar we
seem to be having trouble sending to.  With any luck the other end might
behave better after the reset.  If not, this will at least unclag the queue
for a while so we can keep talking to the lpars which are behaving
correctly.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: iseries bolted SLB fix
Andrew Morton [Tue, 1 Jun 2004 01:48:25 +0000 (18:48 -0700)]
[PATCH] ppc64: iseries bolted SLB fix

From: Anton Blanchard <anton@samba.org>

Legacy iseries has problems with the bolted vmalloc patch.  This patch
disables the optimisation on iseries and creates a slb_add_bolted helper
function.

Also, while we require all SLB entries to be context switched, we werent
informing the iseries hypervisor.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: SLB accounting fix
Andrew Morton [Tue, 1 Jun 2004 01:48:14 +0000 (18:48 -0700)]
[PATCH] ppc64: SLB accounting fix

From: Anton Blanchard <anton@samba.org>

Even though we have a variable containing the number of entries in the SLB,
we hardwire the value at boot.  We also dont use the variable in the head.S
fastpath handler.

This patch removes it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: bolt first vmalloc segment into SLB
Andrew Morton [Tue, 1 Jun 2004 01:48:03 +0000 (18:48 -0700)]
[PATCH] ppc64: bolt first vmalloc segment into SLB

From: Anton Blanchard <anton@samba.org>

Based on some profiles we noticed the first vmalloc region was being
continually cast out and replaced.  All modules end up there so it is one
of our hottest segments.

This patch bolts the vmalloc region into the second segment.  SLB misses on
an NFS benchmark were reduced by about 10% with this patch.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: reset iseries progress indicator on boot
Andrew Morton [Tue, 1 Jun 2004 01:47:52 +0000 (18:47 -0700)]
[PATCH] ppc64: reset iseries progress indicator on boot

From: Anton Blanchard <anton@samba.org>

Reset the progress indicator on iseries after boot.

Signed-off-by: John Engel <engel@us.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: add eeh_add_device_early/late
Andrew Morton [Tue, 1 Jun 2004 01:47:41 +0000 (18:47 -0700)]
[PATCH] ppc64: add eeh_add_device_early/late

From: Anton Blanchard <anton@samba.org>

Implement eeh_add_device_early and eeh_add_device_late, required for
the ppc64 PCI hotplug code.

Signed-off-by: Linas Vepstas <linas@us.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: iSeries fix virtual ethernet transmit block
Andrew Morton [Tue, 1 Jun 2004 01:47:31 +0000 (18:47 -0700)]
[PATCH] ppc64: iSeries fix virtual ethernet transmit block

From: Stephen Rothwell <sfr@canb.auug.org.au>

This patch fixes the virtual ethernet driver so that it will not block the
transmit queue indefinitely.  This patch appplies on top of the previous
patch from Rusty that removed skb_clone.  There is one white space fix in
hte middle of this - I hope that doesn't offend :-).

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: iSeries virtual ethernet minor optimisation
Andrew Morton [Tue, 1 Jun 2004 01:47:20 +0000 (18:47 -0700)]
[PATCH] ppc64: iSeries virtual ethernet minor optimisation

From: Stephen Rothwell <sfr@canb.auug.org.au>

This has only been adjusted by me to apply after David Gibson's patch to
add a watchdog timer.

The iseries_veth driver does skb_clone, it should only need to skb_get,
which is cheaper.  Should help performance a little.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: iSeries default config update
Andrew Morton [Tue, 1 Jun 2004 01:47:09 +0000 (18:47 -0700)]
[PATCH] ppc64: iSeries default config update

From: Stephen Rothwell <sfr@canb.auug.org.au>

This patch brings the iSeries default config up to date and changes some of
the options to what I use.  These are more sensible options (at least in my
opinion :-)).  Please apply.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radeonfb fix (non-8bpp clear doesn't use palette)
Andrew Morton [Tue, 1 Jun 2004 01:46:58 +0000 (18:46 -0700)]
[PATCH] radeonfb fix (non-8bpp clear doesn't use palette)

From: Jurriaan <thunder7@xs4all.nl>

I've used this patch since 2.6.5, and other users have confirmed it
solves their problems.

Basically, when not in 8bpp mode, radeonfb should use the palette when
clearing a region on screen.  This is how it's done in 2.4 and xfree, also.

Signed-off-by: Jurriaan Kalkman <thunder7@xs4all.nl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix missing RELOCs, add linux,phandle property
Paul Mackerras [Tue, 1 Jun 2004 01:36:07 +0000 (18:36 -0700)]
[PATCH] ppc64: fix missing RELOCs, add linux,phandle property

This fixes a couple of bugs in arch/ppc64/kernel/prom.c.  We were
missing a couple of places where we needed to use RELOC().  I added the
RELOC in one case, and in the other, moved the variable that we were
accessing onto the stack (and reduced its size).  (We use the variable
to get a property value, but we aren't interested in the value, just in
whether the property exists or not.  Since we pass the size of the
variable to the OF getprop call, it won't overflow.) The effect of
missing the RELOCs would be that random memory locations get used on IBM
pSeries systems (possibly causing random boot failures).

The other thing that this does is add a linux,phandle property to each
node, containing the phandle for the node, which is the token that OF
uses to identify the node.  Some nodes reference other nodes by means
of their phandle.  Without the linux,phandle property, userspace code
looking at the OF device-tree image in /proc/device-tree has no way of
knowing which other node is being referenced.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Export kthread primitives
Rusty Russell [Tue, 1 Jun 2004 01:35:56 +0000 (18:35 -0700)]
[PATCH] Export kthread primitives

kthreads are not just for breakfast anymore.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (creator)
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix x86-64 compilation without CONFIG_NUMA
Andi Kleen [Tue, 1 Jun 2004 01:35:45 +0000 (18:35 -0700)]
[PATCH] Fix x86-64 compilation without CONFIG_NUMA

This fixes compilation of x86-64 without CONFIG_NUMA again (got broken
by the previous patchkit)

22 years agosparse: use new generic __chk_user_ptr() macro in x86/ppc64/sparc*
Linus Torvalds [Tue, 1 Jun 2004 01:33:51 +0000 (18:33 -0700)]
sparse: use new generic __chk_user_ptr() macro in x86/ppc64/sparc*

Older versions of gcc were unhappy with our previous trick, and
just separating out the __CHECKER__ case made it much simpler.

22 years ago[PATCH] Improve `make checkstack'
Jörn Engel [Mon, 31 May 2004 15:36:02 +0000 (08:36 -0700)]
[PATCH] Improve `make checkstack'

On i386, stack usually grows with "sub $0x8,%esp" and shrinks with
"add $0x8,%esp" respectively.  In some cases, though, stack grows with
"add $0xffffff80,%esp" and shrinks with "sub $0xffffff80,%esp".
Obviously, we don't want to miss those cases.

Since in either case add and sub seem to be balanced and contain the
same parameter, we don't need a second regex.  We simply accept hex
numbers of up to 8 digits and treat them as negative numbers when the
sub appears to be a little too high.

...or so I thought.  But another day of testing proved me wrong again.

Some functions do stuff like "sub $0x10,%esp", ..., "add $0x20,%esp".
In other words, add and sub are *NOT* balanced.  Manual inspection
showed that 0x20 is a more realistic number, so I accept either
variant, just in case.  We pay for this with a bunch of duplicates in
our output, but that beats missing some stack hogs.

In the long run, this script has to be replaced by gcc options,
really.  Looking at the result and guessing back is such a stupid
idea.

Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.6
Linus Torvalds [Mon, 31 May 2004 13:47:44 +0000 (06:47 -0700)]
Merge bk://gkernel.bkbits.net/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] Better tulip handling on PA-RISC
Matthew Wilcox [Mon, 31 May 2004 19:01:40 +0000 (15:01 -0400)]
[PATCH] Better tulip handling on PA-RISC

This patch improves some of the handling of PA-RISC tulip cards.

 - Introduce HAS_SWAPPED_SEEPROM and NEEDS_FAKE_MEDIA_TABLE
 - Only trigger this code on GSC machines.  The pure PCI machines don't
   have these cards.
 - Allow the chip_name to be overridden in tulip_init_one().
 - Fix some indentation.
 - Handle the output from tulip_read_eeprom() better.

22 years ago[PATCH] Re: [Fwd: [PATCH] Stop queue on close in hdlcdrv]
Krzysztof Halasa [Mon, 31 May 2004 19:01:28 +0000 (15:01 -0400)]
[PATCH] Re: [Fwd: [PATCH] Stop queue on close in hdlcdrv]

> From: Ralf Baechle <ralf@linux-mips.org>
> Subject: [PATCH] Stop queue on close in hdlcdrv
> To: Jeff Garzik <garzik@gtf.org>
> Date: Tue, 4 May 2004 13:59:15 +0200
>
> The stop method of a driver should ensure queueing is stopped ...
>
> diff -u -r1.19 hdlcdrv.c
> --- suckage/drivers/net/hamradio/hdlcdrv.c 12 Apr 2004 20:23:32 -0000

the above means the following is needed for my drivers - please apply to 2.6:

22 years ago[PATCH] farsync needs <asm/io.h>
Christoph Hellwig [Mon, 31 May 2004 19:01:17 +0000 (15:01 -0400)]
[PATCH] farsync needs <asm/io.h>

i386 gets it implicitly from somewhere but some architectures don't.
Also move <asm/uaccess.h> down so we have asm after linux headers.

22 years ago[PATCH] s2io section fix
Andrew Morton [Mon, 31 May 2004 19:01:07 +0000 (15:01 -0400)]
[PATCH] s2io section fix

s2io_rem_nic() is marked __exit and is being referred to from .data.

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[PATCH] fix net/ixgb/ixgb_main.c warning
Andrew Morton [Mon, 31 May 2004 19:00:56 +0000 (15:00 -0400)]
[PATCH] fix net/ixgb/ixgb_main.c warning

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

drivers/net/ixgb/ixgb_main.c: In function `ixgb_intr':
drivers/net/ixgb/ixgb_main.c:1593: warning: unused variable `hw'
(catch by J. Cherry).

This happens because `hw' is only used when CONFIG_IXGB_NAPI is not set.
As `hw' is used only to have the code readable, we can use it for
!CONFIG_IXGB_NAPI too.

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years agoMerge redhat.com:/spare/repo/linux-2.6
Jeff Garzik [Mon, 31 May 2004 18:59:19 +0000 (14:59 -0400)]
Merge redhat.com:/spare/repo/linux-2.6
into redhat.com:/spare/repo/net-drivers-2.6

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

22 years ago[SPARC]: First stage of sparc32 sparse work.
David S. Miller [Mon, 31 May 2004 12:08:20 +0000 (05:08 -0700)]
[SPARC]: First stage of sparc32 sparse work.

22 years agoMerge bk://kernel.bkbits.net/davem/bluetooth-2.6
Linus Torvalds [Mon, 31 May 2004 11:10:55 +0000 (04:10 -0700)]
Merge bk://kernel.bkbits.net/davem/bluetooth-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
David S. Miller [Mon, 31 May 2004 11:03:57 +0000 (04:03 -0700)]
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6

22 years agoMerge http://linux-mh.bkbits.net/bluetooth-2.6
David S. Miller [Mon, 31 May 2004 11:03:02 +0000 (04:03 -0700)]
Merge http://linux-mh.bkbits.net/bluetooth-2.6
into kernel.bkbits.net:/home/davem/bluetooth-2.6

22 years ago[Bluetooth] Add quirk for broken RTX Telecom based dongles
Marcel Holtmann [Tue, 1 Jun 2004 01:34:49 +0000 (03:34 +0200)]
[Bluetooth] Add quirk for broken RTX Telecom based dongles

Some RTX Telecom based USB dongles offer SCO support, but their
implementation is broken. This patch disables the use of the ISOC
interface for these devices.

22 years ago[Bluetooth] Add dynamic channel allocation for RFCOMM server sockets
Marcel Holtmann [Tue, 1 Jun 2004 01:02:50 +0000 (03:02 +0200)]
[Bluetooth] Add dynamic channel allocation for RFCOMM server sockets

If no channel is specified for a RFCOMM server socket, it will search
for the next free one and automaticly bind to it.

Proposed by Stephen Crane <steve.crane@rococosoft.com>

22 years ago[Bluetooth] Add dynamic PSM allocation for L2CAP server sockets
Marcel Holtmann [Tue, 1 Jun 2004 00:52:34 +0000 (02:52 +0200)]
[Bluetooth] Add dynamic PSM allocation for L2CAP server sockets

If no PSM is specified for a L2CAP server socket, it will search
for the next free one and automaticly bind to it.

Proposed by Stephen Crane <steve.crane@rococosoft.com>

22 years ago[Bluetooth] Allocate protocol number for HIDP support
Marcel Holtmann [Tue, 1 Jun 2004 00:44:36 +0000 (02:44 +0200)]
[Bluetooth] Allocate protocol number for HIDP support

This patch allocates the next free protocol number for the upcoming
HIDP support.

22 years ago[Bluetooth] Update Kconfig help entries
Marcel Holtmann [Tue, 1 Jun 2004 00:34:23 +0000 (02:34 +0200)]
[Bluetooth] Update Kconfig help entries

This patch updates the address of the BlueZ project and changes
some wording of the help entries.

22 years ago[Bluetooth] Remove CVS tags and cleanup the code
Marcel Holtmann [Tue, 1 Jun 2004 00:16:59 +0000 (02:16 +0200)]
[Bluetooth] Remove CVS tags and cleanup the code

Since we are using Bitkeeper the CVS tags are useless. This patch
removes them and makes some whitespace cleanups.

22 years ago[Bluetooth] Move function exports out of syms.c
Marcel Holtmann [Mon, 31 May 2004 23:04:38 +0000 (01:04 +0200)]
[Bluetooth] Move function exports out of syms.c

With Linux 2.6 there is no need to keep the function exports in a
central file and thus the use of syms.c makes no real sense. Remove
it and add the EXPORT_SYMBOL calls to the functions they belong to.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Mon, 31 May 2004 10:30:21 +0000 (03:30 -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] Fix up SOC PCMCIA socket timing calculations
Russell King [Mon, 31 May 2004 12:15:46 +0000 (13:15 +0100)]
[PCMCIA] Fix up SOC PCMCIA socket timing calculations

The timing calculations used by the PXA platforms did not always take
account of the timings handed to us by PCMCIA, and where it did, it
assumed IO timings for memory windows.

We fix this, and provide a generic function which calculates the
required timings (in nanoseconds) for IO, memory and attribute
windows.  The SOC drivers only have to convert this information to
whatever format the hardware requires to achieve at least these
timing parameters.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Mon, 31 May 2004 10:28:18 +0000 (03:28 -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] Correct permissions on several ARMv6 files.
Russell King [Mon, 31 May 2004 12:47:23 +0000 (13:47 +0100)]
[ARM] Correct permissions on several ARMv6 files.

22 years ago[ARM] Eliminate meminfo 'end' element
Russell King [Mon, 31 May 2004 12:41:16 +0000 (13:41 +0100)]
[ARM] Eliminate meminfo 'end' element

Some machines decided to initialise this element.  It's not necessary
since find_memend_and_nodes() initialises this itself.  However,
'end' is not required if we initialise high_memory in this function
rather than waiting until mem_init() is called.

22 years ago[SPARC]: Set sparse arch defines explicitly.
David S. Miller [Mon, 31 May 2004 10:09:43 +0000 (03:09 -0700)]
[SPARC]: Set sparse arch defines explicitly.

22 years ago[PATCH] ppc32: reorg DMA API, add coherent alloc in irq
Andrew Morton [Mon, 31 May 2004 09:56:32 +0000 (02:56 -0700)]
[PATCH] ppc32: reorg DMA API, add coherent alloc in irq

From: Eugene Surovegin <ebs@ebshome.net>

Put back DECLARE_PCI_UNMAP_???  and friends accidentaly removed during DMA
API reorganization.

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Mon, 31 May 2004 09:36:41 +0000 (02:36 -0700)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years ago[SPARC64]: Lots of sparse work for arch/sparc64.
David S. Miller [Mon, 31 May 2004 09:25:51 +0000 (02:25 -0700)]
[SPARC64]: Lots of sparse work for arch/sparc64.

22 years agosparse: make x86 and ppc64 set the architecture-specific #define's
Linus Torvalds [Mon, 31 May 2004 08:18:46 +0000 (01:18 -0700)]
sparse: make x86 and ppc64 set the architecture-specific #define's
explcitly.

sparse doesn't set any arch defines itself.

22 years ago[PATCH] Avoid excessive stack usage in NFS
Peter Osterlund [Mon, 31 May 2004 08:11:45 +0000 (01:11 -0700)]
[PATCH] Avoid excessive stack usage in NFS

Assigning '*wdata' with a dynamic initializer creates a
temporary structure copy on the stack, and then the final
data is initialized with a "memcpy()".

As a result, these NFS functions use more than 800 bytes
of stack-space.

Changing the code to just do a memset followed by explicit
initialization of the non-zero member variables takes the
stack usage down to 36 bytes.

Here is a patch that does exactly that.

22 years ago[SPARC64]: __volatile --> __volatile__
David S. Miller [Mon, 31 May 2004 07:44:34 +0000 (00:44 -0700)]
[SPARC64]: __volatile --> __volatile__

22 years ago[SPARC64]: Annotate 64-bit constants with 'UL'
David S. Miller [Mon, 31 May 2004 07:41:04 +0000 (00:41 -0700)]
[SPARC64]: Annotate 64-bit constants with 'UL'

22 years ago[SPARC64]: Fix NR_IRQS check in hardirq.h
David S. Miller [Mon, 31 May 2004 06:06:15 +0000 (23:06 -0700)]
[SPARC64]: Fix NR_IRQS check in hardirq.h

22 years agoppc64: more user address fixups.
Linus Torvalds [Mon, 31 May 2004 05:35:54 +0000 (22:35 -0700)]
ppc64: more user address fixups.

Removed one (harmless) direct user pointer access.

22 years agoppc64: add more user annotations to ptrace.c
Linus Torvalds [Mon, 31 May 2004 05:21:49 +0000 (22:21 -0700)]
ppc64: add more user annotations to ptrace.c

22 years agoppc64: fix more user pointers in signal handling
Linus Torvalds [Mon, 31 May 2004 05:17:16 +0000 (22:17 -0700)]
ppc64: fix more user pointers in signal handling

22 years agosparse: make x86 user pointer checks stricter.
Linus Torvalds [Mon, 31 May 2004 04:19:40 +0000 (21:19 -0700)]
sparse: make x86 user pointer checks stricter.

Also use "__force" when forcing the user address to "unsigned long"
for the address limit check.

22 years agoppc64: missing __user annotations noticed by stricter checks.
Linus Torvalds [Mon, 31 May 2004 03:41:08 +0000 (20:41 -0700)]
ppc64: missing __user annotations noticed by stricter checks.

22 years agoppc64: check more of the user access functions for proper arguments.
Linus Torvalds [Mon, 31 May 2004 03:39:30 +0000 (20:39 -0700)]
ppc64: check more of the user access functions for proper arguments.

22 years agosparse: add "__force" type attribute for forcing a cast.
Linus Torvalds [Mon, 31 May 2004 03:38:48 +0000 (20:38 -0700)]
sparse: add "__force" type attribute for forcing a cast.

22 years ago[PATCH] sparse: asus_acpi dereference of userland pointers
Alexander Viro [Mon, 31 May 2004 02:59:55 +0000 (19:59 -0700)]
[PATCH] sparse: asus_acpi dereference of userland pointers

Direct sscanf() on userland buffer in procfs ->write_proc().  Fixed.

22 years ago[PATCH] sparse: reiserfs annotation
Alexander Viro [Sun, 30 May 2004 17:38:17 +0000 (10:38 -0700)]
[PATCH] sparse: reiserfs annotation

Everything straigthforward and takes care of almost all sparse warnings
in fs/reiserfs/*.

22 years ago[PATCH] trivial annotation for arch/i386/kernel/*
Alexander Viro [Sun, 30 May 2004 16:17:04 +0000 (09:17 -0700)]
[PATCH] trivial annotation for arch/i386/kernel/*

Several places in arch/i386/kernel were still un-annotated - they didn't
trip copy_.._user(), so they stayed alive.  Caught and killed.

That's not all - there's a big cluster of them in vm86.c, but I haven't
looked into that code yet.

22 years agoppc64: mark the "regshere" marker with proper type information.
Linus Torvalds [Sun, 30 May 2004 15:00:08 +0000 (08:00 -0700)]
ppc64: mark the "regshere" marker with proper type information.

22 years ago[PATCH] sparse alpha: the rest of it
Alexander Viro [Sun, 30 May 2004 14:35:38 +0000 (07:35 -0700)]
[PATCH] sparse alpha: the rest of it

A bunch of "return in void function" dealt with, removed bogus extern
from definition of __load_new_mm_context(), sanitized fscking ugly
CROSS_64K() helper (even if sparse doesn't segfault on that anymore,
it's _still_ fscking ugly).

22 years ago[PATCH] sparse alpha: utimes()
Alexander Viro [Sun, 30 May 2004 14:34:09 +0000 (07:34 -0700)]
[PATCH] sparse alpha: utimes()

... and that's where I'd found do_utimes() crap before I went
grepping ;-)

22 years ago[PATCH] sparse alpha: trivial parts of __user annotation
Alexander Viro [Sun, 30 May 2004 14:33:58 +0000 (07:33 -0700)]
[PATCH] sparse alpha: trivial parts of __user annotation

Trivial stuff in arch/alpha annotated; in two cases of
osf_proplist_syscall() dereferencing userland pointers replaced with
get_user

22 years ago[PATCH] sparse alpha: #if abuses
Alexander Viro [Sun, 30 May 2004 14:33:47 +0000 (07:33 -0700)]
[PATCH] sparse alpha: #if abuses

#if where #ifdef should've been

22 years ago[PATCH] sparse alpha: long constants
Alexander Viro [Sun, 30 May 2004 14:33:36 +0000 (07:33 -0700)]
[PATCH] sparse alpha: long constants

Long constants marked as such

22 years ago[PATCH] sparse alpha: beginning of __user annotation
Alexander Viro [Sun, 30 May 2004 14:33:26 +0000 (07:33 -0700)]
[PATCH] sparse alpha: beginning of __user annotation

Copying primitives annotated.

22 years agoppc64: more explicitly typed constants
Linus Torvalds [Sun, 30 May 2004 14:33:10 +0000 (07:33 -0700)]
ppc64: more explicitly typed constants

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Sun, 30 May 2004 13:31:17 +0000 (06:31 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Sun, 30 May 2004 13:30:21 +0000 (06:30 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Sun, 30 May 2004 13:28:41 +0000 (06:28 -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] Add two more missing __user annotations for sparse.
Russell King [Sun, 30 May 2004 15:40:37 +0000 (16:40 +0100)]
[ARM] Add two more missing __user annotations for sparse.

22 years ago[PATCH] sparse: SIOCGIFCONF handling - the rest of it
Alexander Viro [Sun, 30 May 2004 13:09:42 +0000 (06:09 -0700)]
[PATCH] sparse: SIOCGIFCONF handling - the rest of it

Fixed the type of SIOCGIFCONF callback; inet instance was already
correctly annotated, decnet one was _not_.  Moreover, decnet callback
needed fixing - dereferencing userland address.

22 years ago[PATCH] sparse: tty_driver ->write_proc()
Alexander Viro [Sun, 30 May 2004 13:09:31 +0000 (06:09 -0700)]
[PATCH] sparse: tty_driver ->write_proc()

Made ->write_proc in tty_driver suitable for procfs write callback

22 years ago[PATCH] sparse: n_tty annotation
Alexander Viro [Sun, 30 May 2004 13:09:21 +0000 (06:09 -0700)]
[PATCH] sparse: n_tty annotation

n_tty annotated, ldisc_struct ->read() and ->write() got __user
on their buf argument.

22 years ago[PATCH] sparse: vt and friends
Alexander Viro [Sun, 30 May 2004 13:09:10 +0000 (06:09 -0700)]
[PATCH] sparse: vt and friends

vt, vt_ioctl, consolemap and selection annotated, struct unimapdesc
and struct consolefontdesc got __user on their pointer members.

22 years ago[PATCH] sparse: tty_ioctl annotation
Alexander Viro [Sun, 30 May 2004 13:08:59 +0000 (06:08 -0700)]
[PATCH] sparse: tty_ioctl annotation

tty_ioctl.c annotation

22 years ago[PATCH] sparse: tty_io annotation
Alexander Viro [Sun, 30 May 2004 13:08:48 +0000 (06:08 -0700)]
[PATCH] sparse: tty_io annotation

tty_io.c annotated

22 years ago[PATCH] sparse: fs/compat.c::copy_iocb() cleanup
Alexander Viro [Sun, 30 May 2004 13:08:37 +0000 (06:08 -0700)]
[PATCH] sparse: fs/compat.c::copy_iocb() cleanup

That "u64" in there is actually struct iocb __user *.  Changed
prototype, killed casts in body and caller...

22 years ago[PATCH] sparse: amd64 - rest
Alexander Viro [Sun, 30 May 2004 13:08:26 +0000 (06:08 -0700)]
[PATCH] sparse: amd64 - rest

return void in floppy.h and "conditionally long" constants in page.h.

Would be useful to teach as(1) about C notation for long...

22 years ago[PATCH] sparse: amd64 - long constants
Alexander Viro [Sun, 30 May 2004 13:08:15 +0000 (06:08 -0700)]
[PATCH] sparse: amd64 - long constants

Long constants marked as such.

22 years ago[PATCH] sparse: amd64 - #if abuse fixes
Alexander Viro [Sun, 30 May 2004 13:08:04 +0000 (06:08 -0700)]
[PATCH] sparse: amd64 - #if abuse fixes

#if where #ifdef should've been.  Fixed.

22 years ago[PATCH] sparse: amd64 - more trivial annotations
Alexander Viro [Sun, 30 May 2004 13:07:53 +0000 (06:07 -0700)]
[PATCH] sparse: amd64 - more trivial annotations

22 years ago[PATCH] sparse: amd64 annotations - trivial part
Alexander Viro [Sun, 30 May 2004 13:07:42 +0000 (06:07 -0700)]
[PATCH] sparse: amd64 annotations - trivial part

Annotation of amd64 code - just adding __user where needed...

22 years ago[PATCH] sparse: amd64 annotation - beginning
Alexander Viro [Sun, 30 May 2004 13:07:30 +0000 (06:07 -0700)]
[PATCH] sparse: amd64 annotation - beginning

Annotated basic primitives (copy_.._user, get_user, ...).
Functions got __user in prototypes, macros (in uaccess.h) got a
conditional check - see CHECK_UPTR() below.  If you have more elegant
way to deal with the macros - please, tell.