]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] trivial: arch_i386_kernel_scx200.c: kill duplicate #include
Rusty Russell [Sun, 11 Jul 2004 02:33:12 +0000 (19:33 -0700)]
[PATCH] trivial: arch_i386_kernel_scx200.c: kill duplicate #include

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

via scripts/checkincludes.pl:

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: remove warning in ftape
Rusty Russell [Sun, 11 Jul 2004 02:33:01 +0000 (19:33 -0700)]
[PATCH] trivial: remove warning in ftape

From:  Chris Heath <chris@heathens.co.nz>

Here's a trivial patch that removes an unused-variable warning in ftape.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: RCS___IGNORE quilt backup files
Rusty Russell [Sun, 11 Jul 2004 02:32:49 +0000 (19:32 -0700)]
[PATCH] trivial: RCS___IGNORE quilt backup files

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

This patch excludes the .pc directory from the same things that
SCCS/BitKeeper/.svn/CVS files are excluded from.  The .pc directory is used
for backup/reference files by quilt, a patch mangling system conceptually
derived from akpm's patch scripts.  Excluding the .pc directory is handy,
because otherwise old versions of files found in there tend to end up at the
front of the TAGS index.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: little arch_i386_kernel_timers_timer_none.c fix
Rusty Russell [Sun, 11 Jul 2004 02:32:38 +0000 (19:32 -0700)]
[PATCH] trivial: little arch_i386_kernel_timers_timer_none.c fix

fixes a cut'n'paste error...

Signed-off-by: Rusty Trivial Russell <trivial@rustcorp.com.au>
Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: scripts_kernel-doc: missing bracket.
Rusty Russell [Sun, 11 Jul 2004 02:32:27 +0000 (19:32 -0700)]
[PATCH] trivial: scripts_kernel-doc: missing bracket.

From:  <adobriyan@mail.ru>

Fix missing bracket when parameter to be documented is a pointer to function.

int (* resume (struct usb_interface *intf);

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] trivial: scripts_kernel-doc: ignoring embedded structs shouldn't be
Rusty Russell [Sun, 11 Jul 2004 02:32:15 +0000 (19:32 -0700)]
[PATCH] trivial: scripts_kernel-doc: ignoring embedded structs shouldn't be

From:  <adobriyan@mail.ru>

Imagine you have a code similar to

  struct foo {
   union {
   struct tcphdr   *th;
   } h;
   union {
   struct iphdr    *iph;
   } nh;
  };

kernel-doc in it's current state will happily eat everything from first '{' to
last '}' and nobody will see parameter 'h' in documentation (look at
include/linux/skbuff.h:struct sk_buff for real world example).

So, fix the greedy regexp.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] int return to unsigned in smb_proc_readdir_long() in fs/smbfs/proc.c
Mika Kukkonen [Sun, 11 Jul 2004 02:32:04 +0000 (19:32 -0700)]
[PATCH] int return to unsigned in smb_proc_readdir_long() in fs/smbfs/proc.c

  CC [M]  fs/smbfs/proc.o
fs/smbfs/proc.c: In function `smb_proc_readdir_long':
fs/smbfs/proc.c:2313: warning: comparison of unsigned expression < 0 is always false
fs/smbfs/proc.c:2467: warning: comparison of unsigned expression < 0 is always false

The first one is pretty dangerous looking, as smb_proc_readdir_long() can
return several negative error values and all those are converted to
unsigned and then erronously pass the test on line 2313.  Chris Wright gave
it a quick look and we did not see immediately if this can be remotely
exploited, but it looks pretty scary.

The second warning on line 2467 is just extra so I just removed it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Use NULL instead of integer 0 in security/selinux/
Chris Wright [Sun, 11 Jul 2004 02:31:53 +0000 (19:31 -0700)]
[PATCH] Use NULL instead of integer 0 in security/selinux/

Fixup another round of sparse warnings of the type:
warning: Using plain integer as NULL pointer
Acked by Stephen.

From: Mika Kukkonen <mika@osdl.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] FAT: update document
Hirofumi Ogawa [Sun, 11 Jul 2004 02:31:42 +0000 (19:31 -0700)]
[PATCH] FAT: update document

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] cfq: bad allocation
Jens Axboe [Sun, 11 Jul 2004 02:31:31 +0000 (19:31 -0700)]
[PATCH] cfq: bad allocation

Arjan (sensibly) put a might_sleep() in mempool_alloc() and it caught a bad
cfq usage.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] update kernel-parameters.txt for the noexec option
Andrew Morton [Sun, 11 Jul 2004 02:31:19 +0000 (19:31 -0700)]
[PATCH] update kernel-parameters.txt for the noexec option

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kallsyms ppc32 fix
Keith Owens [Sun, 11 Jul 2004 02:31:08 +0000 (19:31 -0700)]
[PATCH] kallsyms ppc32 fix

PPC small data area base symbols shift between kallsyms phases 1 and 2, which
makes the kallsyms data unstable.  Exclude them from the kallsyms list.

Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove dead isdn pcmcia code
Christoph Hellwig [Sun, 11 Jul 2004 02:30:57 +0000 (19:30 -0700)]
[PATCH] remove dead isdn pcmcia code

The <driver>_config function called just before clear DEV_CONFIG, and
DEV_STALE_LINK isn't set anywhere else.  This is a copy & paste thing found
in all old pcmcia drivers.

The patch has been sent to the isdn list ages ago but I didn't get any
response.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Use llseek instead of f_pos= for directory seeking
Neil Brown [Sun, 11 Jul 2004 02:30:45 +0000 (19:30 -0700)]
[PATCH] Use llseek instead of f_pos= for directory seeking

nfsd currently just sets f_pos when seeking in a directory.  This bypasses
any checking and other handling that a filesystem might want to do.

So instead, we define "vfs_llseek" to be an exported "llseek", and use
that, both to seek at the start, and the find the new position at the end.

Thanks to
    "Derrick Schommer" <dschommer@acopia.com>
    "Trond Myklebust" <trond.myklebust@fys.uio.no>

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_LEGACY dependencies
Adrian Bunk [Sun, 11 Jul 2004 02:30:34 +0000 (19:30 -0700)]
[PATCH] Fix MCA_LEGACY dependencies

The patch below against 2.6.7-mm5 fixes more compile errors with
MCA_LEGACY=n.

Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
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] kAFS automount support
David Howells [Sun, 11 Jul 2004 02:30:22 +0000 (19:30 -0700)]
[PATCH] kAFS automount support

Here's a patch to allow the kAFS filesystem to use the automount facility
patch presented in a previous email.

It allows me to mount an AFS root volume on /afs and then just walk through
the directory structure causing referenced volumes to be automounted and
autoumounted.

For instance, if I do:

[root@andromeda root]# mount -t afs \#root.afs. /afs
[root@andromeda root]# ls /afs
asd  cambridge  cambridge.redhat.com  grand.central.org
[root@andromeda root]# ls /afs/cambridge
afsdoc
[root@andromeda root]# ls /afs/cambridge/afsdoc/
ChangeLog  html  LICENSE  pdf  RELNOTES-1.2.2

And then look in the mountpoint catalogue, I see:

[root@andromeda root]# cat /proc/mounts
...
#root.afs. /afs afs rw 0 0
#root.cell. /afs/cambridge.redhat.com afs rw 0 0
#afsdoc. /afs/cambridge.redhat.com/afsdoc afs rw 0 0

Then after waiting a few minutes:

[root@andromeda root]# cat /proc/mounts
...
#root.afs. /afs afs rw 0 0

Is all that remains.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] intrinsic automount and mountpoint degradation support
David Howells [Sun, 11 Jul 2004 02:30:11 +0000 (19:30 -0700)]
[PATCH] intrinsic automount and mountpoint degradation support

Here's a patch that I worked out with Al Viro that adds support for a
filesystem (such as kAFS) to perform automounting intrinsically without the
need for a userspace daemon.  It also adds support for such mountpoints to be
degraded at the filesystem's behest until they've been untouched long enough
that they'll be removed.

I've a patch (to follow) that removes some #ifdef's from fs/afs/* thus
allowing it to make use of this facility.

There are five pieces to this:

 (1) Any interested filesystem needs to have at least one list to which
     expirable mountpoints can be added.

     Access to this list is governed by the vfsmount_lock.

 (2) When a filesystem wants to create an expirable mount, it calls
     do_kern_mount() to get a handle on the filesystem it wants mounting, and
     then calls do_add_mount() to mount that filesystem on the designated
     mountpoint, supplying the list mentioned in (1) to which the vfsmount
     will be added.

     In kAFS's case, the mountpoint is a directory with a follow_link() method
     defined (fs/afs/mntpt.c). This uses the struct nameidata supplied as an
     argument as a determination of where the new filesystem should be
     mounted.

 (3) When something using a vfsmount finishes dealing with it, it calls
     mntput(). This unmarks the vfsmount for immediate expiry.

     There are two criteria for determining if a vfsmount may be expired - it
     mustn't be marked as in use for anything other than being a child of
     another vfsmount, and it must have an expiry mark against it already.

 (4) The filesystem then determines the policy on expiring the mounts created
     in (2). When it feels the need to, it passes the list mentioned in (1) to
     mark_mounts_for_expiry() to request everything on the list be expired.

     This function examines each mount listed. If the vfsmount meets the
     criteria mentioned in (3), then the vfsmount is deleted from the
     namespace and disposed of as for unmounting; otherwise the vfsmount is
     left untouched apart from now bearing an expiration mark if it didn't
     before.

     kAFS's expiration policy is simply to invoke this process at regular
     intervals for all the mounts on its list.

 (5) An expiration facility is also provided to userspace: by calling umount()
     with a MNT_EXPIRE flag, it can make a request to unmount only if the
     mountpoint hasn't been used since the last request and isn't in use now.

     This allows expiration to be driven by userspace instead of by the
     kernel if that is desirable.

     This also means that do_umount() has to use a different version of
     path_release() to everyone else... it can't call mntput() as that clears
     the expiration flag, thus rendering this unachievable; so it's version of
     path_release() calls _mntput(), which doesn't do the clear.

My original idea was to give the kernel more knowledge of automounted
things. This avoids a certain problem with stat() on a mountpoint causing it
to mount (for example, do "ls -l /afs" on a machine with kAFS), but Al wanted
it done this way.

> Why is autofs unsuitable?

Because:

 (1) Autofs is flat; AFS requires a tree - mounts on mounts on mounts on
     mounts...

 (2) AFS holds the data as to what the mountpoints are and where they go, and
     these may be cross-links to subtrees beyond your control. It's also not
     trivial to extract a list of mountpoints as is required for autofs.

 (3) Autofs is not namespace safe.

 (4) Ducking back to userspace to get that to do the mount is pretty tricky if
     namespaces are involved.

In fact, autofs may well want to make use of this facility.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kbuild: sort modules for modpost and modinst
Brian Gerst [Sun, 11 Jul 2004 02:29:59 +0000 (19:29 -0700)]
[PATCH] kbuild: sort modules for modpost and modinst

Process modules in sorted order during modpost and modules install.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kbuild: clean up module install rules
Brian Gerst [Sun, 11 Jul 2004 02:29:48 +0000 (19:29 -0700)]
[PATCH] kbuild: clean up module install rules

Consolidate rules for installing internal and external modules.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: update lparcfg to use seq_file
Paul Mackerras [Sun, 11 Jul 2004 02:29:37 +0000 (19:29 -0700)]
[PATCH] ppc64: update lparcfg to use seq_file

From: Will Schmidt <willschm@us.ibm.com>

This patch includes updates and cleanup for the PPC64 proc/lparcfg interface.
     - use seq_file's seq_printf for output
     - remove redundant e2a function. (use viopath.c's instead)
     - change to Kconfig to allow building as a module.
     - export required symbols from LparData.c

    Pass # 2 updates..
      - Per Pauls request I've removed the vpurr references, and left
just a stub function get_purr().
      - this should apply clean to latest linus tree.  (test-applied against
2.6.7-rc3).

    Pass # 3 updates...
      - Correcting my previously incorrect description of the
lparcfg_count_active_processors() function..
This is for the cases where we have some number of virtual
processors that are different than the total number of threads
in the system.  (i.e. systemcfg->processorcount isnt the desired
value for partition_active_processors)
      - moved e2a function into its own file in arch/ppc64/lib.
      - changed lparcfg_count_active_processors() to use a while loop
instead of a for loop.
      - removed redundant of_node_put in lparcfg_count_active_processors().
      - removed unneeded parms from get-system-parameter rtas_call.

Signed-off-by: Will Schmidt <willschm@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: enable EEH on PCI host bridges
Paul Mackerras [Sun, 11 Jul 2004 02:29:25 +0000 (19:29 -0700)]
[PATCH] ppc64: enable EEH on PCI host bridges

On recent pSeries systems, EEH needs to be enabled even on PCI Host Bridges
(PHB's).  If not enabled, then ordinary PCI probing (config-space
reads/writes to the bridges) will generate firmware error messages,
possibly a very large number of messages for systems with large numbers of
pci slots.

Signed-off-by: Linas Vepstas <linas@linas.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix unbalanced dev_get/put calls in EEH code
Paul Mackerras [Sun, 11 Jul 2004 02:29:14 +0000 (19:29 -0700)]
[PATCH] ppc64: fix unbalanced dev_get/put calls in EEH code

This patch fixes some unbalanced usage of pci_dev_get()/pci_dev_put() calls
in the eeh code.  The old code had too many calls to dev_put, which could
cause memory structs to be freed prematurely, possibly leading to bad bad
pointer derefs in certain cases.

Signed-off-by: Linas Vepstas <linas@linas.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: uninline some user copy routines
Anton Blanchard [Sun, 11 Jul 2004 02:29:02 +0000 (19:29 -0700)]
[PATCH] ppc64: uninline some user copy routines

gcc 3.5 is complaining about the size of copy_from_user.  It turns out it
is rather large and putting it out of line saves us about 30kB on a default
kernel build.

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] ppc32: CPM UART fixes
Kumar Gala [Sun, 11 Jul 2004 02:28:51 +0000 (19:28 -0700)]
[PATCH] ppc32: CPM UART fixes

Here is a patch to fix some bugs with the current CPM UART code, Tom Rini
has seen this and ok'd it.

* Fixes need to config both SMC1 & SCC1
* Fixes buffer descriptor wrapping issue in set_termios
* Fixes confusion in Kconfig regarding CPM1 vs CPM2

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Pantelis Antoniou <panto@intracom.gr>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: serial console autodetection
Olaf Hering [Sun, 11 Jul 2004 02:28:39 +0000 (19:28 -0700)]
[PATCH] ppc32: serial console autodetection

We have something like this in our kernel since many months.  It sets the
console device to what OF uses.  ppc64 does the same, and it works ok.
serial is found on CHRP, ch-a is used on all powermacs.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] quota: inode->i_flags locking fixes
Jan Kara [Sun, 11 Jul 2004 02:28:28 +0000 (19:28 -0700)]
[PATCH] quota: inode->i_flags locking fixes

The patch fixes locking of i_flags.  It removes S_QUOTA flag from i_flags
because it was almost unused and updating it on some places correctly
(under i_sem) would be tricky.  Note that accessing of S_NOQUOTA flag is
serialized by dqptr_sem and so we can reliably tested without i_sem.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[ARM] Fix two bugs in Acorn expansion card subsystem
Russell King [Sun, 11 Jul 2004 01:00:54 +0000 (02:00 +0100)]
[ARM] Fix two bugs in Acorn expansion card subsystem

- Setup synchronous expansion card resource.
- Fix order of IRQ and FIQ mask/offsets.

22 years ago[ARM] Fix allocation of 8390 ethernet device structure in etherh.
Russell King [Sat, 10 Jul 2004 15:53:29 +0000 (16:53 +0100)]
[ARM] Fix allocation of 8390 ethernet device structure in etherh.

22 years ago[ARM] Remove asm/hardware.h from SMC91x ethernet driver.
Russell King [Sat, 10 Jul 2004 15:42:15 +0000 (16:42 +0100)]
[ARM] Remove asm/hardware.h from SMC91x ethernet driver.

This include isn't required for ARM builds either.

22 years agoBack out smc91x late collision "performance" hack.
Russell King [Thu, 8 Jul 2004 16:03:57 +0000 (17:03 +0100)]
Back out smc91x late collision "performance" hack.

Apparantly, the reason for this change is that it gives "much less
NFS stalls with a SMC91C96 on a 10/100MB switch."

Alan Cox's comments on this is:
"spec says 16 collision retries max _ever_.  I bet his 'broken
switch' is a case of half v full duplex" and a recommendation to
remove it.

Also, since the change does not limit the number of times we may
retry to send the packet, I think this code opens a potential DoS
attack against network which has a machine connected running this
code.

22 years ago[ARM PATCH] 1937/1: LoCoMo common device
John Lenz [Thu, 8 Jul 2004 15:35:07 +0000 (16:35 +0100)]
[ARM PATCH] 1937/1: LoCoMo common device

Patch from John Lenz

Cleanup and forward port of patch 1849.
This patch provides support for the SHARP LoCoMo device,
a companion chip similar to the sa1111 device.  It is present
in many of the SHARP Zaurus line of PDAs.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Tue, 6 Jul 2004 16:36:45 +0000 (09:36 -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] 1954/2: Make pxa platform device names more sensible
Ian Campbell [Tue, 6 Jul 2004 19:21:56 +0000 (20:21 +0100)]
[ARM PATCH] 1954/2:  Make pxa platform device names more sensible

Patch from Ian Campbell

Update 1954/1 to use pxa2xx- as the platform device prefix
instead of pxa2xx_. This changes pxamci to pxa2xx-mci, pxa2xx_udc
to pxa2xx-udc and pxafb to pxa2xx-fb. pxa2xx-uart doesn't need changing.

22 years ago[ARM] Usual mach-types update.
Russell King [Tue, 6 Jul 2004 19:12:39 +0000 (20:12 +0100)]
[ARM] Usual mach-types update.

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Tue, 6 Jul 2004 16:34:41 +0000 (09:34 -0700)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 6 Jul 2004 16:32:38 +0000 (09:32 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agosparse: annotate signal handler and ss_sp as user pointers
Linus Torvalds [Tue, 6 Jul 2004 16:25:36 +0000 (09:25 -0700)]
sparse: annotate signal handler and ss_sp as user pointers

22 years ago[PATCH] snd_ctl_read() fix fix
Wen-chien Jesse Sung [Tue, 6 Jul 2004 16:20:21 +0000 (09:20 -0700)]
[PATCH] snd_ctl_read() fix fix

hm, I had a brainfart here.  The recent "fix" to snd_ctl_read() actually
unfixed it.  Revert that, and fix the real bug.

Cc: Jaroslav Kysela <perex@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix memory leak in epoll
Jerzy Szczepkowski [Tue, 6 Jul 2004 16:20:10 +0000 (09:20 -0700)]
[PATCH] Fix memory leak in epoll

There was a memory leak in epoll.

The reference count (d_count) of the struct dentry of a new epoll-fd was
set to TWO.  (new_inode() assigned ONE, than ep_getfd() incremented it by
dget()).  There was only ONE reference to this dentry, so struct dentry and
struct inode were never freed.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove include/{asm-i386,linux}/upd4990a.h
Rusty Russell [Tue, 6 Jul 2004 16:19:59 +0000 (09:19 -0700)]
[PATCH] Remove include/{asm-i386,linux}/upd4990a.h

From: Alexey Dobriyan <adobriyan@mail.ru>

drivers/char/upd4990a.c was removed from 2.6.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] saa5246a Videotext driver update
Gerd Knorr [Tue, 6 Jul 2004 16:19:47 +0000 (09:19 -0700)]
[PATCH] saa5246a Videotext driver update

From: Michael Geng <linux@MichaelGeng.de>

The patch updates docs, comments + strings to also mention the SAA5281 chip
(which is compatible to the SAA5246A) as supported.

Signed-off-by: Michael Geng <linux@MichaelGeng.de>
Signed-off-by: Gerd Knorr <kraxel@bytesex.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparse: fix remaining three non-ANSI warnings
Mika Kukkonen [Tue, 6 Jul 2004 16:19:36 +0000 (09:19 -0700)]
[PATCH] sparse: fix remaining three non-ANSI warnings

  CHECK   fs/smbfs/smbiod.c
fs/smbfs/smbiod.c:68:25: warning: non-ANSI parameter list
  CHECK   drivers/isdn/tpam/tpam_crcpc.c
drivers/isdn/tpam/tpam_crcpc.c:57:15: warning: non-ANSI parameter list
  CHECK   drivers/scsi/aic7xxx/aic79xx_reg_print.c
drivers/scsi/aic7xxx/aic79xx_osm.h:791:19: warning: non-ANSI parameter list

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] NUMA API: fix use-after-free bug
Andi Kleen [Tue, 6 Jul 2004 16:19:24 +0000 (09:19 -0700)]
[PATCH] NUMA API: fix use-after-free bug

Move the memory policy freeing to later in exit to make sure the last
memory allocations don't use an uninitialized policy.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbdev: set capabilities flag for vesafb and vga16fb
Antonino Daplas [Tue, 6 Jul 2004 16:19:13 +0000 (09:19 -0700)]
[PATCH] fbdev: set capabilities flag for vesafb and vga16fb

This patch sets the correct capabilities flag for vesafb and vga16fb to
provide fbcon with the correct hints as to the best scrolling mode.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbcon: new scrolling mode: YPAN + REDRAW
Antonino Daplas [Tue, 6 Jul 2004 16:19:02 +0000 (09:19 -0700)]
[PATCH] fbcon: new scrolling mode: YPAN + REDRAW

Added a new scrolling mode (SCROLL_PAN_REDRAW) to fbcon that should greatly
benefit unaccelerated drivers such as VESA fbdev.  An increase of 3-10 times
in scrolling speed can be expected.

Currently, fbcon has 4 different scrolling methods (1-4).  Potentially, we can
have 6.  This patch implements SCROLL_PAN_REDRAW (5).  SCROLL_WRAP_REDRAW (6)
is still unimplemented.

Scroll Mode Operation YPan YWrap
+++++++++++++++++++++++++++++++++++++++++++++++++++++
1. SCROLL_ACCEL copyarea No No
2. SCROLL_REDRAW imageblit No No
3. SCROLL_PAN copyarea Yes No
4. SCROLL_WRAP copyarea No Yes
5. SCROLL_PAN_REDRAW  imageblit Yes No
6. SCROLL_WRAP_REDRAW imageblit No Yes
+++++++++++++++++++++++++++++++++++++++++++++++++++++
Note 1:  I've changed the nomenclature to increase clarity:

SCROLL_ACCEL = SCROLL_MOVE
SCROLL_REDRAW = SCROLL_REDRAW
SCROLL_PAN = SCROLL_PAN_MOVE
SCROLL_WRAP = SCROLL_WRAP_MOVE

To demonstrate the effect of each of the scrolling methods on
an unaccelerated PCI/AGP-based driver (vesafb), I used a simple
benchmark (time cat linux/MAINTAINERS - a 50K text file). The
framebuffer is set at:

1024x768-8bpp, 8x16 font, yres_virtual = 2*yres

1. SCROLL_MOVE:
real    5m50.277s
user    0m0.001s
sys     5m50.227s

Almost 6 minutes for a 50K text file.  Using soft copyarea on a
PCI-based card is just too slow (because copyarea has to
read from the framebuffer memory).

2. SCROLL_PAN_MOVE
scrollmode: SCROLL_PAN
real    0m8.592s
user    0m0.000s
sys     0m8.586s

Using ypan with copyarea dramatically improves the scrolling.  However, the
scrolling action is jerky (fast during the panning stages, slows down during
the copyarea stages).

3. SCROLL_REDRAW (this is the default scrolling mode)
real    0m3.189s
user    0m0.000s
sys     0m3.170s

Simply eliminating the copyarea, even without ypanning, makes it faster than
SCROLL_PAN_MOvE.  Plus, the scrolling action is smoother.

So, if we combine YPanning with imageblit (PAN_REDRAW), we get this:

4. SCROLL_PAN_REDRAW
real    0m0.520s
user    0m0.000s
sys     0m0.518s

That's almost 6x faster than SCROLL_REDRAW.  Increasing the amount of video
RAM still increases the speed, but not very dramatically.  Higher than 16 MB,
the increase is negligible.

Using an accelerated driver, we see almost the same effect but not as
dramatically:

1. SCROLL_MOVE - accel
real    0m3.112s
user    0m0.000s
sys     0m3.112s

2. SCROLL_REDRAW - accel
real    0m2.604s
user    0m0.000s
sys     0m2.603s

Redraw is still faster than move, but not much.

3. SCROLL_PAN_MOVE - accel
real    0m0.203s
user    0m0.000s
sys     0m0.202s

4. SCROLL_PAN_REDRAW - accel
real    0m0.326s
user    0m0.002s
sys     0m0.323s

This is one exception.  If panning is enabled, move is actually faster than
redraw.  As to why, I don't know.

So based on the above, fbcon will choose the scrolling method based on the
following preference:

Ypan/Ywrap > accel imageblit > accel copyarea >
soft imageblit > (soft copyarea)

Note 2: Exception: accel copyarea > accel imageblit if Pan/Wrap is enabled.

Note 3: soft copyarea will be avoided by fbcon as much as possible unless
there is a specific override, ie., FBINFO_READS_FAST flag is set.  If this
flag is set, fbcon will prefer copyarea over imageblit, accel or soft.

As a final note, in order for fbcon to use the best scrolling method, the
low-level drivers must provide the correct hinting by setting the
FBINFO_HWACCEL_* flags.

To vesafb users: boot vesafb like this for fastest scrolling action:

video=vesafb:ypan,vram:16

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbcon: refinements for fbcon
Antonino Daplas [Tue, 6 Jul 2004 16:18:51 +0000 (09:18 -0700)]
[PATCH] fbcon: refinements for fbcon

1.  From Petr Vandrovec <vandrove@vc.cvut.cz>.

Begin quote

        yesterday I finally found why 2.6.x has problems with taking
        over vgacon.  Problem is that take_over_console does:

   if (IS_VISIBLE)
     save_screen(i);
   ...
   visual_init(i, 0);
   ...

        so code nicely saves screen contents, and calls visual_init,
        which calls fbcon's init, which in turn can issue vc_resize.  And this
        vc_resize will trigger read from vc->vc_origin.  But vc_origin still
        points to videomemory, not to the buffer where save_screen() copied
        its data.

End quote

So updating vc->vc_origin to point to screenbuf after the previous console
deinitializes allows fbcon to correctly update the screen from the screen
buffer.  This change makes the clearing of vram (using fillrect) unnecessary.

2.  If FBINFO_MISC_MODESWITCH flag is set in info, do the set_par() in
fbcon_switch() instead of piggy-backing the set_par() on fbcon_resize().  This
preserves the current var, skipping the unnecessary fb_find_mode() step.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbcon mode switching fix
Antonino Daplas [Tue, 6 Jul 2004 16:18:40 +0000 (09:18 -0700)]
[PATCH] fbcon mode switching fix

Ugly workaround.  When switching from KD_GRAPHICS to KD_TEXT, the event is
captured at fbcon_blank() allowing fbcon to reinitialize the hardware.
However, some hardware requires the reinitialization to be done
immediately, others require it to be done later.  Others may need it to be
done immediately and later, this is the worst case.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: cpu hotplug support
Martin Schwidefsky [Tue, 6 Jul 2004 16:18:28 +0000 (09:18 -0700)]
[PATCH] s390: cpu hotplug support

From: Ursula Braun-Krahl <braunu@de.ibm.com>
From: Heiko Carstens <heiko.carstens@de.ibm.com>
From: Gerald Schaefer <geraldsc@de.ibm.com>
From: Martin Schwidefsky <schwidefsky@de.ibm.com>

Add s390 architecture support for cpu hotplug.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: cpu-idle notifier
Martin Schwidefsky [Tue, 6 Jul 2004 16:18:17 +0000 (09:18 -0700)]
[PATCH] s390: cpu-idle notifier

This patch introduces a notifier chain for cpu idle.  There are two events
CPU_IDLE and CPU_NOT_IDLE that are called just before the cpu goes to sleep
and right after the cpu woke up again.  The notifier is used to simplify the
no-hz-timer-in-idle feature and the virtual cpu timers.  In addition the
virtual cpu timer functions have been moved to arch/s390/kernel/vtime.c, which
gives a nice separation between the timer functions related to real time and
the timer functions related to virtual cpu time.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: ctc driver changes
Martin Schwidefsky [Tue, 6 Jul 2004 16:18:05 +0000 (09:18 -0700)]
[PATCH] s390: ctc driver changes

From: Peter Tiedemann <ptiedem@de.ibm.com>

ctc driver changes:
 - Make use of the debug feature to ease debugging.
 - ctctty: use dev_alloc_name to allocate a network device name.
 - ctctty: avoid deadlock of ctc_tty_close vs ctc_tty_flush_buffer.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: common i/o layer
Martin Schwidefsky [Tue, 6 Jul 2004 16:17:53 +0000 (09:17 -0700)]
[PATCH] s390: common i/o layer

From: Arnd Bergmann <arndb@de.ibm.com>

Common i/o layer changes:
 - Reorder checking and setting of the ccw device id.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: dasd driver changes
Martin Schwidefsky [Tue, 6 Jul 2004 16:17:42 +0000 (09:17 -0700)]
[PATCH] s390: dasd driver changes

From: Horst Hummel <horst.hummel@de.ibm.com>

dasd device driver changes:
 - Set and check the retry counter in start_IO for all requests.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[IPV4]: Set UDP accept back to sock_no_accept.
David S. Miller [Tue, 6 Jul 2004 15:02:06 +0000 (08:02 -0700)]
[IPV4]: Set UDP accept back to sock_no_accept.

Setting it to inet_accept causes UDP accept attempts
to OOPS.  In particular, accept01 from LTP tries this.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Kill fix_u32_bug ifdef tests in cls_u32.c
David S. Miller [Tue, 6 Jul 2004 11:51:12 +0000 (04:51 -0700)]
[PKT_SCHED]: Kill fix_u32_bug ifdef tests in cls_u32.c

22 years ago[PKT_SCHED]: Kill CONFIG_CLS_U32_PERF2 cruft code.
David S. Miller [Tue, 6 Jul 2004 11:48:46 +0000 (04:48 -0700)]
[PKT_SCHED]: Kill CONFIG_CLS_U32_PERF2 cruft code.

22 years ago[ARM] Use platform_get_resource/platform_get_irq in sa1111.c
Russell King [Tue, 6 Jul 2004 11:46:17 +0000 (12:46 +0100)]
[ARM] Use platform_get_resource/platform_get_irq in sa1111.c

22 years ago[PKT_SCHED]: New version of u32 classifier hashing workaround.
Jamal Hadi Salim [Tue, 6 Jul 2004 09:14:49 +0000 (02:14 -0700)]
[PKT_SCHED]: New version of u32 classifier hashing workaround.

This version does not change user visible structures.

Signed-off-by: Jamal Hadi Salim <hadi@znyx.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Another missed qdisc_copy_stats() conversion.
David S. Miller [Tue, 6 Jul 2004 08:37:44 +0000 (01:37 -0700)]
[PKT_SCHED]: Another missed qdisc_copy_stats() conversion.

22 years ago[PKT_SCHED]: Two small netem fixes.
Stephen Hemminger [Tue, 6 Jul 2004 07:35:36 +0000 (00:35 -0700)]
[PKT_SCHED]: Two small netem fixes.

- rtnetlink.h needs including
- optimize loss test so that net_random() call is not done
  when no-loss is indicated

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Fix some missing qdisc_copy_stats() conversions.
David S. Miller [Tue, 6 Jul 2004 07:26:44 +0000 (00:26 -0700)]
[PKT_SCHED]: Fix some missing qdisc_copy_stats() conversions.

22 years ago[IPCOMP]: Exclude IPCOMP header from props.header_len
Herbert Xu [Tue, 6 Jul 2004 07:05:53 +0000 (00:05 -0700)]
[IPCOMP]: Exclude IPCOMP header from props.header_len

This is another patch on the way towards a unified XFRM tunnel
encapsulation function.

This patch changes the value of props.header_len for IPCOMP to
exclude the IPCOMP header.  The reason is that the IPCOMP header
is added only if the packet is compressible.  That is, if the
size of the compressed payload plus the size of the IPCOMP header
is less than that of the original payload.

This means that the IPCOMP encapsulation does not impose any
overhead at all as far as the MTU is concerned.  The current
code incorrectly reduces the MTU by the size of the IPCOMP
header.

As a side-effect, this means that we don't have to move the
IP header around when IPCOMP is used.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Update to network emulation QOS scheduler.
Stephen Hemminger [Tue, 6 Jul 2004 06:57:40 +0000 (23:57 -0700)]
[PKT_SCHED]: Update to network emulation QOS scheduler.

This patch updates the network emulation packet scheduler.
* name changed from delay to netem since it does more than just delay
* Catalin's merged code to do packet reordering
* uses a socket queue's directly rather than layering on qdisc(fifo)
  because this is used in performance tests.
* adds placeholder in API for future enhancements (rate and duplicate).

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[NETFILTER]: ip6t_LOG and packets with hop-by-hop options.
Marcel Sebek [Tue, 6 Jul 2004 06:50:20 +0000 (23:50 -0700)]
[NETFILTER]: ip6t_LOG and packets with hop-by-hop options.

Packet with IPPROTO_HOPOPTS extended header isn't logged properly by
ip6t_LOG.c. It only prints PROTO=0 and nothing more, because
IPPROTO_HOPOPTS=0 and in this file 0 is used to indicate last header.
This patch fix it by using IPPROTO_NONE to indicate last header.

Signed-off-by: Marcel Sebek <sebek64@post.cz>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[ARM PATCH] 1938/1: Support for Collie device
John Lenz [Mon, 5 Jul 2004 17:44:39 +0000 (18:44 +0100)]
[ARM PATCH] 1938/1: Support for Collie device

Patch from John Lenz

Cleanup and forward port of patch 1850.
Add machine support for the Sharp Zaurus SL5500 PDA.
Does not include support for the collie serial port or
the sa1100fb_lcd_power function.

22 years ago[ARM PATCH] 1953/1: Omit id for platform devices where only one can possibly exist.
Ian Campbell [Mon, 5 Jul 2004 17:27:25 +0000 (18:27 +0100)]
[ARM PATCH] 1953/1: Omit id for platform devices where only one can possibly exist.

Patch from Ian Campbell

Now that the BK tree allows platform devices to specify an id of -1
to get rid of the numbered suffix.

Following discussion on the l-a-k mailing list here is patch to do
this for the pxafb, pxa2xx-udc and pxamci generic PXA2xx platform
devices and the platform devices on the Lubbock.

22 years ago[ARM PATCH] 1950/1: SIZEOF_MACHINE_DESC requires asm/constants.h
Nicolas Pitre [Mon, 5 Jul 2004 17:21:54 +0000 (18:21 +0100)]
[ARM PATCH] 1950/1: SIZEOF_MACHINE_DESC requires asm/constants.h

Patch from Nicolas Pitre

The change as seen here:
http://linux.bkbits.net:8080/linux-2.5/diffs/arch/arm/kernel/head.S@1.19?nav=index.html|ChangeSet@-4d|cset@1.1769.3.12
has this note:
"No need to include asm/mach/arch.h"
But it now requires asm/constants.h otherwise SIZEOF_MACHINE_DESC
is not defined.  Why compilation succeeds anyways still mystify me.

22 years ago[NETFILTER]: Fix initializer of ip6table.c:initial_table
David S. Miller [Mon, 5 Jul 2004 14:08:20 +0000 (07:08 -0700)]
[NETFILTER]: Fix initializer of ip6table.c:initial_table

Just because gcc accepts [index] bar as
[index] = bar is no reason to make use of
that gross construct.

Also fully C99ify

22 years ago[PKT_SCHED]: Do not embed spinlock in tc_stats structure.
David S. Miller [Mon, 5 Jul 2004 13:39:01 +0000 (06:39 -0700)]
[PKT_SCHED]: Do not embed spinlock in tc_stats structure.

This makes it not get sized/copied around to/from
userspace correctly.  The real crux of the problem
comes from the rtnetlink attribute copying line which
read:
RTA_PUT(skb, TCA_STATS, (char*)&st->lock - (char*)st, st);
which is not necessarily sizeof(struct tc_stats) due
to alignment issues.

22 years ago[XFRM]: Convert XFRM_MSG_* macros to an enum.
Herbert Xu [Mon, 5 Jul 2004 09:42:08 +0000 (02:42 -0700)]
[XFRM]: Convert XFRM_MSG_* macros to an enum.

This way we will not forget to update XFRM_MSG_MAX in
the future.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[NET]: Save space for dst underflow message.
Hideaki Yoshifuji [Mon, 5 Jul 2004 09:38:11 +0000 (02:38 -0700)]
[NET]: Save space for dst underflow message.

Save space for 'dst underflow' message.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[TCP]: Inline message.
Hideaki Yoshifuji [Mon, 5 Jul 2004 09:36:42 +0000 (02:36 -0700)]
[TCP]: Inline message.

D: [TCP] Diet using unknown

22 years ago[IPV6]: Fix flags for ndisc dst.
Hideaki Yoshifuji [Mon, 5 Jul 2004 09:35:28 +0000 (02:35 -0700)]
[IPV6]: Fix flags for ndisc dst.

Because RTF_LOCAL is for local unicast address,
it was wrong to set RTF_LOCAL to ndisc dst.
This patch also adds some comment on other fields.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[VLAN]: Do not access released memory.
Petr Vandrovec [Mon, 5 Jul 2004 09:33:33 +0000 (02:33 -0700)]
[VLAN]: Do not access released memory.

22 years ago[SPARC64]: Kill silo_args bogus .globl
Andrew Morton [Mon, 5 Jul 2004 09:31:28 +0000 (02:31 -0700)]
[SPARC64]: Kill silo_args bogus .globl

22 years agoMerge http://linux-mh.bkbits.net/bluetooth-2.6
David S. Miller [Mon, 5 Jul 2004 09:27:41 +0000 (02:27 -0700)]
Merge http://linux-mh.bkbits.net/bluetooth-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[IPV6] Bring lo up before setting other interface up.
Hideaki Yoshifuji [Mon, 5 Jul 2004 09:26:34 +0000 (02:26 -0700)]
[IPV6] Bring lo up before setting other interface up.

IPv6 was not configured appropriately without lo.
Noticed by / tested by Russell King <rmk+lkml@arm.linux.org.uk>.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[AH4]: Harmonization of output function.
Herbert Xu [Mon, 5 Jul 2004 09:02:18 +0000 (02:02 -0700)]
[AH4]: Harmonization of output function.

This is another step towards the union of the tunnel mode encapsulation
between transforms.  As there are significant differences between the
tunnel encapsulation of IPv4 and IPv6, I'll be dealing with IPv4 only
for now.

This particular patch rearranges the code in ah_output to isolate the
tunnel mode encapsulation.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[AX25]: ax25_rt_add() locking fix.
Andrew Morton [Mon, 5 Jul 2004 09:00:10 +0000 (02:00 -0700)]
[AX25]: ax25_rt_add() locking fix.

Fix deadlock identified by the Stanford locking checker.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[LAPB]: lapb_unregister() locking fix.
Andrew Morton [Mon, 5 Jul 2004 08:59:31 +0000 (01:59 -0700)]
[LAPB]: lapb_unregister() locking fix.

Fix deadlock identified by the Stanford locking checker.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[AX25]: ax25_ds_idletimer_expiry() locking fix.
Andrew Morton [Mon, 5 Jul 2004 08:58:48 +0000 (01:58 -0700)]
[AX25]: ax25_ds_idletimer_expiry() locking fix.

Fix deadlock identified by the Stanford locking checker.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[ROSE]: rose_route locking fix
Andrew Morton [Mon, 5 Jul 2004 08:57:53 +0000 (01:57 -0700)]
[ROSE]: rose_route locking fix

Fix deadlock in rose_del_loopback_node().  Found by the Stanford locking
checker.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[ESP4]: Merge NAT-T code in esp_output().
Herbert Xu [Mon, 5 Jul 2004 08:54:24 +0000 (01:54 -0700)]
[ESP4]: Merge NAT-T code in esp_output().

22 years ago[NET]: Allow large MTU on dummy net device.
Stephen Hemminger [Mon, 5 Jul 2004 08:43:44 +0000 (01:43 -0700)]
[NET]: Allow large MTU on dummy net device.

It is useful for testing to allow larger MTU value to be set on
the dummy network device. The current code limits it to valid Ether mtu's.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[NETLINK]: Return err in netlink_connect.
Herbert Xu [Mon, 5 Jul 2004 08:42:39 +0000 (01:42 -0700)]
[NETLINK]: Return err in netlink_connect.

This patch makes netlink_connect() return the value of err instead of 0.
It doesn't actually make any difference since the current implementation
of netlink_autobind() never fails.  But since we went to all this trouble
to check the return status of autobind, might as well return the correct
value :)

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[NETLINK]: Check connect address.
Herbert Xu [Mon, 5 Jul 2004 08:41:28 +0000 (01:41 -0700)]
[NETLINK]: Check connect address.

22 years ago[IPV4]: Calculate default broadcast even when using SIOCSIGNETMASK.
Jaap Keuter [Mon, 5 Jul 2004 08:39:17 +0000 (01:39 -0700)]
[IPV4]: Calculate default broadcast even when using SIOCSIGNETMASK.

While getting hands-on with netkit (www.netkit.org), a networking
simulation environment based on UML, it struck me that ifconfig wasn't
capable of calculating the proper broadcast address for a subnetted
interface. Some browsing through newsgroups and on the Debian package
site (nettools), showed that this leads to misconfigured interfaces and
a couple of bugreports on ifconfig.

Digging a bit deeper revealed that it actually is an issue with
SIOIFNETMASK. Once you bring up an interface with SIOIFADDR, a classfull
netmask and broadcast address is set (if applicable for the type of
interface), in order to get a properly configured interface. But if you
subnet the network using SIOIFNETMASK no proper broadcast address is
set. So you always have to calculate it yourself, obviously leading to
configuration errors.

This patch takes care of this. First of all it doesn't change
existing functionality, eg. a command like 'ifconfig eth0 192.168.1.1
netmask 255.255.255.240 broadcast 192.168.1.0' still works. But if you
omit the broadcast address, a proper 'all ones' broadcast address for the
subnet is set. 'ifconfig eth0 192.168.1.1 netmask 255.255.255.240' gives
you 'eth0 inet addr:192.168.1.1 Bcast:192.168.1.15 Mask:255.255.255.240'
and this should solve some real life problems.

Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Rip out requeue stat addition, user ABI breaker.
David S. Miller [Mon, 5 Jul 2004 08:28:18 +0000 (01:28 -0700)]
[PKT_SCHED]: Rip out requeue stat addition, user ABI breaker.

22 years ago[PKT_SCHED]: Pass NET_XMIT_* status properly back through classifiers.
Jamal Hadi Salim [Mon, 5 Jul 2004 08:25:34 +0000 (01:25 -0700)]
[PKT_SCHED]: Pass NET_XMIT_* status properly back through classifiers.

22 years agoMerge bk://drm.bkbits.net/drm-2.6
Linus Torvalds [Mon, 5 Jul 2004 03:54:07 +0000 (20:54 -0700)]
Merge bk://drm.bkbits.net/drm-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agowhitespace cleanup in radeon.h
Dave Airlie [Tue, 6 Jul 2004 08:09:38 +0000 (18:09 +1000)]
whitespace cleanup in radeon.h

22 years agotypo in radeon_state.c
Dave Airlie [Tue, 6 Jul 2004 07:37:55 +0000 (17:37 +1000)]
typo in radeon_state.c

22 years agotypo..
Dave Airlie [Tue, 6 Jul 2004 07:19:40 +0000 (17:19 +1000)]
typo..

22 years ago[PATCH] kyrofb warning fix
Andrew Morton [Mon, 5 Jul 2004 03:27:16 +0000 (20:27 -0700)]
[PATCH] kyrofb warning fix

drivers/video/kyro/fbdev.c: In function `kyrofb_probe':
drivers/video/kyro/fbdev.c:736: warning: passing arg 1 of `memset' makes pointer from integer without a cast

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] remove allowdma0 documentation
Adrian Bunk [Mon, 5 Jul 2004 03:27:05 +0000 (20:27 -0700)]
[PATCH] remove allowdma0 documentation

allowdma0 is gone in 2.6, the patch below removes the mentionings of this
option in the documentation.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] spurious remap_file_pages() -EINVAL
William Lee Irwin III [Mon, 5 Jul 2004 03:26:54 +0000 (20:26 -0700)]
[PATCH] spurious remap_file_pages() -EINVAL

As ->vm_private_data is used as a cursor for swapout of VM_NONLINEAR vmas,
the check for NULL ->vm_private_data or VM_RESERVED is too strict, and
should allow VM_NONLINEAR vmas with non-NULL ->vm_private_data.

This fixes an issue on 2.6.7-mm5 where system calls to remap_file_pages()
spuriously failed while under memory pressure.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] __bdevname leak fix
Christoph Hellwig [Mon, 5 Jul 2004 03:26:43 +0000 (20:26 -0700)]
[PATCH] __bdevname leak fix

The __bdevname library function is leaking module references due to

__bdevname
  ->get_gendisk
    ->kobj_lookup
      ->ata_probe
        ->get_disk
          ->try_module_get

What we're trying to do in there is too ambitious.  Change it to just print
the major and minor.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] gcc 3.5 fixes #2
Anton Blanchard [Mon, 5 Jul 2004 03:26:31 +0000 (20:26 -0700)]
[PATCH] gcc 3.5 fixes #2

gcc 3.5 is warning about unused static variables, add __attribute_unused__
to the 2 places to silence 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] gcc 3.5 fixes
Anton Blanchard [Mon, 5 Jul 2004 03:26:20 +0000 (20:26 -0700)]
[PATCH] gcc 3.5 fixes

gcc 3.5 is warning about static vs non static function declarations.  The
following patch removes function prototypes in .h files where possible and
changes prototypes to be static elsewhere.

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] force O_LARGEFILE in sys_swapon() and sys_swapoff()
William Lee Irwin III [Mon, 5 Jul 2004 03:26:08 +0000 (20:26 -0700)]
[PATCH] force O_LARGEFILE in sys_swapon() and sys_swapoff()

For 32-bit, one quickly discovers that swapon() is not given an fd already
opened with O_LARGEFILE to act upon and the forcing of O_LARGEFILE for
64-bit is irrelevant, as the system call's argument is a path.  So this
patch manually forces it for swapon() and swapoff().

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32 cpumask bitop build fix
Paul Jackson [Mon, 5 Jul 2004 03:25:57 +0000 (20:25 -0700)]
[PATCH] sparc32 cpumask bitop build fix

With the following changes, I was able to compile the "sparc" (32 bit)
arch, using defconfig and crosstool.  There were still plenty of warnings,
but nothing else relating to bitops or cpumasks that I noticed.  This is
working with 2.6.7-mm5.

I have no way to boot test this, but these changes seem obvious enough that
I'd recommend including them.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>