aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-10-20[PATCH] uml: MODE_TT is bustJeff Dike1-0/+1
arch/um/sys-x86_64/ptrace.c:20:1: warning: "SC_SS" redefined In file included from arch/um/include/sysdep/ptrace.h:18, from include/asm/ptrace-generic.h:12, from include/asm/ptrace.h:15, from arch/um/sys-x86_64/ptrace.c:8: arch/um/include/sysdep/sc.h:38:1: warning: this is the location of the previous definition arch/um/sys-x86_64/ptrace.c: In function 'putreg': arch/um/sys-x86_64/ptrace.c:63: warning: implicit declaration of function 'SC_FS_BASE' arch/um/sys-x86_64/ptrace.c:63: error: invalid lvalue in unary '&' arch/um/sys-x86_64/ptrace.c:63: warning: implicit declaration of function 'SC_GS_BASE' arch/um/sys-x86_64/ptrace.c:63: error: invalid lvalue in unary '&' arch/um/sys-x86_64/ptrace.c: In function 'getreg': arch/um/sys-x86_64/ptrace.c:101: error: invalid lvalue in unary '&' arch/um/sys-x86_64/ptrace.c:101: error: invalid lvalue in unary '&' I'd have to say that the fix for this, for now, is this: Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-20[PATCH] Make <linux/personality.h> userspace proofRalf Baechle1-0/+7
<linux/personality.h> contains the constants for personality(2) but also some defintions that are useless or even harmful in userspace such as the personality() macro. Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-20[PATCH] separate bdi congestion functions from queue congestion functionsAndrew Morton17-104/+126
Separate out the concept of "queue congestion" from "backing-dev congestion". Congestion is a backing-dev concept, not a queue concept. The blk_* congestion functions are retained, as wrappers around the core backing-dev congestion functions. This proper layering is needed so that NFS can cleanly use the congestion functions, and so that CONFIG_BLOCK=n actually links. Cc: "Thomas Maier" <[email protected]> Cc: "Jens Axboe" <[email protected]> Cc: Trond Myklebust <[email protected]> Cc: David Howells <[email protected]> Cc: Peter Osterlund <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-20[PATCH] export clear_queue_congested and set_queue_congestedThomas Maier2-10/+12
Export the clear_queue_congested() and set_queue_congested() functions located in ll_rw_blk.c The functions are renamed to blk_clear_queue_congested() and blk_set_queue_congested(). (needed in the pktcdvd driver's bio write congestion control) Signed-off-by: Thomas Maier <[email protected]> Cc: Peter Osterlund <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-20[PATCH] ecryptfs: use special_file()Pekka Enberg1-4/+1
Use the special_file() macro to check whether an inode is special instead of open-coding it. Acked-by: Mike Halcrow <[email protected]> Cc: Phillip Hellewell <[email protected]> Signed-off-by: Pekka Enberg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-20[PATCH] direct-io: sync and invalidate file region when falling back to ↵Jeff Moyer1-6/+45
buffered write When direct-io falls back to buffered write, it will just leave the dirty data floating about in pagecache, pending regular writeback. But normal direct-io semantics are that IO is synchronous, and that it leaves no pagecache behind. So change the fallback-to-buffered-write code to sync the file region and to then strip away the pagecache, just as a regular direct-io write would do. Acked-by: Jeff Moyer <[email protected]> Cc: Zach Brown <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-20[PATCH] e100: fix reboot -f with netconsole enabledAuke Kok1-19/+31
When rebooting with netconsole over e100, the driver shutdown code would deadlock with netpoll. Reduce shutdown code to a bare minimum while retaining WoL and suspend functionality. Signed-off-by: Auke Kok <[email protected]> Cc: Jeff Garzik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-20[GFS2] gfs2_dir_read_data(): fix uninitialized variable usageAdrian Bunk1-3/+1
In the "if (extlen)" case, "bh" was used uninitialized. This patch changes the code to what seems to have been intended. Spotted by the Coverity checker. This patch also removes a pointless "bh = NULL" asignment (the variable is never accessed again after this point). Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
2006-10-20[GFS2] fs/gfs2/ops_fstype.c:fill_super_meta(): fix NULL dereferenceAdrian Bunk1-2/+2
Don't dereference new->s_root when we do know it's NULL. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
2006-10-20[GFS2] fs/gfs2/dir.c:gfs2_dir_write_data(): don't use an uninitialized variableAdrian Bunk1-1/+1
In the "if (extlen)" case, "new" might be used uninitialized. Looking at the code, it should be initialized to 0. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
2006-10-20[GFS2] fs/gfs2/ops_fstype.c:gfs2_get_sb_meta(): remove unused variableAdrian Bunk1-3/+0
The Coverity checker spotted this unused variable. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
2006-10-20[GFS2] fs/gfs2/dir.c:gfs2_dir_write_data(): remove dead codeAdrian Bunk1-2/+0
The Coverity checker spotted this obviously dead code. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
2006-10-20[GFS2] gfs2 endianness bug: be16 assigned to be32 fieldAl Viro1-1/+1
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
2006-10-20[GFS2] Fix bmap to map extents properlySteven Whitehouse6-16/+21
This fix means that bmap will map extents of the length requested by the VFS rather than guessing at it, or just mapping one block at a time. The other callers of gfs2_block_map are audited to ensure they send the correct max extent lengths (i.e. set bh->b_size correctly). Signed-off-by: Steven Whitehouse <[email protected]>
2006-10-20[DLM] fix iovec length in recvmsgPatrick Caulfield1-0/+1
I didn't spot that the msg_iovlen was set to 2 if there were two elements in the iovec but left at zero if not :( I think this might be why bob was still seeing trouble. Signed-Off-By: Patrick Caulfield <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
2006-10-20[Bluetooth] Fix HID disconnect NULL pointer dereferenceMarcel Holtmann1-4/+2
The latest HID disconnect sequence change introduced a NULL pointer dereference. For the quirk to handle buggy remote HID implementations, it is enough to wait for a potential control channel disconnect from the remote side and it is also enough to wait only 500 msecs. Signed-off-by: Marcel Holtmann <[email protected]>
2006-10-20[Bluetooth] Add missing entry for Nokia DTL-4 PCMCIA cardMarcel Holtmann1-0/+1
The device id for the Nokia DTL-4 PCMCIA card was missing. This patch adds it back to the list of supported devices. Signed-off-by: Marcel Holtmann <[email protected]>
2006-10-20[Bluetooth] Add support for newer ANYCOM USB donglesMarcel Holtmann1-0/+3
This patch adds the vendor and product id of the ANYCOM Bluetooth USB-200 and USB-250 dongles and sets a flag to send HCI_Reset as the first command. Signed-off-by: Marcel Holtmann <[email protected]
2006-10-20[NET]: Can use __get_cpu_var() instead of per_cpu() in loopback driver.Eric Dumazet1-3/+3
As BHs are off in loopback_xmit(), preemption cannot occurs, so we can use __get_cpu_var() instead of per_cpu() (and avoid a preempt_enable()/preempt_disable() pair) Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-10-20[SPARC]: Clean up asm-sparc/elf.h pollution in userspace.David Woodhouse1-21/+20
We don't need to export sparc_elf_hwcap() to userspace, and it doesn't build there. Remove it by moving it inside #ifdef __KERNEL__, along with some other things which don't need to be exported. Signed-off-by: David Woodhouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-10-20[IPV4] inet_peer: Group together avl_left, avl_right, v4daddr to speedup ↵Eric Dumazet1-3/+4
lookups on some CPUS Lot of routers/embedded devices still use CPUS with 16/32 bytes cache lines. (486, Pentium, ... PIII) It makes sense to group together fields used at lookup time so they fit in one cache line. This reduce cache footprint and speedup lookups. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-10-20[TCP]: One NET_INC_STATS() could be NET_INC_STATS_BH in tcp_v4_err()Eric Dumazet1-1/+1
I believe this NET_INC_STATS() call can be replaced by NET_INC_STATS_BH(), a little bit cheaper. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-10-20[NETFILTER]: Missing check for CAP_NET_ADMIN in iptables compat layerBjörn Steinbrink1-0/+3
The 32bit compatibility layer has no CAP_NET_ADMIN check in compat_do_ipt_get_ctl, which for example allows to list the current iptables rules even without having that capability (the non-compat version requires it). Other capabilities might be required to exploit the bug (eg. CAP_NET_RAW to get the nfnetlink socket?), so a plain user can't exploit it, but a setup actually using the posix capability system might very well hit such a constellation of granted capabilities. Signed-off-by: Björn Steinbrink <[email protected]> Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-10-19[NETPOLL]: initialize skb for UDPStephen Hemminger1-4/+4
Need to fully initialize skb to keep lower layers and queueing happy. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-10-20sh: Convert INTC2 to IRQ table registration.Paul Mundt6-153/+115
Currently the INTC2 code contains a fixed IRQ table that it iterates through to set the handler type, we move this in to the CPU subtype setup code instead and allow for submitting the table that way. This drops the ST40 tables, as nothing has been happening with those processors, while converting the only existing users to use the new table directly (SH7760 and SH7780). Signed-off-by: Paul Mundt <[email protected]>
2006-10-19[SPARC64]: Fix of_ioremap().David S. Miller1-1/+6
Use request_mem_region() if IORESOURCE_MEM. Signed-off-by: David S. Miller <[email protected]>
2006-10-19[SPARC64]: Compute dma_end argument to sabre_pbm_init() correctly.David S. Miller1-1/+1
virtual-dma property layout is [start, size] not [start, end]. Signed-off-by: David S. Miller <[email protected]>
2006-10-19[PATCH] wireless: WE-20 compatibility for ESSID and NICKN ioctlsJohn W. Linville1-1/+32
WE-21 changed the ABI for the SIOC[SG]IW{ESSID,NICKN} ioctls by dropping NULL termination. This patch adds compatibility code so that WE-21 can work properly with WE-20 (and older) tools. Signed-off-by: John W. Linville <[email protected]>
2006-10-19[PATCH] Remove SUID when splicing into an inodeJens Axboe1-4/+15
Originally from Mark Fasheh <[email protected]> generic_file_splice_write() does not remove S_ISUID or S_ISGID. This is inconsistent with the way we generally write to files. Signed-off-by: Mark Fasheh <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
2006-10-19[PATCH] Add lockless helpers for remove_suid()Jens Axboe2-8/+24
Right now users have to grab i_mutex before calling remove_suid(), in the unlikely event that a call to ->setattr() may be needed. Split up the function in two parts: - One to check if we need to remove suid - One to actually remove it The first we can call lockless. Signed-off-by: Jens Axboe <[email protected]>
2006-10-19[PATCH] Introduce generic_file_splice_write_nolock()Mark Fasheh2-14/+68
This allows file systems to manage their own i_mutex locking while still re-using the generic_file_splice_write() logic. OCFS2 in particular wants this so that it can order cluster locks within i_mutex. Signed-off-by: Mark Fasheh <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
2006-10-19[PATCH] Take i_mutex in splice_from_pipe()Mark Fasheh3-13/+50
The splice_actor may be calling ->prepare_write() and ->commit_write(). We want i_mutex on the inode being written to before calling those so that we don't race i_size changes. The double locking behavior is done elsewhere in splice.c, and if we eventually want _nolock variants of generic_file_splice_write(), fs modules might have to replicate the nasty locking code. We introduce inode_double_lock() and inode_double_unlock() to consolidate the locking rules into one set of functions. Signed-off-by: Mark Fasheh <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
2006-10-19[MIPS] Fix iounmap argument to const volatile.Ralf Baechle2-3/+3
With the existing prototype the following code: const void __iomem *io = ioremap(); x = readb(io); iounmap(io); did result in a warning. Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Reserve syscall numbers for kexec_load.Ralf Baechle5-7/+14
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Update tb0287_defconfigYoichi Yuasa1-83/+99
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Update pnx8550-v2pci_defconfigYoichi Yuasa1-59/+382
In the current pnx8550-v2pci_defconfig CONFIG_SGI_IP22 has been selected. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Update pnx8500-jbs_defconfigYoichi Yuasa1-54/+330
In the current pnx8550-jbs_defconfig CONFIG_SGI_IP22 has been selected. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] More vr41xx pt_regs fixupsYoichi Yuasa1-1/+1
Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] save_context_stack fixAtsushi Nemoto1-1/+1
CONFIG_KALLSYMS=n case is obviously wrong, though it is harmless since CONFIG_KALLSYMS is always enabled with CONFIG_STACKTRACE for now. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Use compat_sys_mount.Ralf Baechle2-2/+2
This fixes mount problems with smbfs, ncpfs and NFSv4. Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Fix O32 personality(2) call with 0xffffffff argument.Thiemo Seufer1-1/+3
A sign extension bug did result in sys_personality being invoked with a 0xffffffffffffffffUL argument, so querying the current personality didn't work. Signed-off-by: Thiemo Seufer <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] A few more pt_regs fixups.Ralf Baechle5-7/+6
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Malta: Fix uninitialized regs pointer.Ralf Baechle1-1/+2
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Delete unneeded pt_regs forward declaration.Ralf Baechle1-2/+0
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19[MIPS] Use kallsyms_lookup_size_offset() instead of kallsyms_lookup()Franck Bui-Huu1-6/+2
This new routine doesn't lookup for symbol names. So we needn't to pass any char buffers or pointer since we don't care about names. Signed-off-by: Franck Bui-Huu <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-19sh: Updates for irq-flow-type naming changes.Paul Mundt4-8/+10
handle_irq_name() and set_irq_chip_and_handler() disappeared, update for desc->name and set_irq_chip_and_handler_name() use. Signed-off-by: Paul Mundt <[email protected]>
2006-10-19sh: Add some missing board headers.Paul Mundt6-0/+420
Some of these were dropped in the header directory rework, add the few missing ones back in. Signed-off-by: Paul Mundt <[email protected]>
2006-10-19sh: Fix exception_handling_table alignment.Paul Mundt4-24/+44
With the recent change ripping out interrupt_table, explicit padding of the table was missing, causing bad things to happen when manually inserting handlers in to the table. This problem particularly showed up in relation to do_fpu_state_restore() which was inserted quite deeply in to the table and ended up scribbling over a slab object. Signed-off-by: Paul Mundt <[email protected]>
2006-10-19sh: Cleanup board header directories.Paul Mundt27-504/+36
Now with the ide.h mess sorted out, most of these boards don't need their own directory. Move the headers out, and update the driver paths. Signed-off-by: Paul Mundt <[email protected]>
2006-10-19sh: Remove board-specific ide.h headers.Paul Mundt7-72/+0
The driver that these were using never made it in to drivers/ide, so kill off the rest of the cruft. These will have to be reworked for board-specific platform devices through libata when they're added back through the setup code. Signed-off-by: Paul Mundt <[email protected]>