]> git.hungrycats.org Git - linux/log
linux
22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Tue, 29 Jun 2004 12:56:54 +0000 (05:56 -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] Miscellaneous fixes
Russell King [Tue, 29 Jun 2004 19:26:07 +0000 (20:26 +0100)]
[ARM] Miscellaneous fixes

- Remove 'arc' machine name from Makefile
- clk_set_rate() should return non-zero atm.
- proc-sa1100.S doesn't need asm/ptrace.h
- update mach-types
- kill line of spaces in clock.h

22 years ago[ARM] MMC mclk is no longer used, so remove it.
Russell King [Tue, 29 Jun 2004 19:06:12 +0000 (20:06 +0100)]
[ARM] MMC mclk is no longer used, so remove it.

22 years ago[ARM] Reliably update SIZEOF_MACHINE_DESC
Russell King [Tue, 29 Jun 2004 18:57:12 +0000 (19:57 +0100)]
[ARM] Reliably update SIZEOF_MACHINE_DESC

Generate SIZEOF_MACHINE_DESC using asm-offsets method rather than
relying on people updating the definition in asm/mach/arch.h

22 years ago[ARM] Move arch_adjust_zones to asm/memory.h
Russell King [Tue, 29 Jun 2004 17:48:23 +0000 (18:48 +0100)]
[ARM] Move arch_adjust_zones to asm/memory.h

This places arch_adjust_zones along side ISA_DMA_THRESHOLD.  These
two are related, but having them in separate files means its not
obvious that they are.

ISA_DMA_THRESHOLD is a DMA mask which must be defined such that it
matches the memory handed out by GFP_DMA, which in turn is controlled
by arch_adjust_zones.

22 years ago[ARM] Move ISA_DMA_THRESHOLD to asm/memory.h
Russell King [Tue, 29 Jun 2004 17:17:09 +0000 (18:17 +0100)]
[ARM] Move ISA_DMA_THRESHOLD to asm/memory.h

This allows machine classes to override ISA_DMA_THRESHOLD as
necessary.

22 years ago[ARM] arch/arm/Makefile cleanups
Russell King [Tue, 29 Jun 2004 16:21:15 +0000 (17:21 +0100)]
[ARM] arch/arm/Makefile cleanups

Clean up bzImage target, remove a couple of obsolete testing targets,
and add better bootpImage help text.

22 years ago[ARM] EBSA110 I/O and decompressor fixes.
Russell King [Tue, 29 Jun 2004 16:02:46 +0000 (17:02 +0100)]
[ARM] EBSA110 I/O and decompressor fixes.

This fixes the buggy decompressor assembly, and fixes PCMCIA IO
to use the correct byte lane when accessing certain PCMCIA cards.

22 years ago[ARM] Prevent static data in misc.o
Russell King [Tue, 29 Jun 2004 14:39:12 +0000 (15:39 +0100)]
[ARM] Prevent static data in misc.o

Static data causes GOTOFF relocations to be used, which won't work
because we want to relocate the .data section separately from the
.text section.  Therefore, force all data to be nonstatic.

22 years ago[ARM] Kernel boot decompressor updates
Russell King [Tue, 29 Jun 2004 13:33:49 +0000 (14:33 +0100)]
[ARM] Kernel boot decompressor updates

- use 'Image' target for kernel image to be compressed rather than
  duplicating its generation.
- use .incbin-based generation of ELF objects from binary data rather
  than 'ld'-based generation.

22 years ago[ARM] Convert bootp to use kbuild infrastructure.
Russell King [Tue, 29 Jun 2004 13:18:41 +0000 (14:18 +0100)]
[ARM] Convert bootp to use kbuild infrastructure.

22 years ago[ARM] Fix install/zinstall to work with separated source/build trees.
Russell King [Tue, 29 Jun 2004 13:05:41 +0000 (14:05 +0100)]
[ARM] Fix install/zinstall to work with separated source/build trees.

22 years ago[ARM] arch/arm/boot variable name consistency.
Russell King [Tue, 29 Jun 2004 12:54:28 +0000 (13:54 +0100)]
[ARM] arch/arm/boot variable name consistency.

For clarity and consistency, use the same name for makefile and
linker symbols.

22 years ago[ARM] Move ZTEXTADDR/ZBSSADDR initialisation to compressed/Makefile
Russell King [Tue, 29 Jun 2004 12:38:54 +0000 (13:38 +0100)]
[ARM] Move ZTEXTADDR/ZBSSADDR initialisation to compressed/Makefile

Since this is where these two variables are used, it makes sense to
have them in that makefile.  Also, consolidate "targets"
initialisation, fixes a missing FORCE dependency for the uImage rule,
and remove more FTVPCI code.

22 years ago[PATCH] kill mm_struct.used_hugetlb
Oleg Nesterov [Tue, 29 Jun 2004 12:26:38 +0000 (05:26 -0700)]
[PATCH] kill mm_struct.used_hugetlb

mm_struct.used_hugetlb used to eliminate costly find_vma() from
follow_page().  Now it is used only in ia64 version of follow_huge_addr().
I know nothing about ia64, but this REGION_NUMBER() looks simple enough to
kill used_hugetlb.

There is debug version (commented out) of follow_huge_addr() in i386 which
looks at used_hugetlb, but it can work without this check.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radeonfb: 16bpp copyarea() fix
David Eger [Tue, 29 Jun 2004 12:21:36 +0000 (05:21 -0700)]
[PATCH] radeonfb: 16bpp copyarea() fix

radeonfb: fix 16bpp copyarea() bug

It turns out the bug was due to my mis-copying a certain set of flags from
the x.org tree.

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 ago[PATCH] Fix Alpha compilation
Peter Chubb [Tue, 29 Jun 2004 12:21:25 +0000 (05:21 -0700)]
[PATCH] Fix Alpha compilation

When using gcc 3.3.3 on alpha, the current BK head doesn't compile.

- there's an external declaration for abs() in the same scope as a macro
  definition in arch/alpha/time.c

- The compiler is picky about `const' declarations, which breaks on
  bitops.h.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix page->count discrepancy for zero page
Dave Hansen [Tue, 29 Jun 2004 12:21:13 +0000 (05:21 -0700)]
[PATCH] fix page->count discrepancy for zero page

While writing some analysis tools for memory hot-remove, we came across a
single page which had a ->count that always increased, without bound.  It
ended up always being the zero page, and it was caused by a leaked
reference in some do_wp_page() code that ends up avoiding PG_reserved
pages.

Basically what happens is that page_cache_release()/put_page() ignore
PG_reserved pages, while page_cache_get()/get_page() go ahead and take the
reference.  So, each time there's a COW fault on the zero-page, you get a
leaked page->count increment.

It's pretty rare to have a COW fault on anything that's PG_reserved, in
fact, I can't think of anything else that this applies to other than the
zero page.

In any case, it the bug doesn't cause any real problems, but it is a bit of
an annoyance and is obviously incorrect.  We've been running with this
patch for about 3 months now, and haven't run into any problems with it.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add <linux/compiler.h> to <linux/fd.h>
Tom Rini [Tue, 29 Jun 2004 12:21:02 +0000 (05:21 -0700)]
[PATCH] Add <linux/compiler.h> to <linux/fd.h>

<linux/fd.h> references __user which is defined in <linux/compiler.h>.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] small fixes to checkstack
Jörn Engel [Tue, 29 Jun 2004 12:20:51 +0000 (05:20 -0700)]
[PATCH] small fixes to checkstack

 - fix documentation
 - use $(src) in Makefile (fixes cross-compilation)

Both spottet by Geert Uytterhoeven

Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Add m68k support to checkstack
Jörn Engel [Tue, 29 Jun 2004 12:20:40 +0000 (05:20 -0700)]
[PATCH] Add m68k support to checkstack

Add m68k support to checkstack.pl

Regular expression combination by Andres Schwab

Signed-off-by: <geert@linux-m68k.org>
Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] dma_get_required_mask()
James Bottomley [Tue, 29 Jun 2004 12:20:29 +0000 (05:20 -0700)]
[PATCH] dma_get_required_mask()

This patch implements dma_get_required_mask() which may be used by drivers
to probe the optimal DMA descriptor type they should be implementing on the
platform.

I've also tested it this time with the sym_2 driver...making it chose the
correct descriptors for the platform.  (although I don't have a 64 bit
platform with >4GB memory, so I only confirmed it selects the 32 bit
descriptors all the time...)

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Combined patch for remaining trivial sparse warnings in allnoconfig build
Mika Kukkonen [Tue, 29 Jun 2004 12:20:18 +0000 (05:20 -0700)]
[PATCH] Combined patch for remaining trivial sparse warnings in allnoconfig build

Well, one of these (fs/block_dev.c) is little non-trivial, but i felt
throwing that away would be a shame (and I did add comments ;-).

Also almost all of these have been submitted earlier through other
channels, but have not been picked up (the only controversial is again the
fs/block_dev.c patch, where Linus felt a better job would be done with
__ffs(), but I could not convince myself that is does the same thing as
original code).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] EDD: store mbr_signature on first 16 int13 devices
Matt Domsch [Tue, 29 Jun 2004 12:20:06 +0000 (05:20 -0700)]
[PATCH] EDD: store mbr_signature on first 16 int13 devices

Currently, the x86/x86_64 real-mode kernel setup code reads and stores the
mbr_signature (4 bytes in the MBR at offset 440 decimal) for BIOS int13h
device 80h only.  This is useful, but not as useful as if we stored such
signatures for all int13h devices.  Think OS installer wanting to set up md
software RAID across several BIOS disks.

Patch below against 2.6.7 allows the storing of the mbr_signature for the
first 16 BIOS int13h devices, and exports them via
/sys/firmware/edd/int13_dev8x/mbr_signature as before.

This also merges the three EXPORT_SYMBOLs that setup.c exported for edd.c's
use into one.

Signed-off-by: Matt Domsch <Matt_Domsch@dell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] signed bug in drivers/video/console/fbcon.c con2fb_map[]
Olaf Hering [Tue, 29 Jun 2004 12:19:54 +0000 (05:19 -0700)]
[PATCH] signed bug in drivers/video/console/fbcon.c con2fb_map[]

drivers/video/console/fbcon.c:310: warning: comparison is always true due
to limited range of data type

char can be either signed or unsigned, depending on the target system.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] cirrusfb: minor fixes
François Romieu [Tue, 29 Jun 2004 12:19:43 +0000 (05:19 -0700)]
[PATCH] cirrusfb: minor fixes

- fix unbalanced invocation of pci_enable_device();

- leaks plugged in cirrusfb_zorro_setup();

- move framebuffer_release() into cirrusfb_{pci/zorro}_unmap() to balance
  cirrusfb_{pci/zorro}_setup();

- make cirrusfb_{pci/zorro}_setup() return adequate error codes when
  something fails;

- cirrusfb_zorro_unmap: iounmap() now take as argument values previously
  returned by ioremap().

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
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 ago[PATCH] sh/sh64: MAINTAINERS update.
Paul Mundt [Tue, 29 Jun 2004 12:19:32 +0000 (05:19 -0700)]
[PATCH] sh/sh64: MAINTAINERS update.

This updates MAINTAINERS for sh/sh64 to match up with the 2.4 entries.

I've also removed NIIBE-san as an active sh maintainer, since he hasn't
been involved or submitted any code since 2002/06/26.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kyrofb: Fix modedb usage when built as a module.
Paul Mundt [Tue, 29 Jun 2004 12:19:21 +0000 (05:19 -0700)]
[PATCH] kyrofb: Fix modedb usage when built as a module.

Since James confirmed that this doesn't need to be module specific, we get
rid of the #ifndef MODULE checks for both the modedb and the modedb lookup.

Additionally we also switch from memset_io() to fb_memset().

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh64: Fix syscall table alignment
Paul Mundt [Tue, 29 Jun 2004 12:19:10 +0000 (05:19 -0700)]
[PATCH] sh64: Fix syscall table alignment

If the syscall table is in the text section, the movi that loads its
address into a register will at link time have its immediates resolved as
though it's an SHmedia symbol, i.e.  the LSB will be 1.  This is then
misaligned as a base address for loading the address to jump to.

This could be fixed either by moving the table back to the .data section
(as done here), or by masking off the LSB after loading the table address
into a register.

Signed-off-by: Richard Curnow <richard.curnow@superh.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sh64 support
Paul Mundt [Tue, 29 Jun 2004 12:18:58 +0000 (05:18 -0700)]
[PATCH] sh64 support

This patch adds sh64 support.

This is a bit overdue, as this was on the should-fix list, though we
weren't done debugging and finishing off the port until just recently (I
did a port against 2.5.68 but it wasn't in any shape to be merged).

sh64 is already in 2.4 and has been for quite awhile, so this is mostly
just a forward port of that code to 2.6 with appropriate bug fixes, etc.
along the way.  There isn't much in the way of new features that have been
added to the port yet, though I have added rough hugetlb and oprofile
support.

This patch doesn't really touch any common code, with the exception of an
ifdef or two for keyboard support and an ifdef in fb.h to omit sh64 from
the __raw_xxx() wrapping that sh does.

The only other common driver changes were to sh-sci for serial support, but
those bits were already merged with the latest batch of sh-sci updates.

Beyond that, the port is completely isolated.

Signed-off-by: Richard Curnow <richard.curnow@superh.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] hpet fixes
Robert Picco [Tue, 29 Jun 2004 12:18:44 +0000 (05:18 -0700)]
[PATCH] hpet fixes

Some hpet clean up and a fix to the RTC request_irq issue.

Signed-off-by: Bob Picco <Robert.Picco@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: viotape integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:33 +0000 (05:18 -0700)]
[PATCH] ppc64: viotape integration

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: viocd integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:22 +0000 (05:18 -0700)]
[PATCH] ppc64: viocd integration

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: viodasd integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:11 +0000 (05:18 -0700)]
[PATCH] ppc64: viodasd integration

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_veth integration
Stephen Rothwell [Tue, 29 Jun 2004 12:18:00 +0000 (05:18 -0700)]
[PATCH] ppc64: iseries_veth integration

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: vio infrastructure modifications
Stephen Rothwell [Tue, 29 Jun 2004 12:17:49 +0000 (05:17 -0700)]
[PATCH] ppc64: vio infrastructure modifications

The intention here is to have no effect on pSeries except:

1) vio_register_device is renamed to vio_register_device_node to better
   reflect is purpose and to allow me to introduce
   vio_register_device_iseries.

2) I have introduced the name and type fields in struct vio_dev to make
   these two fields independent of subarchitecture.

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] PCDP console detection support fixes
Bjorn Helgaas [Tue, 29 Jun 2004 12:17:38 +0000 (05:17 -0700)]
[PATCH] PCDP console detection support fixes

Check for ioremap failure and use correct UPIO_{MEM,PORT} constants.

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] CREDITS update
Luiz Capitulino [Tue, 29 Jun 2004 12:17:26 +0000 (05:17 -0700)]
[PATCH] CREDITS update

Luiz has ~40 patches to his name, go he gets a banana.

Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix to microcode driver for the old CPUs.
Tigran Aivazian [Tue, 29 Jun 2004 12:17:15 +0000 (05:17 -0700)]
[PATCH] fix to microcode driver for the old CPUs.

Here is a patch against Linux 2.6.7 which fixes the sigmatch() macro to
work for the relatively old processors as well, which have 'pf == 0'
(processor flags as read from MSR 0x17), For example, the processors
failing without this patch are Pentium II 300 MHz (Klamath) with
family/model/stepping 6/3/4 and 6/3/3.

The patch also contains minor cosmetic changes (to make source code more
uniform).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fbcon: fix display artifacts
Antonino Daplas [Tue, 29 Jun 2004 12:17:04 +0000 (05:17 -0700)]
[PATCH] fbcon: fix display artifacts

Fixed display artifacts present in the space reserved for the boot logo.
Use attributes of the background erase character instead of hardcoding the
color to zero.

Signed-off-by: Antonino A. Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] watchdog: indydog.c update
Wim Van Sebroeck [Tue, 29 Jun 2004 12:16:52 +0000 (05:16 -0700)]
[PATCH] watchdog: indydog.c update

<wim@iguana.be> (04/06/27 1.1770)
   [WATCHDOG] indydog.c-patch-20040627

   * Fix: since we use the new module_param's: make sure that
   linux/moduleparam.h stays included
   * in the release code we can just use indydog_stop();

The ChangeSets can also be looked at on:
http://linux-watchdog.bkbits.net:8080/linux-2.6-watchdog

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Provide console_suspend() and console_resume()
Russell King [Tue, 29 Jun 2004 12:16:41 +0000 (05:16 -0700)]
[PATCH] Provide console_suspend() and console_resume()

Add console_stop() and console_start() methods so the serial drivers
can disable console output before suspending a port, and re-enable output
afterwards.

We also add locking to ensure that we synchronise with any in-progress
printk.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Provide console_device()
Russell King [Tue, 29 Jun 2004 12:16:30 +0000 (05:16 -0700)]
[PATCH] Provide console_device()

[This patch series has also been separately sent to the architecture
 maintainers]

Add console_device() to return the console tty driver structure and the
index.  Acquire the console lock while scanning the list of console drivers
to protect us against console driver list manipulations.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Translate Japanese comments in arch/v850
Kalin Rumenov Kozhuharov [Tue, 29 Jun 2004 12:16:19 +0000 (05:16 -0700)]
[PATCH] Translate Japanese comments in arch/v850

Convert the Japanese comments in arch/v850.

I am not exactly 100% sure I translated it correctly since I have no idea
what exactly was that NEC v850 evaluation board, but should be OK (say 95%
sure).

Acked by Miles Bader <miles@lsi.nec.co.jp>

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] binfmt misc fd passing via ELF aux vector
Yoav Zach [Tue, 29 Jun 2004 12:16:08 +0000 (05:16 -0700)]
[PATCH] binfmt misc fd passing via ELF aux vector

The proposed patch uses the aux-vector to pass the fd of the open misc
binary to the interpreter, instead of using argv[1] for that purpose.

Previous patch - open_nonreadable_binaries, offered the option of
binfmt_misc opening the binary on behalf of the interpreter.  In case
binfmt_misc is requested to do that it would pass the file-descriptor of
the open binary to the interpreter as its second argument (argv[1]).  This
method of passing the file descriptor was suspected to be problematic,
since it changes the command line that users expect to see when using tools
such as 'ps' and 'top'.

The proposed patch changes the method of passing the fd of the open binary
to the translator.  Instead of passing it as an argument, binfmt_misc will
request the ELF loader to pass it as a new element in the aux-vector that
it prepares on the stack for ELF interpreter.  With this patch, argv[1]
will hold the full path to the binary regardless of whether it opened it or
not.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix deadlocks when oopsing while mmap_sem is held
Andy Whitcroft [Tue, 29 Jun 2004 12:15:56 +0000 (05:15 -0700)]
[PATCH] ppc64: fix deadlocks when oopsing while mmap_sem is held

If a fault in the kernel leads to an unexpected protection fault whilst in
a code path which holds mmap_sem we will deadlock in do_page_fault() while
trying to classify the fault.  By carefully testing the source of the fault
we can detect and OOPS on the vast majority of these, greatly enhancing
diagnosis of such bugs.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86_64 .init.setup alignment fix
Andrew Morton [Tue, 29 Jun 2004 12:15:45 +0000 (05:15 -0700)]
[PATCH] x86_64 .init.setup alignment fix

We're now putting 24-byte structures into .init.setup via __setup.  But
x86_64's compiler is emitting a `.align 16' in there, so they end up on
32-byte boundaries and do_early_param()'s pointer arithmetic goes wrong.

Fix that up by forcing the compiler to align these structures to sizeof(long).

Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Tue, 29 Jun 2004 12:06:07 +0000 (05:06 -0700)]
Merge http://lia64.bkbits.net/to-linus-2.5
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://kernel.bkbits.net/gregkh/linux/usb-2.6
Linus Torvalds [Tue, 29 Jun 2004 12:05:05 +0000 (05:05 -0700)]
Merge bk://kernel.bkbits.net/gregkh/linux/usb-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, 29 Jun 2004 12:03:55 +0000 (05:03 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] ia64: Quiet corrected errors (CMC/CPE)
Hidetoshi Seto [Tue, 29 Jun 2004 11:17:11 +0000 (04:17 -0700)]
[PATCH] ia64: Quiet corrected errors (CMC/CPE)

Trivial patch to quiet messages about corrected errors.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoia64: Fix UP-build breakage caused by early_console_setup() patch.
David Mosberger [Tue, 29 Jun 2004 10:47:08 +0000 (03:47 -0700)]
ia64: Fix UP-build breakage caused by early_console_setup() patch.

22 years ago[BRIDGE]: Fix message age in bridge STP config packets.
Stephen Hemminger [Tue, 29 Jun 2004 09:14:15 +0000 (02:14 -0700)]
[BRIDGE]: Fix message age in bridge STP config packets.

This is a revised version of Kishore's patch to set message age appropriately
in STP configuration packets.

Signed-off-by: Kishore A K <KishoreAK@myw.ltindia.com>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: fix reloc-out-of-range error on module loading
Tony Luck [Tue, 29 Jun 2004 08:52:46 +0000 (01:52 -0700)]
[PATCH] ia64: fix reloc-out-of-range error on module loading

I'm hitting this problem because the module I want to load was
compiled with -g, so the filesize is absolutely huge.  kernel/module.c
does a vmalloc() to inhale the entire file, and then two calls to
module_alloc() (which calls vmalloc() on ia64) to load the 'init' and
'core' sections. The 'init' is small and slips into a gap early in the
vmalloc playspace, while the 'core' area is allocated after the huge
area that was allocated for the inhaled copy of the whole file.

I made a one coding change to Jean-Marc's version, adding a check to
see whether the init/core sections are close enough together for the
PCREL21B to reach (they almost always are).

I've kept the test that there are no jumps from core to init (though
the message that is printed is almost as unhelpful as the one that you
get when you statically link a module into the kernel that has calls
to the discarded .exit section :-)

This patch stalled out before on the question of whether a PLT was
overkill for a section-to-section branch, and whether it would be
better to use relaxation techniques to extend the range.  Doing that
might be more elegant in some way, but it needs a whole heap of extra
code (to count how many relaxed branches need to be added and
allocated them as needed).  This seems a lot of extra code that is
only ever going to be exercised by maniacs like me with 49MB .ko
files.

I fixed up the comments to be a little more heplful.

Signed-off-by: <tony.luck@intel.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoCset exclude: dtor_core@ameritech.net|ChangeSet|20040629212548|46753
David S. Miller [Tue, 29 Jun 2004 08:16:23 +0000 (01:16 -0700)]
Cset exclude: dtor_core@ameritech.net|ChangeSet|20040629212548|46753

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.6
Greg Kroah-Hartman [Tue, 29 Jun 2004 07:49:04 +0000 (00:49 -0700)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/usb-2.6

22 years ago[PATCH] ia64: update early printk for new console driver
Jesse Barnes [Tue, 29 Jun 2004 07:47:36 +0000 (00:47 -0700)]
[PATCH] ia64: update early printk for new console driver

The Altix console driver has been replaced in Andrew's tree by a new
one that uses the serial core API.  Update the early_console_setup
routine to use the new config option so that it's ready when the
driver hits Linus' tree.  This will also fix a build bug since the old
driver hasn't been updated.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PKT_SCHED]: Use get_jiffies_64()
Stephen Hemminger [Tue, 29 Jun 2004 07:45:35 +0000 (00:45 -0700)]
[PKT_SCHED]: Use get_jiffies_64()

The packet scheduler simulates 64 bit jiffies on 32 bit platforms by running
a timer keeping a mark and and offset.  Since there is no locking and this is
racy and doesn't handle jiffie wrap real well.

We can use get_jiffies_64 on 2.6 do get what is needed.
The downside is the overhead of a function call, and a cache miss in
get_jiffies_64.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Eliminate guard from TDIFF_SAFE.
Stephen Hemminger [Tue, 29 Jun 2004 07:40:01 +0000 (00:40 -0700)]
[PKT_SCHED]: Eliminate guard from TDIFF_SAFE.

The last argument in the PSCHED_TDIFF_SAFE is no longer used;
only usage eliminated by previous patch. It gets rid of a bad macro
usage.

Also, can use the standard min_t macro which also eliminates the
macro problem of double evaluation of bound.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Bad TDIFF_SAFE in csz.
Stephen Hemminger [Tue, 29 Jun 2004 07:38:31 +0000 (00:38 -0700)]
[PKT_SCHED]: Bad TDIFF_SAFE in csz.

This code in the csz scheduler, is just plain broken.  The TDIFF_SAFE
effectively expands to:
unsigned long delay = now - q->t_c;
if (delay > 0) {
delay = 0;
goto do_reset;
}
if (delay >> q->delta_log)

So delay is always 0!  I assume that what was originally intended
is the to keep delay bounded to 1<<q->delta_log.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: fix incorrect initialization of ar.k4 for BP
Kenneth W. Chen [Tue, 29 Jun 2004 07:36:05 +0000 (00:36 -0700)]
[PATCH] ia64: fix incorrect initialization of ar.k4 for BP

The patch to move the current pointer for init_task from region 7 to
region 5 inadvertendly caused ar.k4 (CURRENT_STACK) to be initialized
improperly for the bootstrap processor.  Fix this by initializing it
to -1.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agosparse: fix pointer/integer confusion
Linus Torvalds [Tue, 29 Jun 2004 07:35:41 +0000 (00:35 -0700)]
sparse: fix pointer/integer confusion

I don't think we're in K&R any more, Toto.

If you want a NULL pointer, use NULL. Don't use an integer.

Most of the users really didn't seem to know the proper type.

22 years agoUSB: fix bug where removing usb-serial modules or usb serial devices could oops
Greg Kroah-Hartman [Tue, 29 Jun 2004 07:33:28 +0000 (00:33 -0700)]
USB: fix bug where removing usb-serial modules or usb serial devices could oops

This fixes the issue where the Generic driver would bind to all usb-serial
devices, so the disconnect would not properly go to the real driver that
controlled the device.  This was very bad when unloading the module with
the device still connected.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PKT_SCHED]: Packet scheduler exports.
Stephen Hemminger [Tue, 29 Jun 2004 07:27:19 +0000 (00:27 -0700)]
[PKT_SCHED]: Packet scheduler exports.

The packet scheduling code has some ugly define's which were to deal with
configuration possibilities and the old style module exports.  With the current
2.6 method, this is unnecessary.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Compile warning and logic rearrangement in sch_prio enqueue.
Dmitry Torokhov [Tue, 29 Jun 2004 07:25:48 +0000 (00:25 -0700)]
[PKT_SCHED]: Compile warning and logic rearrangement in sch_prio enqueue.

When CONFIG_NET_CLS_ACT is not set 'result' variable in prio_classify is
unused. Also I was looking over the rest of the module and had hard time
understanding the logic in prio_enqueue - I rearranged it a bit for better
readability. Plus there are some formatting changes.

Signed-off-by: Dmitry Torokhov <dtor_core@ameritech.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ia64: Clean up needlessly large stack frames in PAL-call stubs
Kenneth W. Chen [Tue, 29 Jun 2004 07:25:14 +0000 (00:25 -0700)]
[PATCH] ia64: Clean up needlessly large stack frames in PAL-call stubs

The code allocated all 96 stacked registers, for no apparent reason.

Also, fix ia64_pal_call_static() to switch RSE to enforced-lazy, LE
mode before the PAL-call.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[NET]: Two tc action fixes.
Jamal Hadi Salim [Tue, 29 Jun 2004 07:20:59 +0000 (00:20 -0700)]
[NET]: Two tc action fixes.

Another patchlet after turning on preempt and rerunning tests.
- against dev.c is a genuine bug - i wish preempt would have
given a more sane hint. Strange on how its a non issue when preempt is
off.
- against act_api.c is just an annoyance. I removed the kmod because it
will only make sense to list actions if policies exist for that action.
And if policies exist, the module would be loaded.

Signed-off-by: Jamal Hadi Salim <hadi@zynx.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[NETFILTER]: Fix IP_NF_TARGET_NOTRACK config deps.
Patrick McHardy [Tue, 29 Jun 2004 07:18:21 +0000 (00:18 -0700)]
[NETFILTER]: Fix IP_NF_TARGET_NOTRACK config deps.

22 years ago[PATCH] ia64: change ia64_switch_mode_{phys,virt}() to preserve bsp/sp
Kenneth W. Chen [Tue, 29 Jun 2004 07:14:57 +0000 (00:14 -0700)]
[PATCH] ia64: change ia64_switch_mode_{phys,virt}() to preserve bsp/sp

Change ia64_switch_mode_phys() and ia64_switch_mode_virt() to preserve
the virtual sp/bsp and update the call-sites accordingly.  This avoids
problems with the init_task pointer which lives in region 5 now.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PATCH] ia64: Don't use -mtune=merced for gcc 3.4
H. J. Lu [Tue, 29 Jun 2004 06:33:25 +0000 (23:33 -0700)]
[PATCH] ia64: Don't use -mtune=merced for gcc 3.4

Gcc 3.4 has a new DFA scheduler for ia64. Unfortunately, it is not
well tested for Itanium 1. When I tried to use gcc 3.4 to compile
2.6 kernel configured for Merced, gcc failed in many places:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15598
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15653
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15655
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16130
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16142
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16143

Some of them have been fixed. But I am afraid many more remain. I don't
know how many Itanium 1 machines left in production use. If people want
to optimize kernel for Itanium 1, they can stick with the older gccs.
Or they should upgrade their machines. I think the gcc developer's time
should be better spent on somewhere else. I have been using this patch
for a while, kernel seems to work OK.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PATCH] ia64: fix a couple of comment typos
Bjorn Helgaas [Tue, 29 Jun 2004 06:26:39 +0000 (23:26 -0700)]
[PATCH] ia64: fix a couple of comment typos

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years ago[PATCH] ia64: define cpu_logical_id() always
Bjorn Helgaas [Tue, 29 Jun 2004 05:57:11 +0000 (22:57 -0700)]
[PATCH] ia64: define cpu_logical_id() always

Define cpu_logical_id() even when !SMP.  I added uses of this in some
iosapic printk's, which broke the UP build.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Tue, 29 Jun 2004 05:31:29 +0000 (22:31 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PATCH] USB Storage: Unusual_devs.h update
Alan Stern [Tue, 29 Jun 2004 02:50:46 +0000 (19:50 -0700)]
[PATCH] USB Storage: Unusual_devs.h update

On Sat, 26 Jun 2004, Edward C. Bailey wrote:

> Hello,
>
>     I was downloading some pictures from my Digital Wallet to my Fedora
> Core 2 system at the same time I happened to be watching
> /var/log/messages.  Here's what I saw:
>
> Jun 26 12:16:02 raptor kernel: usb 1-1.2: new full speed USB device using address 6
> Jun 26 12:16:02 raptor kernel: usb-storage: This device (097a,0001,0001 S 06 P 01) has unneeded SubClass and Protocol entries in unusual_devs.h
> Jun 26 12:16:02 raptor kernel:    Please send a copy of this message to <linux-usb-devel@lists.sourceforge.net>
>
> Given that Minds@Work are out of business, you might not care about this
> information, but I thought I'd pass it on, just in case you do... :-)

What the heck, we'll use it anyway.  Thanks for sending this in.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB: Fix pegasus_set_multicast lockup in drivers/usb/net/pegasus.c
Herbert Xu [Tue, 29 Jun 2004 02:49:30 +0000 (19:49 -0700)]
[PATCH] USB: Fix pegasus_set_multicast lockup in drivers/usb/net/pegasus.c

I strongly recommend that this patch be applied.

Without this patch, running tcpdump on an SMP machine with the
pegasus adapter locks up 9 times out of 10.  This is what happens:

CPU0 CPU1
pegasus_start_xmit
netif_stop_queue
pegasus_set_multicast
netif_stop_queue
netif_wake_queue

Which crashes if another packet is sent to pegasus_start_xmit before
the first one is finished.

If there are other drivers doing this, please fix them too.

PS I submitted this to Petkan years ago but he probably lost it.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB: pwc-uncompress.h
Andrew Morton [Tue, 29 Jun 2004 02:48:16 +0000 (19:48 -0700)]
[PATCH] USB: pwc-uncompress.h

For some reason, gcc-2.95.4 dies horridly on those asmlinkage
declarations.

I was unable to work out _why_ those functions have asmlinkage, as there
seem to be no instances of them - nobody calls
pwc_register_decompressor().
 What's up with that?

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB: PL2303 module, new IDs
Petr Slansky [Tue, 29 Jun 2004 02:47:12 +0000 (19:47 -0700)]
[PATCH] USB: PL2303 module, new IDs

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] USB Storage: unusual_devs.h addition
Torsten Scherer [Tue, 29 Jun 2004 02:46:24 +0000 (19:46 -0700)]
[PATCH] USB Storage: unusual_devs.h addition

took me a while to get my external usb drive running under linux-2.6.6,
appears to need the appended fix. according to the header in unusual_devs.h
one should send them to you, so here you go.

the funny thing is that it works fine unter linux-2.6.0-test11 on different
hardware, but then i'm out of my depth concerning what might have been
changed in the usb driver in the meantime. i don't really follow the
changes. i didn't find any real documentation about what these flags do,
only a couple of "my usb drive worked with 2.4 but doesn't work any more
with 2.6" messages on the web, and some of them pointed to unusual_devs.h. i
do not claim to know what i've done with this fix, but i'd like to see it
officially included. :-)

T:  Bus=04 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0402 ProdID=5621 Rev= 1.03
S:  Product=USB 2.0 Storage Device
S:  SerialNumber=00042222200000113608
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[PATCH] Remove NOOP code from fs/buffer.c::drop_buffers()
Anton Altaparmakov [Tue, 29 Jun 2004 02:36:39 +0000 (19:36 -0700)]
[PATCH] Remove NOOP code from fs/buffer.c::drop_buffers()

I noticed that fs/buffer.c::drop_buffers() contains some code that
AFAICS doesn't actually do anything other than waste cpu cycles so here
is patch to remove it...  The local variable was_uptodate is being
messed with but it is not being read anywhere so it seems entirely
pointless.

I assume this must be a remainder from old code which mucked around with
the page uptodateness but which has since been (re-)moved.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparse: fix ugly include/linux/efi.h typedef
Mika Kukkonen [Tue, 29 Jun 2004 02:34:15 +0000 (19:34 -0700)]
[PATCH] sparse: fix ugly include/linux/efi.h typedef

efi.h declares a function type, and then uses that as an argument to
another function, and expects the compiler to magically demote the
function to a function pointer.

Even a gcc person (rth) was surprised that this was legal, and it
doesn't match any other use of a function pointer in the kernel, and
sparse doesn't like the implicit type-conversion.

So make the type sane in the first place, instead of depending on
a very weird corner case of the C language.

22 years ago[PATCH] ppc64: fix memset
Paul Mackerras [Tue, 29 Jun 2004 02:34:04 +0000 (19:34 -0700)]
[PATCH] ppc64: fix memset

This fixes a bug in the ppc64 memset where the code that gets the
destination address aligned (or is supposed to) was looking at the
bottom 3 bits of the count rather than the destination address.  The
result of this was that the kernel wouldn't boot on POWER3 machines.
The patch also removes an unnecessary duplicate instruction.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[ARM] Update ARM kernel install script
Russell King [Mon, 28 Jun 2004 22:07:11 +0000 (23:07 +0100)]
[ARM] Update ARM kernel install script

- fix up for kbuild changes
- run users own kernel install script if present

22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Mon, 28 Jun 2004 10:29:10 +0000 (03:29 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoUSB: provide support for the HX version of pl2303 chips
Greg Kroah-Hartman [Mon, 28 Jun 2004 10:03:18 +0000 (03:03 -0700)]
USB: provide support for the HX version of pl2303 chips

Thanks to Gordon Elam <gbe@shoremicro.com> for the information needed
to do this.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
22 years ago[NETLINK]: Fix NLMSG_OK/RTA_OK length checking.
Christoph Hellwig [Mon, 28 Jun 2004 08:32:38 +0000 (01:32 -0700)]
[NETLINK]: Fix NLMSG_OK/RTA_OK length checking.

Verify at least a full header is there before derefencing
length struct member.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 28 Jun 2004 07:39:04 +0000 (00:39 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] move prototype for __get_vm_area() to a sane location
Nicolas Pitre [Mon, 28 Jun 2004 07:31:48 +0000 (00:31 -0700)]
[PATCH] move prototype for __get_vm_area() to a sane location

There are currently two files besides mm/vmalloc.c that make use of that
function:

- arch/sh/kernel/cpu/sh4/sq.c
  which defined its own prototype locally risking not being in sync with
  the real function, and

- arch/arm/kernel/module.c which has no prototype at all and cause
  build warnings.

This fixes those issues

22 years ago[PATCH] remove extraneous security_inode_setattr call in hugetlbfs
Chris Wright [Mon, 28 Jun 2004 07:30:53 +0000 (00:30 -0700)]
[PATCH] remove extraneous security_inode_setattr call in hugetlbfs

remove extraneous security_inode_setattr call in hugetlbfs, it's already
done by VFS.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] nfs oops fix
Andre Noll [Mon, 28 Jun 2004 07:30:18 +0000 (00:30 -0700)]
[PATCH] nfs oops fix

Al's current changes to struct nameidata broke nfsroot for my discless
clients (oops in nfs_fill_super).  The patch below fixes this problem
for me.

Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[NET]: Fix typos in pktgen docs.
Karsten Desler [Mon, 28 Jun 2004 06:15:54 +0000 (23:15 -0700)]
[NET]: Fix typos in pktgen docs.

22 years ago[DECNET]: Fix signed bug in net/decnet/dn_nsp_in.c:dn_nsp_linkservice()
Olaf Hering [Mon, 28 Jun 2004 06:14:35 +0000 (23:14 -0700)]
[DECNET]: Fix signed bug in net/decnet/dn_nsp_in.c:dn_nsp_linkservice()

char can be either signed or unsigned, depending on the target system.

Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[AIO]: kiocb->private is too large for kiocb's on-stack.
William Lee Irwin III [Mon, 28 Jun 2004 06:10:38 +0000 (23:10 -0700)]
[AIO]: kiocb->private is too large for kiocb's on-stack.

sizeof(struct kiocb) is dangerously large for a structure commonly
allocated on-stack. This patch converts the 24*sizeof(long) field,
->private, to a void pointer for use by file_operations entrypoints.
A ->dtor() method is added to the kiocb in order to support the release
of dynamically allocated structures referred to by ->private.

The sole in-tree users of ->private are async network read/write,
which are not, in fact, async, and so need not handle preallocated
->private as they would need to if ->ki_retry were ever used. The sole
truly async operations are direct IO pread()/pwrite() which do not
now use ->ki_retry(). All they would need to do in that case is to
check for ->private already being allocated for async kiocbs.

This rips 88B off the stack on 32-bit in the common case.

Signed-off-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoppc64: fix silly typo ("1" vs "i").
Linus Torvalds [Mon, 28 Jun 2004 02:06:26 +0000 (19:06 -0700)]
ppc64: fix silly typo ("1" vs "i").

22 years ago[PATCH] minor CAP_DAC_OVERRIDE fix
Andries E. Brouwer [Sun, 27 Jun 2004 16:35:45 +0000 (09:35 -0700)]
[PATCH] minor CAP_DAC_OVERRIDE fix

CAP_DAC_OVERRIDE fails to give search permission in a directory with
mode 0.

Patch acked by Chris Wright <chrisw@osdl.org>
Signed-off-by: Andries Brouwer <aeb@cwi.nl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove include/asm-*/init.h
Alexey Dobriyan [Sun, 27 Jun 2004 16:35:33 +0000 (09:35 -0700)]
[PATCH] Remove include/asm-*/init.h

There's no reason to keep files that
a) nobody #include's
b) produce #error

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix GFP zone modifier interators
Andy Whitcroft [Sun, 27 Jun 2004 16:35:21 +0000 (09:35 -0700)]
[PATCH] fix GFP zone modifier interators

For each node there are a defined list of MAX_NR_ZONES zones.  These are
selected as a result of the __GFP_DMA and __GFP_HIGHMEM zone modifier flags
being passed to the memory allocator as part of the GFP mask.  Each node
has a set of zone lists, node_zonelists, which defines the list and order
of zones to scan for each flag combination.  When initialising these lists
we iterate over modifier combinations 0 ..  MAX_NR_ZONES.  However, this is
only correct when there are at most ZONES_SHIFT flags.  If another flag is
introduced zonelists for it would not be initialised.

This patch introduces GFP_ZONETYPES (based on GFP_ZONEMASK) as a bound for
the number of modifier combinations.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] vc locking
Alan Cox [Sun, 27 Jun 2004 16:35:10 +0000 (09:35 -0700)]
[PATCH] vc locking

Like a few other drivers the vc driver is doing unlocked careless
references to file offsets.  Its got kind of 2.2 locking that hasnt been
updated in the lseek function so someone at least tried.

Fortunately we have a real lock for this and can just make lseek use that
too.

The 'assume 64bit load is atomic' bug seems to be very widely spread

akpm@osdl.org:

   Move declarations to vt_kern.h

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] radeonfb accel capabilities
David Eger [Sun, 27 Jun 2004 16:34:58 +0000 (09:34 -0700)]
[PATCH] radeonfb accel capabilities

Here's the accel capabilities patch for radeonfb.  It updates radeonfb to
advertise its acceleration capabilities via fbinfo.flags.  I've tested this
on my box, and it gives me a nice fast console.

defect: "$ fbset -accel 0" doesn't work for radeonfb -- disabling accel
will only work from the kernel command line :-/

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Eger <eger@havoc.gtf.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Fix smbfs readdir oops
Zwane Mwaikambo [Sun, 27 Jun 2004 16:34:47 +0000 (09:34 -0700)]
[PATCH] Fix smbfs readdir oops

This has been reported a couple of times and is consistently causing some
folks grief, so Urban, would you mind terribly if i send this patch to at
least clear current bug reports.  If there is additional stuff you want
ontop of this let me know and i can send a follow up patch.

The bug is that at times we haven't completed setting up the smb_ops so we
have a temporary 'null' ops in place until the connection is completely up.
 With this setup it's possible to hit ->readdir() whilst the null ops are
still in place, so we put the process to sleep until the connection setup
is complete and then call the real ->readdir().

This patch addresses the bugzilla report at
http://bugzilla.kernel.org/show_bug.cgi?id=1671

Signed-off-by: Zwane Mwaikambo <zwane@linuxpower.ca>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] x86 stack dump fixes
Andrew Morton [Sun, 27 Jun 2004 16:34:36 +0000 (09:34 -0700)]
[PATCH] x86 stack dump fixes

- Fix the !CONFIG_FRAME_POINTER && !CONFIG_KALLSYMS output formatting.

- Make print_context_stack() static

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>