ChangeSet@1.2230, 2005-03-16 16:13:02-08:00, torvalds@ppc970.osdl.org isofs: Handle corupted rock-ridge info slightly better. Keyword here being 'slightly'. The code is a mess. ChangeSet@1.2217.1.1, 2005-03-16 15:05:28-08:00, hugh@veritas.com [PATCH] tasklist left locked On 4-way SMP, about one reboot in twenty hangs while killing processes: exit needs exclusive tasklist_lock, but something still holds read_lock. do_signal_stop race case misses unlock, and fixing it fixes the symptom. Signed-off-by: Hugh Dickins <hugh@veritas.com> Acked-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2228, 2005-03-16 14:52:41-08:00, bunk@stusta.de [IPV6]: Make a function static in ndisc.c Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2227, 2005-03-16 14:50:22-08:00, Robert.Olsson@data.slu.se [PKTGEN]: Fix maintainence of next_tx_{us,ns}. Also a minor fixup from Adrian Bunk. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2226, 2005-03-16 14:48:24-08:00, alan@lxorguk.ukuu.org.uk [BRIDGE]: Limit BRCTL_GET_BRIDGES to 2048 bridges. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2225, 2005-03-16 14:44:28-08:00, herbert@gondor.apana.org.au [IPV4]: Make ipt_REJECT use icmp_send again. As it is ipt_REJECT doesn't work at all with IPsec. Despite my efforts previously in making the policy lookups work there I neglected to change the final call to dst_output so the policy lookup is useless. ipt_REJECT also had a number of deviations from icmp_send which seems to be unjustified. For examples it ignored source routing IP options. There was a bug in icmp_send too :) It didn't set the ICMP type/code values for the policy lookup. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2224, 2005-03-16 14:27:10-08:00, akpm@osdl.org [ISDN]: Set skb->input_dev properly. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2223, 2005-03-16 14:26:05-08:00, davem@sunset.davemloft.net [AX25]: Fix build. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2222, 2005-03-16 14:16:33-08:00, davem@sunset.davemloft.net Merge bk://kernel.bkbits.net/tgraf/net-2.6-sock-reorder into sunset.davemloft.net:/home/davem/src/BK/net-2.6 ChangeSet@1.2221, 2005-03-16 14:15:19-08:00, ralf@linux-mips.org [AX25]: Use skb_queue_purge(). Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2220, 2005-03-16 14:14:21-08:00, tgraf@suug.ch [IPV4]: All deletion of equal addresses only differing by prefix length. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2219, 2005-03-16 14:07:17-08:00, shenkel@gmail.com [TCP]: Use get_unaligned() in tcp_parse_options() TCP options are not guaranteed to be aligned at all, so we should use get_unaligned when accessing u16- or u32-values in the TCP options header to avoid alignment errors on some platforms. The patch applies to vanilla 2.6.11. Signed-off-by: Sven Henkel <shenkel@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2218, 2005-03-16 14:02:46-08:00, davem@sunset.davemloft.net [IPSEC]: Revert ip{,6}_append_data() dst_mtu() conversion. This patch is wrong. This is the *one* place where we do need to use the path MTU. The reason is that when the packet is fragmented we only pay for the IPsec overhead once over all and not once for each fragment. Please revert it for now. The trailer_len in ip_append_data is not quite right as the trailer's length depends on the length of the entire packet. However, it should be harmless since ESP knows how to extend the packet when necessary. Cset exclude: herbert@gondor.apana.org.au|ChangeSet|20050315181807|13007 ChangeSet@1.2217, 2005-03-16 08:29:32-08:00, willy@parisc-linux.org [PATCH] Fix PA-RISC IDE macros Fix prototype of __ide_mm_{in,out}{sw,sl} function prototypes Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2216, 2005-03-16 08:29:15-08:00, willy@parisc-linux.org [PATCH] Fix PA-RISC put_user Some put_user() callers mismatch the type of the object and the pointer. Since PA-RISC is big-endian, the wrong bits were being copied to userspace. Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2215, 2005-03-16 08:28:57-08:00, willy@parisc-linux.org [PATCH] PA-RISC Harmony update Minor line wrapping fix From: Kyle McMartin <kyle@parisc-linux.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2214, 2005-03-16 08:28:40-08:00, willy@parisc-linux.org [PATCH] PA-RISC MUX device is not a boot console MUX should never have had CON_BOOT set Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2213, 2005-03-16 08:28:24-08:00, willy@parisc-linux.org [PATCH] drivers/parisc: Convert to pci_register_driver convert from pci_module_init to pci_register_driver (from:http://kerneljanitors.org/TODO). Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2212, 2005-03-16 08:28:07-08:00, willy@parisc-linux.org [PATCH] PA-RISC power controller update - Small cleanups to LED/LCD support code From: Grant Grundler <grundler@parisc-linux.org> - asm/irq.h is unnecessary Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2211, 2005-03-16 08:27:51-08:00, willy@parisc-linux.org [PATCH] Update PA-RISC documentation directory IODC.txt and mm were removed ages ago Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2185.4.1, 2005-03-16 03:08:22-08:00, peterc@gelato.unsw.edu.au [IPV6]: Fix non-modular build. Remove __exit from functions calls from functions other than module_exit(). Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au> Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.1.8, 2005-03-15 20:34:36-08:00, davem@sunset.davemloft.net [SPARC64]: Override {pgd,pmd}_addr_end() to handle vaddr hole. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2208, 2005-03-15 19:44:28-08:00, trond.myklebust@fys.uio.no [PATCH] NFS: Ensure that dirty pages are written with the right creds. When doing shared mmap writes, the resulting dirty NFS pages may find themselves incapable of being flushed out if I/O is started after the file was released. Make sure we start I/O on all existing dirty pages in nfs_file_release(). Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2207, 2005-03-15 19:37:28-08:00, clameter@sgi.com [PATCH] Fixes to mmtimer driver Fix the issue that the timer sometimes will not fire if the scheduled time has already expired. Plus some simplifications and style changes. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Dimitri Sivanich <sivanich@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2206, 2005-03-15 19:37:12-08:00, ben-linux@fluff.org [PATCH] fs/proc/base.c - fix sparse errors Rewrite initialiser for proc_oom_adjust_operations, and add __user annotations to oom_adjust_{read|write} Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2205, 2005-03-15 19:36:55-08:00, jbarnes@engr.sgi.com [PATCH] gcc4 fix for sn_serial.c The sal_console and sal_console_uart structures have a circular relationship since they both initialize member fields to pointers of one another. The current code forward declares sal_console_uart as extern so that sal_console can take its address, but gcc4 complains about this since the real definition of sal_console_uart is marked 'static'. This patch just removes the static qualifier from sal_console_uart to avoid the inconsistency. Signed-off-by: Jesse Barnes <jbarnes@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2204, 2005-03-15 19:36:39-08:00, pmeda@akamai.com [PATCH] use strncpy in get_task_comm Set_task_comm uses strlcpy, so get_task_comm must use strncpy. Signed-Off-by: Prasanna Meda <pmeda@akamai.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2203, 2005-03-15 19:36:22-08:00, akpm@osdl.org [PATCH] ia64 msi build fix drivers/pci/quirks.c:pci_msi_quirk is only defined if CONFIG_X86_IO_APIC, but msi_init() unconditionally uses it. Acked-by: "Nguyen, Tom L" <tom.l.nguyen@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2202, 2005-03-15 19:36:06-08:00, akpm@osdl.org [PATCH] dvb pll warning fix CC [M] drivers/media/dvb/frontends/dvb-pll.o drivers/media/dvb/frontends/dvb-pll.c:38: warning: excess elements in array initializer drivers/media/dvb/frontends/dvb-pll.c:38: warning: (near initialization for `dvb_pll_thomson_dtt7579.entries') Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2201, 2005-03-15 19:35:49-08:00, akpm@osdl.org [PATCH] saa7134 !CONFIG_MODULES build fix drivers/media/video/saa7134/saa7134-core.c: In function `saa7134_fini': drivers/media/video/saa7134/saa7134-core.c:1215: `pending_registered' undeclared (first use in this function) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2200, 2005-03-15 19:35:33-08:00, akpm@osdl.org [PATCH] esp build fix We forgot to add the spinlock to the device structure. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2185.1.7, 2005-03-15 16:12:13-08:00, torvalds@ppc970.osdl.org Revert recent NUMA and pgd_index() fixes, since they show regressions. People are investigating. Cset exclude: davem@sunset.davemloft.net|ChangeSet|20050315051617|44508 Cset exclude: kravetz@us.ibm.com[torvalds]|ChangeSet|20050314002422|18516 ChangeSet@1.2198, 2005-03-15 18:12:11-06:00, jejb@mulgrave.(none) From: James.Smart@Emulex.Com FC Remote Port Patch This is the reworked patch for fc_remote ports. It started with the "patch2" converted for scsi-misc-2.6 (and updated for the revised midlayer scsi target implementation) Incorporates Andrew Vasquez's updates Adds scsi target scanning on behalf of the driver based on addition of a per-host workq. This patch adds support for FC Remote Ports (which may or may not be FCP targets) to the fc transport. The attributes for the ports are in support of HBAAPI. This patch also implements consistent scsi target id bindings for the remote ports. This patch also moves the dev_loss attribute from the target-level fc_transport device to the remote port device. It also deletes the link_down attribute. The fc_target_block and fc_target_unblock routines have been replaced by fc_remote_port_block and fc_remote_port_unblock. The fc_host_block/unblock functions have been removed (unused). A new interface has been created - fc_remove_host(), which a driver must call immediately prior to scsi_remove_host() when unloading. This tears down the transport, starget, and sdev devices. The transport, which utilizes the midlayer mods to insert transport entities between the shost and starget, results in a device tree such as the following: /sys/class/fc_host/host4/device/rport-4:0-0/target4:0:0/4:0:0:0 Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2197, 2005-03-15 17:58:52-06:00, James.Smart@Emulex.Com [PATCH] add per scsi-host workqueues for defered processing Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2196, 2005-03-15 17:49:34-06:00, andrew.vasquez@qlogic.com [PATCH] target code updates to support scanned targets * add scsi_target_block() and scsi_target_unblock() routines which take a generic-device. Side note: there are mixture of scsi_<object>_<action>() and scsi_<action>_<noun>() functions defined in the scsi APIs -- going forward are there any 'guides' or suggestions on which to choose? * modify scsi_remove_target() to take a generic-device. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2185.3.11, 2005-03-16 00:29:26+01:00, tgraf@suug.ch [NET] Reorder struct tcp_options_received Reorders struct tcp_options_received to avoid padding and shrinks the following fields to more appropriate sizes saving 8 bytes. saw_tstamp: char -> 1 bit tstamp_ok: char -> 1 bit sack_ok: char -> 4 bits wscale_ok: char -> 1 bit snd_wscale: u8 -> 4 bits rcv_wscale: u8 -> 4 bits dsack: u8 -> 1 bit Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.10, 2005-03-16 00:27:28+01:00, tgraf@suug.ch [NET] Reorder struct ipv6_pinfo Converts hop_limit and mcast_hops to signed 16 bit types saving 4 bytes on 32bit archs and another 4 bytes on 64bit archs. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.9, 2005-03-16 00:24:54+01:00, tgraf@suug.ch [NET] Reorder struct sock Reorders struct sock to avoid padding and shrinks the following fields to more appropriate sizes saving 12 bytes and some more on 64bit architectures. sk_shutdown: char -> 2 bits sk_no_checks: char -> 2 bits sk_userlocks: char -> 4 bits Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.8, 2005-03-16 00:23:08+01:00, tgraf@suug.ch [NET] Convert sk_queue_shrunk into SOCK_QUEUE_SHRUNK flag Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.7, 2005-03-16 00:20:49+01:00, tgraf@suug.ch [NET] Convert sk_localroute into SOCK_LOCALROUTE flag and use RT_CONN_FLAGS where appropriate Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.6, 2005-03-16 00:15:15+01:00, tgraf@suug.ch [NET] Convert sk_no_largesend into SOCK_NO_LARGESEND flag Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.5, 2005-03-16 00:10:30+01:00, tgraf@suug.ch [NET] Convert sk_rcvtstamp into SOCK_RCVTSTAMP flag Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.4, 2005-03-16 00:05:30+01:00, tgraf@suug.ch [NET] Convert sk_debug into SOCK_DBG flag Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.3, 2005-03-15 23:57:29+01:00, tgraf@suug.ch [NET] Convert sk_user_write_queue into SOCK_USE_WRITE_QUEUE flag Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.2, 2005-03-15 23:50:36+01:00, tgraf@suug.ch [NET] Convert sk_zapped into SOCK_ZAPPED flag Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.3.1, 2005-03-15 23:40:20+01:00, tgraf@suug.ch [NET] Reorder struct inet_sock tos: int -> 8bit uc_ttl: int -> 16 bit cmsg_flags: int -> 16 bit hdrincl: 8bit -> 1 bit mc_loop: 8bit -> 1 bit Saves 12 bytes together with the reordering. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2195, 2005-03-15 16:38:02-06:00, akpm@osdl.org [PATCH] st msleep warning fix drivers/scsi/st.c:805: warning: implicit declaration of function `msleep_interruptible' Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2185.2.5, 2005-03-15 21:07:13+01:00, davej@redhat.com [WATCHDOG] Makefile-patch The comment at the top of the Makefile suggests that the current ordering is incorrect. Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> ChangeSet@1.2185.2.4, 2005-03-15 20:53:50+01:00, wim@iguana.be [WATCHDOG] pcwd_pci-register-driver-patch convert from pci_module_init to pci_register_driver Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> ChangeSet@1.2194, 2005-03-15 13:52:18-06:00, Kai.Makisara@kolumbus.fi [PATCH] SCSI tape security: require CAP_ADMIN for SG_IO etc. The kernel currently allows any user permitted to access the tape device file to send the tape drive commands that may either make the tape drivers internal state inconsistent or to change the drive parameters so that other users find the drive to be unusable. This patch changes ioctl handling so that SG_IO, SCSI_IOCTL_COMMAND, etc. require CAP_ADMIN. This solves the consistency problems for SCSI tapes. The st driver provides user-accessible commands to change the drive parameters that users may need to access. The SCSI command permissions were discussed widely on the linux lists but this did not result in any useful refinement of the permissions. It may very well be that the tape drives are the only devices that users are sometimes given permissions to access and that have security problems with the current command filtering. This patch solves the problem for tapes and no more elaborate patches are needed. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2193, 2005-03-15 13:48:37-06:00, Kai.Makisara@kolumbus.fi [PATCH] SCSI tape fixes: remove f_pos handling This patch applies over the previous patch in this thread. The patch removes updating filp->f_pos. It has been dead code since 2.6.8 and nobody has missed it. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2192, 2005-03-15 13:41:31-06:00, Kai.Makisara@kolumbus.fi [PATCH] SCSI tape fixes (new version): sense descriptor This patch changes the sense descriptor initialization a little faster. Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2185.2.3, 2005-03-15 20:39:19+01:00, ben-linux@fluff.org [WATCHDOG] s3c2410-divide-patch The s3c2410 watchdog driver has an incorrect /2 in the timer calculation, fix this problem Signed-off-by: Ben Dooks <ben-linux@fluff.org> ChangeSet@1.2185.2.2, 2005-03-15 20:32:57+01:00, wim@iguana.be [WATCHDOG] pcwd_usb: usb_control_msg-timeout-patch set timeout in usb_control_msg to USB_COMMAND_TIMEOUT instead of a full second. ChangeSet@1.2185.1.5, 2005-03-15 10:26:35-08:00, bunk@stusta.de [NET]: Remove fc_type_trans() The only user of fc_type_trans (drivers/net/fc/iph5526.c) is removed in Linus' tree. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.1.4, 2005-03-15 10:21:42-08:00, herbert@gondor.apana.org.au [NET]: Replace dst_pmtu with dst_mtu This patch replaces most of the other uses of dst_pmtu with dst_mtu. As far as I can tell these are either identical because dst->path == dst, or they're a straightforward replacement of (the slightly incorrect) dst_pmtu(dst) - dst->header_Len with dst_mtu(dst). Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.1.3, 2005-03-15 10:19:37-08:00, herbert@gondor.apana.org.au [IPV4/IPV6]: Take IPsec overhead into account in tunnels This patch uses dst_mtu instead of dst_pmtu in the various tunnel implementations. As it is they simply ignore the IPsec overhead. This leads to bogus MTU values inside the tunnels. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.1.2, 2005-03-15 10:18:07-08:00, herbert@gondor.apana.org.au [IPV4/IPV6]: Fix IPsec calculation in ip_append_data/ip6_append_data This patch fixes the IPsec overhead handling in ip_append_data and ip6_append_data. As it is they assume that the IPsec overhead is constant. This is not true as with ESP the IPsec overhead will vary as the MTU varies. The result is that they may produce packets that will exceed the MTU when ESP is used. Had it taken the trailer_len into account, it would have produced packets less than the real MTU. By switching to dst_mtu we get the optimal result. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2185.1.1, 2005-03-15 10:16:32-08:00, akpm@osdl.org [NET]: Need to export dev_get_flags() to modules. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.12.2, 2005-03-15 12:38:47-05:00, davej@redhat.com [AGPGART] Enable Intel AGP support for x86-64 again. The previous commit that killed off the _mch driver forgot to reenable the old driver. Signed-off-by: Dave Jones <davej@redhat.com> ChangeSet@1.2191, 2005-03-15 10:42:54-06:00, markh@osdl.org [PATCH] aacraid: adapter naming fix From Mark Salyzyn at Adaptec. This fixes the way the aac device's id is calculated. Signed-off-by: Mark Haverkamp <markh@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2190, 2005-03-15 10:39:37-06:00, andmike@us.ibm.com [PATCH] SCSI: Add TASK_ABORTED to status_byte macro Add TASK_ABORTED and ACA_ACTIVE to status_byte macro. Signed-off-by: Mike Anderson <andmike@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2189, 2005-03-15 10:37:07-06:00, Kai.Makisara@kolumbus.fi [PATCH] SCSI tape fixes: sense descriptor init, bsf->weof, blkno, Problems fixed: - the sense descriptor is cleared before filling - BSF and BSFM are added to the commands causing automatic writing of filemark if the previous operation was write (tar expects this) - the block number is set to unknown (-1) if spacing forward ends at BLANK CHECK - debugging printout of spacing counts fixed to work also with 64-bit systems Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2188, 2005-03-15 09:42:42-06:00, jejb@titanic.il.steeleye.com SCSI: dc395x.c add missing #include <linux/vmalloc.h> Prevents a compile warning about vmalloc/vfree being undefined Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2187, 2005-03-15 09:41:22-06:00, jejb@titanic.il.steeleye.com SCSI: fix transport statistics mismerge Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2186, 2005-03-15 09:33:30-06:00, jejb@titanic.il.steeleye.com Merge by hand pci_ids.h (removal of on ID next to addition of another) scsi_transport_iscsi.c: change of attribute_container_unregister to transport_container_unregister. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2009.18.13, 2005-03-14 21:43:50-08:00, Robert.Olsson@data.slu.se [PKTGEN]: Fix thread_lock() usage. The current code bombs out with preemption enabled. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.12, 2005-03-14 21:41:19-08:00, herbert@gondor.apana.org.au [NETFILTER]: ipt_hashlimit.c needs lockhelp.h Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.11, 2005-03-14 21:39:50-08:00, shemminger@osdl.org [BRIDGE]: No update when hold time is zero Some users, set hold time to zero on bridge so it always does flooding. This is usually when using it with wireless. The new RCU based code changed the behaviour so the bridge would not flood for one GC interval. This patch restores the original behaviour. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.10, 2005-03-14 21:38:52-08:00, herbert@gondor.apana.org.au [IPSEC]: Do not hold state lock while checking size. This can elicit ICMP message output and thus result in a deadlock. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.9, 2005-03-14 21:36:52-08:00, andre@tomt.net [TCP]: Fix gcc-3.4 build when TCP_DEBUG is disabled in tcp.h Signed-off-by: Andre Tomt <andre@tomt.net> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.8, 2005-03-14 21:35:35-08:00, laforge@gnumonks.org [NETFILTER]: ipt_hashlimit: use | instead of & for correct hash key Signed-off-by: Harald Welte <laforge@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.7, 2005-03-14 21:29:54-08:00, ralf@linux-mips.org [AX25]: Fix ax25_get_socket locking In an attempt to return a locked socket ax25_get_socket() was calling lock_sock() with a spinlock held, bad idea. Making matters worse it's only user is running in bottom half context resulting in a potencial attempt to sleep in bottom half context, so fix the locking there as well. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.6, 2005-03-14 21:28:10-08:00, herbert@gondor.apana.org.au [NETLINK]: Fix multicast bind/autobind race netlink_autobind has always set nlk_sk(sk)->groups to zero. This is unnecessary because sk_alloc already zeroes the entire structure. Since a socket can only be bound once netlink_autobind doesn't need to zero groups at all. This had been safe until I added mc_list. Now it is possible for netlink_bind to race against netlink_autobind running on the same socket on another CPU. The result would be a socket that's on mc_list with groups set to zero. This socket will be left on the list even after it is destroyed. The fix is to remove the zeroing in netlink_autobind. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.5, 2005-03-14 21:27:07-08:00, herbert@gondor.apana.org.au [IPV6]: Reload skb->dst after xfrm6_route_forward() While replacing dst_pmtu in ip6_output I found this little gem. In ip6_forward we're not reloading the dst pointer after calling xfrm6_route_forward. So all subsequent dereferences of dst will refer to its pre-IPsec value. The solution is of course to refresh its value. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.4, 2005-03-14 21:26:23-08:00, herbert@gondor.apana.org.au [IPSEC]: Fix room calculation in icmp_send I'm now cleaning up all users of dst_pmtu with the aim of replacing dst_pmtu with dst_mtu. I'm going to start with the ones that actually fix bugs. This patch fixes the length calculation in icmp_send. As it is we're overestimating the space available by including the space that would be used up by IPsec encapsulation. IPv6 doesn't have this problem since its calculation is based on 1280 instead of the PMTU. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.3, 2005-03-14 21:25:12-08:00, herbert@gondor.apana.org.au [IPSEC]: Handle local_df in IPv4 When cleaning up the remaining users of dst_pmtu I noticed that local_df wasn't being treated correctly in IPsec. In fact, if you socket's dst went over IPsec, local_df is essentailly ignored. This patch fixes that. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.2, 2005-03-14 21:22:31-08:00, bdschuym@pandora.be [EBTABLES]: Fix smp race. The patch below fixes an smp race that happens on such systems under heavy load. This bug was reported and solved by Steve Herrell <steve_herrell@yahoo.ca> Signed-off-by: Bart De Schuymer <bdschuym@pandora.be> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.18.1, 2005-03-14 21:21:24-08:00, tgraf@suug.ch [IPV6]: Use dev_get_flags() while building inet6 ifinfo message Use dev_get_flags() in inet6_fill_ifinfo() to fetch interface flags to ensure correctly reporting IFF_PROMISC and IFF_ALLMULTI flags. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2181.1.2, 2005-03-14 21:16:17-08:00, davem@sunset.davemloft.net [MM]: Restore pgd_index() iteration to clear_page_range(). Otherwise ia64 and sparc64 explode with the new ptwalk iterators. The pgd level stuff does not handle virtual address space holes (sparc64) and region based PGD indexing (ia64) properly. It only matters in functions like clear_page_range() which potentially walk over more than a single VMA worth of address space. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.1982.29.100, 2005-03-14 21:34:59-06:00, jejb@mulgrave.(none) Add statistics to generic transport class These were lost from the SCSI transport classes in the transition to the generic classes. Ressurect it in the generic class, since it's probable that more than SCSI will want to use this. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.99, 2005-03-14 20:55:14-06:00, brking@us.ibm.com [PATCH] ipr: Handle new RAID 6 errors This patch allows ipr to properly log 2 new RAID 6 related errors. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.98, 2005-03-14 19:08:57-06:00, brking@us.ibm.com [PATCH] ipr: Bump driver version to 2.0.13 Bump the driver version to 2.0.13 Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.97, 2005-03-14 19:03:18-06:00, brking@us.ibm.com [PATCH] ipr: Send uevent change notifications Send scsi_host kobject uevent notifications for potential configuration changes. This small change allows userspace ipr apps to use netlink/uevent for configuration change notification instead of having to poll /sys for this information. These apps can already look for add/remove uevents for devices, but they also need to be notified when an adapter reset occurs, which is what this patch will do. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.96, 2005-03-14 18:54:05-06:00, brking@us.ibm.com [PATCH] ipr: Sparse fixes Various fixes to make sparse happy Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.95, 2005-03-14 18:47:30-06:00, brking@us.ibm.com [PATCH] ipr: Use bitwise types Change to use bitwise types for additional error checking by sparse Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.94, 2005-03-14 18:38:47-06:00, brking@us.ibm.com [PATCH] ipr: Remove tcq_active flag from resource entry Remove the tcq_active flag from the ipr_resource_entry struct since the same information is available through scsi core APIs. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.93, 2005-03-14 18:26:40-06:00, brking@us.ibm.com [PATCH] ipr: Remove resource qdepth field Remove qdepth field from the ipr_resource_entry structure since the same data is also available in the scsi_device struct. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.92, 2005-03-14 18:07:58-06:00, brking@us.ibm.com [PATCH] ipr: Remove tcq_enable device attribute Remove driver specific tcq_enable attribute now that change_queue_type API has made it redundant. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.91, 2005-03-14 18:02:30-06:00, brking@us.ibm.com [PATCH] ipr: Use change queue type API Use new change_queue_type API. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.90, 2005-03-14 17:45:25-06:00, brking@us.ibm.com [PATCH] ipr: Fast failure module options Since the ipr adapter initialization is performed by waiting for an interrupt to occur and this is the first interrupt ever received from the adapter, and the timeout for this interrupt is 5 minutes, failed ipr adapters can halt the boot process for a long time. In certain environments, it makes sense to not try as hard to get the adapter working and just fail the adapter. This patch adds two module parameters to modify the adapter initialization sequence. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.89, 2005-03-14 17:38:43-06:00, brking@us.ibm.com [PATCH] ipr: Support dynamic IDs Fixes ipr to handle dynamic pci ids by searching for the adapter chipset in the probe routine if driver_data is NULL. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2009.17.7, 2005-03-14 23:26:39+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2535/1: RPC - VIDC_BASE `void __iomem *` annotation Patch from Ben Dooks Add `void __iomem *` to VIDC_BASE Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.1982.29.88, 2005-03-14 17:23:00-06:00, brking@us.ibm.com [PATCH] ipr: Setup max_sectors based on device type The ipr family of adapters is capable of handling data transfer sizes of 16777215 bytes. Logical disk array devices under ipr are capable of only 256k transfer lengths. Patch sets max_sectors of the adapter to 32767 and overrides max_sectors for the logical disk array devices in the slave_configure routine. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.87, 2005-03-14 17:17:29-06:00, brking@us.ibm.com [PATCH] ipr: Device remove cleanup If a device disappears across an adapter reset, ipr schedules the device to be removed from scsi core. Any ops sent to that device prior to its actual removal end up getting sent to the adapter using a now invalid adapter resource handle. Usually, the adapter will just fail the command and the failure will end up looking like a selection timeout, but it is possible the resource handle has been re-used by the adapter and we could be sending an op to a different device than we think we are. This patch closes this window. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2009.17.6, 2005-03-14 23:07:28+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2538/1: S3C2410 - ADC IRQ correct edge handling Patch from Ben Dooks The S3C2410 ADC+TC interrupt where being registrered as edge-sensitive IRQs, but the code was handling them as if they where level-sensitive. Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.1982.29.86, 2005-03-14 17:06:25-06:00, brking@us.ibm.com [PATCH] ipr: New adapter support Add support for some new adapters. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.1982.29.85, 2005-03-14 16:51:13-06:00, brking@us.ibm.com [PATCH] ipr: PCI ID table update Remove an adapter from the table that never shipped. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2009.17.5, 2005-03-14 22:46:53+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2537/2: S3C2410 - fix iomem warnings from sparse Patch from Ben Dooks Change all S3C24XX_VA defines to have the type `void __iomem *` and the necessary changes to the other bits of the s3c24xx support. Note, the map_desc will need changing in the future to allow `void __iomem *` instead of an unsigned long for IO Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.1982.29.84, 2005-03-14 16:36:31-06:00, brking@us.ibm.com [PATCH] PCI: update ipr PCI ids Add some new IPR adapters and remove one. These ids have already been entered into http://pciids.sourceforge.net. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2009.1.81, 2005-03-14 10:26:30-08:00, davem@sunset.davemloft.net [SPARC64]: check_bugs() should be __init. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2183, 2005-03-14 10:09:43-08:00, gregkh@suse.de Fixup 2.6.11.3 merge by hand. ChangeSet@1.2182, 2005-03-14 10:02:44-08:00, gregkh@suse.de Merge 2.6.11.3 into mainline ChangeSet@1.2181, 2005-03-13 17:00:36-08:00, bunk@stusta.de [PATCH] i386/power/cpu.c: remove three unused variables This patch removes three unused variables. Pavel Machek and H. Peter Anvin have already confirmed it's correct. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2180, 2005-03-13 17:00:19-08:00, bunk@stusta.de [PATCH] unexport kmap_{pte,port} on !ppc I haven't found any modular usage of kmap_{pte,port} on !ppc in the kernel. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2179, 2005-03-13 17:00:02-08:00, bunk@stusta.de [PATCH] unexport *flush_tlb_all flush_tlb_all was exported on i386 for a DRM usage - that was removed in 2003. I haven't found any modular usage of *flush_tlb_all in the kernel. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2178, 2005-03-13 16:59:43-08:00, domen@coderock.org [PATCH] drivers/macintoshisdn/*: convert to pci_register_driver convert from pci_module_init to pci_register_driver Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2177, 2005-03-13 16:59:25-08:00, domen@coderock.org [PATCH] macintosh/mediabay: replace schedule_timeout() with msleep_interruptible() Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Also remove macro MS_TO_HZ() and replace with msecs_to_jiffies(). Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Acked-by:: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2176, 2005-03-13 16:59:07-08:00, yuasa@hh.iij4u.or.jp [PATCH] mips: fix section type conflict about mpc30x This patch fixes section type conflict about mpc30x CC arch/mips/pci/fixup-mpc30x.o arch/mips/pci/fixup-mpc30x.c:26: error: internal_func_irqs causes a section type conflict make[1]: *** [arch/mips/pci/fixup-mpc30x.o] Error 1 make: *** [arch/mips/pci] Error 2 Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2175, 2005-03-13 16:58:49-08:00, domen@coderock.org [PATCH] list_for_each_entry: arch-um-drivers-chan_kern.c Make code more readable with list_for_each_reverse. Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Maximilian Attems <janitor@sternwelten.at> Acked-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2174, 2005-03-13 16:58:31-08:00, domen@coderock.org [PATCH] char/istallion: replace interruptible_sleep_on() with wait_event_interruptible() Use wait_event_interruptible() instead of the deprecated interruptible_sleep_on(). The replacements were all straight-forward as every sleep was conditionally-looped. Patch is compile-tested (still warns about {save,restore}_flags(),cli()). Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2173, 2005-03-13 16:58:13-08:00, domen@coderock.org [PATCH] char/lp: remove interruptible_sleep_on_timeout() usage Replace deprecated interruptible_sleep_on_timeout() function calls with direct wait-queue usage. There may be an existing problem with this driver, as I am not finding any wake_up_interruptible() callers for the waitq. Patch is compile-tested. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2172, 2005-03-13 16:57:55-08:00, domen@coderock.org [PATCH] drivers/eisa/*: convert to pci_register_driver convert from pci_module_init to pci_register_driver Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2171, 2005-03-13 16:57:38-08:00, domen@coderock.org [PATCH] drivers/message/fusion/*: convert to pci_register_driver convert from pci_module_init to pci_register_driver Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2170, 2005-03-13 16:57:19-08:00, domen@coderock.org [PATCH] message/mptbase: replace schedule_timeout() with ssleep() Use ssleep() instead of schedule_timeout() to guarantee the task delays as expected. The original code does use TASK_INTERRUPTIBLE, but does not check for signals or early return from schedule_timeout() so ssleep() seems more appropriate. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2169, 2005-03-13 16:57:02-08:00, domen@coderock.org [PATCH] drivers/isdn/hardware/avm/*: convert to pci_register_driver convert from pci_module_init to pci_register_driver Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2168, 2005-03-13 16:56:43-08:00, domen@coderock.org [PATCH] delete unused file drivers_char_hp600_keyb.c Remove nowhere referenced file. (egrep "filename\." didn't find anything) Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2167, 2005-03-13 16:56:28-08:00, domen@coderock.org [PATCH] tc/zs: replace schedule_timeout() with msleep_interruptible() Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Maximilian Attems <janitor@sternwelten.at> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2166, 2005-03-13 16:56:09-08:00, domen@coderock.org [PATCH] ftape/fdc-io: insert set_current_state() before schedule_timeout() Inserts a set_current_state(TASK_INTERRUPTIBLE) before the schedule_timeout() call. Without this change, after the first iteration of the loop, schedule_timeout() will not only return immediately, but the loop will break, as the conditional will no longer be satisfied. In fact, this conditional makes little sense given the workings of schedule_timeout. The timeout variable is ignored, as well, and I'm fairly certain that it should be included in the loop conditional. That way, if the timeout expires before a signal hits, -ETIME will be returned by fdc_interrupt_wait() instead of -EINTR. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2165, 2005-03-13 16:55:52-08:00, domen@coderock.org [PATCH] serial/crisv10: replace schedule_timeout() with msleep() Use msleep() instead of schedule_timeout() to guarantee the task delays as expected. The current code uses TASK_INTERRUPTIBLE, but does not care about signals, so I believe msleep() should be ok. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Acked-by: Mikael Starvik <starvik@axis.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2164, 2005-03-13 16:55:33-08:00, domen@coderock.org [PATCH] char/sx: replace schedule_timeout() with msleep_interruptible() Use msleep_interruptible() instead of schedule_timeout() to guarantee consistent timing regardless of HZ value. schedule_timeout(1) will vary between 10 and 1 milliseconds, depending on the value of HZ (100 or 1000 respectively). For consistent behavior, msleep_interruptible() should be used. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2163, 2005-03-13 16:55:16-08:00, nacc@us.ibm.com [PATCH] char/hvsi: use wait_event_timeout() Use wait_event_timeout() in place of custom wait-queue code. The code is not changed in any way (I don't think), but is cleaned up quite a bit (will get expanded to almost identical code). Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2162, 2005-03-13 16:54:58-08:00, domen@coderock.org [PATCH] char/snsc: reorder set_current_state() and add_wait_queue() Reorder add_wait_queue() and set_current_state() as a signal could be lost in between the two functions. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2161, 2005-03-13 16:54:41-08:00, domen@coderock.org [PATCH] scripts/mod/sumversion.c: replace strtok() with strsep() Replaces strtok() with strsep() Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2160, 2005-03-13 16:54:23-08:00, domen@coderock.org [PATCH] Unified spinlock initialization include/linux/wait.h Unify the spinlock initialization as far as possible. Signed-off-by: Amit Gud <gud@eth.net> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2159, 2005-03-13 16:54:05-08:00, domen@coderock.org [PATCH] radio-sf16fmi boot parameter cleanup Remove the `sf16fm=' kernel boot parameter. Users must switch to `radio-sf16fmi.io=' Signed-off-by: Marcel Sebek <sebek64@post.cz> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2158, 2005-03-13 16:53:48-08:00, domen@coderock.org [PATCH] i386/traps: replace schedule_timeout() with ssleep() Use ssleep() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2157, 2005-03-13 16:53:31-08:00, domen@coderock.org [PATCH] gus_wave.c - vfree() checking cleanups gus_wave.c vfree() checking cleanups. Signed-off by: James Lamanna <jlamanna@gmail.com> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2156, 2005-03-13 16:53:14-08:00, domen@coderock.org [PATCH] list_for_each_entry: arch-i386-mm-pageattr.c Make code more readable with list_for_each_entry* Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Maximilian Attems <janitor@sternwelten.at> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2155, 2005-03-13 16:52:56-08:00, bunk@stusta.de [PATCH] unexport pcibios_penalize_isa_irq I haven't found any possible modular usage of pcibios_penalize_isa_irq in the kernel. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2154, 2005-03-13 16:52:38-08:00, bunk@stusta.de [PATCH] i386: unexport dmi_get_system_info I haven't found any possible modular usage of dmi_get_system_info in the kernel. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2153, 2005-03-13 16:52:20-08:00, rddunlap@osdl.org [PATCH] hweight: typecast return types Make hweight() macros return unsigned int for 8,16,32 bits, instead of requiring callers to do that. drivers/input/joystick/analog.c:414: warning: int format, different type arg (arg 3) drivers/input/joystick/analog.c:414: warning: int format, different type arg (arg 4) drivers/input/joystick/analog.c:418: warning: int format, different type arg (arg 4) Note: does not address parisc, s390, or sparc64... waiting for comments. Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2152, 2005-03-13 16:52:02-08:00, rddunlap@osdl.org [PATCH] zoran: fix printk format types zoran: fix printk format types: drivers/media/video/zoran_driver.c:3763: warning: long long unsigned int format, long unsigned int arg (arg 3) drivers/media/video/zoran_driver.c:3775: warning: long long unsigned int format, long unsigned int arg (arg 3) drivers/media/video/zoran_driver.c:4109: warning: long long unsigned int format, long unsigned int arg (arg 3) Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2151, 2005-03-13 16:51:46-08:00, rddunlap@osdl.org [PATCH] W1: fix printk format warning Use 'unsigned long long' for __u64 printk: drivers/w1/w1.c:415: warning: long long unsigned int format, __u64 arg (arg 6) Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2150, 2005-03-13 16:51:28-08:00, rddunlap@osdl.org [PATCH] isdn: fix gcc data type/size warning Fix gcc warning: drivers/isdn/i4l/isdn_ppp.c:1581: warning: large integer implicitly truncated to unsigned type <seq> is unsigned int. Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2149, 2005-03-13 16:51:12-08:00, rddunlap@osdl.org [PATCH] procfs: fix printk arg type warning On sparc32 build, there is a printk format arg-type warning: fs/proc/proc_misc.c:195: warning: long unsigned int format, unsigned int arg (arg 23) I tried to fix it with a change to asm-sparc/vaddrs.h: -#define VMALLOC_START 0xfe600000 +#define VMALLOC_START 0xfe600000UL -#define VMALLOC_END 0xffc00000 +#define VMALLOC_END 0xffc00000UL but that won't fly because the #defines are used in asm code and asm doesn't like the UL suffixes (reported by Bill Irwin). Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2148, 2005-03-13 16:50:54-08:00, telendiz@eircom.net [PATCH] Removes unused label from /drivers/isdn/hisax/hisax_fcpcipnp.c Remove an unused label (fixes compiler WARNING) and a function (inside a preprocessor directive) that is never called. Signed-off- by: Telemaque Ndizihiwe <telendiz@eircom.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2147, 2005-03-13 16:50:36-08:00, bunk@stusta.de [PATCH] drivers/char/vt*: cleanups This patch contains the following cleanups: - make needlessly gloval code static - vt_ioctl.c: removed the global variable keyboard_type since noone did actually set it to any other value Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2146, 2005-03-13 16:50:18-08:00, bunk@stusta.de [PATCH] drivers/char/sysrq.c: remove the unused sysrq_power_off sysrq_power_off was completely unused. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2145, 2005-03-13 16:49:59-08:00, bunk@stusta.de [PATCH] drivers/char/specialix.c: misc cleanups This patch contains the following cleanups: - make some needlessly global code static - remove the unused global function specialix_setup Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2144, 2005-03-13 16:49:40-08:00, bunk@stusta.de [PATCH] drivers/char/mwave/smapi.c: small cleanups This patch contains the following cleanups: - make the needlessly global function smapi_request static - #if 0 the currently unused function SmapiQuerySystemID Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2143, 2005-03-13 16:49:23-08:00, bunk@stusta.de [PATCH] drivers/char/mxser.c cleanups This patch contains the following cleanups: - make two needlessly global structs static - remove the unused global function SDS_PORT8_DTR Alan already ACK'ed this patch. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2142, 2005-03-13 16:49:05-08:00, bunk@stusta.de [PATCH] unexport mmu_cr4_features I haven't found any possible modular usage of mmu_cr4_features in the kernel. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2141, 2005-03-13 16:48:46-08:00, bunk@stusta.de [PATCH] i386 scx200.c: misc cleanups The patch below contains the following cleanups: - make some needlessly global code static - #if 0 the following unused global functions: - scx200_gpio_dump - remove the following unneeded EXPORT_SYMBOL's: - scx200_gpio_lock - scx200_gpio_dump Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Henrik Brix Andersen <brix@gentoo.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2140, 2005-03-13 16:48:29-08:00, bgerst@didntduck.org [PATCH] vsprintf.c cleanups - Make sprintf call vsnprintf directly - use INT_MAX for sprintf and vsprintf Signed-off-by: Brian Gerst <bgerst@didntduck.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2139, 2005-03-13 16:48:12-08:00, bunk@stusta.de [PATCH] mark BLK_DEV_PS2 as BROKEN Andries Brouwer proposed this patch with the following comment: As observed earlier, ps2esdi was broken as a module, and the passing of geometry boot parameters is broken. But does it still work with kernels 2.3 or later? I think it does, but failed to verify that. I found an IBM PS/2 model 70-A21 with 8 MB and 120 MB ESDI disk. Tried a few distribution boot floppies to see whether they would boot. Slackware has special ibmmca bootdisks. SW 3.3 - Linux 2.1.43 - boots fine SW 4.0 - Linux 2.2.6 - hangs SW 7.0 - Linux 2.2.13 - boots fine SW 8.1 - Linux 2.4.18 - boots, but every single command is killed by OOM SW 10.0 - Linux 2.4.26 - kernel panic: no 386 supported Then Debian: Woody - Linux 2.2.10 - boots fine, but the rootdisk hangs Sarge - Linux 2.4.27 - does not recognize the ESDI disk, and the rootdisk crashes by OOM. So, good luck with 2.1 and 2.2 kernels, only failures with later kernels. What about other people? The two major Linux/MCA sites were http://glycerine.itsmm.uni.edu/mca (also referenced in Documentation/mca.txt) but it doesnt exist any longer, and http://www.dgmicro.com/mca/, which still exists ("last update: Jan 28 1999"), but the binaries it refers to live on ftp.dgmicro.com, which isn't there anymore. Concerning the speed: I measured this ESDI disk under Linux as transferring 50 kB/s, that is 4% of the speed the IBM specs claim. Also other Linux users complained that the disk is much faster under DOS. My proposal for this patch would be to get it into one 2.6 kernel (is it too late for 2.6.11?) and wait if anyone was still using it and screams, and remove it a few months later otherwise. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2138, 2005-03-13 16:47:54-08:00, olh@suse.de [PATCH] typo in include/linux/compiler.h small nitpick, __KERNEL__ is the inner ifdef. Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2137, 2005-03-13 16:47:36-08:00, bjorn.helgaas@hp.com [PATCH] Remove unused get_resource_list() declaration Remove unused get_resource_list() declaration. 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> ChangeSet@1.2136, 2005-03-13 16:47:18-08:00, bunk@stusta.de [PATCH] drivers/block/cciss*: misc cleanups This patch contains the following cleanups: - make some needlesly global code static - cciss_scsi.c: remove the unused global function cciss_scsi_info - cciss.c: - init_cciss_module -> cciss_init - cleanup_cciss_module -> cciss_cleanup Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2135, 2005-03-13 16:47:00-08:00, bunk@stusta.de [PATCH] fs/jffs2/: misc cleanups This patch contains the following cleanups: - make some needlessly global functions static - remove the following unused global functions: - compr.c: jffs2_set_compression_mode - compr.c: jffs2_get_compression_mode Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2134, 2005-03-13 16:46:43-08:00, bunk@stusta.de [PATCH] fs/jffs/: misc cleanups This patch contains the following cleanups: - make some needlessly global code static - #if 0 the following unused functions: - intrep.c: jffs_print_file - jffs_fm.c: jffs_print_node_ref Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2133, 2005-03-13 16:46:25-08:00, olh@suse.de [PATCH] remove obsolete linux/resource.h inclusion from asm-generic/siginfo.h Roland added this include with his 'waitid system call' patch, which was removed again after a while. Just the header inclusion was not removed. http://linux.bkbits.net:8080/linux-2.5/cset@4134b6dd1rY3qnaq7YABrXPXGvzzpw http://linux.bkbits.net:8080/linux-2.5/cset@41499f66EDHON_8B1FYGEzLZQ2u13Q Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2132, 2005-03-13 16:46:07-08:00, bunk@stusta.de [PATCH] drivers/block/paride/ cleanups (fwd) The patch below does the following cleanups in each if the five changed C files: - #ifndef MODULE: remove unused setup function - make a needlessly global struct static - pf.c: pf_init_units can be static and __init After this cleanup, setup.h is completely unused and therefore removed. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2131, 2005-03-13 16:45:49-08:00, bunk@stusta.de [PATCH] pm3fb: remove kernel 2.2 code This patch removes kernel 2.2 code from pm3fb.{c,h}. It also removes KERNEL_2_4 and KERNEL_2_5 since all places where this was used had a #if (defined KERNEL_2_4) || (defined KERNEL_2_5) (Yes, I know the driver is marked as BROKEN.) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2130, 2005-03-13 16:45:30-08:00, heiko.carstens@de.ibm.com [PATCH] Update panic() comment panic() doesn't flush the filesystem cache anymore. The comment above the function still claims it does. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2129, 2005-03-13 16:45:13-08:00, bunk@stusta.de [PATCH] mxser.c: remove unused variable drivers/char/mxser.c: In function `mxser_initbrd': drivers/char/mxser.c:551: warning: unused variable `flags' Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2128, 2005-03-13 16:44:54-08:00, bunk@stusta.de [PATCH] i386/kernel/i387.c: misc cleanups This patch contains the following cleanups: - make a needlessly global variable static - #if 0 four unused global functions Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2127, 2005-03-13 16:44:37-08:00, bunk@stusta.de [PATCH] smp{,boot}.c cleanups This patch contains the following cleanups on several architectures: - make some needlessly global code static - remove the following write-only (except for printk's) variables: - cache_decay_ticks - smp_threads_ready - cacheflush_time I've only tried the compilation on i386, but I hope all mistakes I made are on unimportant architectures. ;-) Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2126, 2005-03-13 16:44:16-08:00, bunk@stusta.de [PATCH] i386/x86_64: acpi/sleep.c: kill unused acpi_save_state_disk acpi_save_state_disk does nothing and is completely unused. This patch was already ACK'ed by Pavel Machek. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2125, 2005-03-13 16:43:59-08:00, bunk@stusta.de [PATCH] kill IPHASE5526 iph5526 does not compiles since 2.5 and was therefore marked as broken. This patch removes it. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2124, 2005-03-13 16:43:39-08:00, akpm@osdl.org [PATCH] hpet setup comment fix Suggested by Andrew Walrond <andrew@walrond.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2123, 2005-03-13 16:43:21-08:00, bunk@stusta.de [PATCH] SCSI qlogicisp.c: some cleanups This patch does the following cleanups: - make some needlessly global functions static - remove qlogicisp.h since it doesn't contain much - remove the unused functions isp1020_abort and isp1020_reset Please review especially the latter two points. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2122, 2005-03-13 16:43:03-08:00, bunk@stusta.de [PATCH] SCSI qlogicfc.c: some cleanups This patch does the following cleanups: - make some needlessly global functions static - remove qlogicfc.h since it doesn't contain much - remove the unused function isp2x00_reset Please review especially the latter two points. From: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2121, 2005-03-13 16:42:48-08:00, bunk@stusta.de [PATCH] prism54: misc cleanups This patch makes some functions in prism54 that are only required locally static. As a side effect it turned out that the mgt_unlatch_all function was completely unused, and it's therefore #if 0'ed. I also considered moving display_buffer as static inline into islpci_mgt.h, but I wasn't 100% sure and therefore left it. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2120, 2005-03-13 16:42:31-08:00, bunk@stusta.de [PATCH] non-PC parport config change This patch adds a config option PARPORT_NOT_PC (and removes the PARPORT_OTHER option) that get's selected if any non-PC hardware was chosen. This way, the mega #if in parport.h is gone now. Additionally, it removes the unneeded PARPORT_NEED_GENERIC_OPS #define. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2119, 2005-03-13 16:42:16-08:00, bunk@stusta.de [PATCH] i386/math-emu/: misc cleanups This patch contains the following cleanups: - make needlessly global code static - #if 0 unused code Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2118, 2005-03-13 16:41:58-08:00, bunk@stusta.de [PATCH] fs/hfsplus/: misc cleanups This patch contains the following cleanups: - make needlessly global code static - bnode.c: remove the unused global functions hfsplus_lock_bnode and hfsplus_unlock_bnode Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2117, 2005-03-13 16:41:41-08:00, bunk@stusta.de [PATCH] fs/hfs/: misc cleanups This patch contains the following cleanups: - make needlessly global code static - super.c: remove the unused global variable hfs_version Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2116, 2005-03-13 16:41:21-08:00, bunk@stusta.de [PATCH] remove the unused OSS maestro_tables.h Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2115, 2005-03-13 16:41:05-08:00, bunk@stusta.de [PATCH] generic_serial.h: kill incorrect gs_debug reference generic_serial.h contained an incorrect extern reference to the static variable gs_debug (Benoit Boissinot reported that gcc 4.0 rejects this). Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2114, 2005-03-13 16:40:48-08:00, bunk@stusta.de [PATCH] mm/page-writeback.c: remove an unused function #2 This patch removes an unused global function. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2113, 2005-03-13 16:40:31-08:00, rddunlap@osdl.org [PATCH] wavefront: reduce stack usage Reduce local stack usage in wavefront_load_gus_patch() from 984 bytes to 140 bytes (on x86-32) by using kmalloc() instead of stack for these 840 bytes: wavefront_patch_info samp, pat, prog; // 3 * 280 Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2112, 2005-03-13 16:40:13-08:00, juhl-lkml@dif.dk [PATCH] warning fix in drivers/cdrom/mcd.c drivers/cdrom/mcd.c:268: warning: passing arg 1 of `mcd_setup' discards qualifiers from pointer target type Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2111, 2005-03-13 16:39:57-08:00, james4765@cwazy.co.uk [PATCH] pcxx: Remove obsolete driver Remove the pcxx driver. It is obsoleted by the epca driver. Signed-off-by: James Nelson <james4765@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2110, 2005-03-13 16:39:39-08:00, bunk@stusta.de [PATCH] drivers/block/cpqarray.c: small cleanups This patch contains the following cleanups: - make cpqarray_pci_device_id static - merge cpqarray_init_step2 into cpqarray_init and make it static Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Mike Miller <mike.miller@hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2109, 2005-03-13 16:39:24-08:00, bunk@stusta.de [PATCH] small drivers/video/kyro/ cleanups This patch does the following cleanups under drivers/video/kyro/ : - remove an unused global varaible from STG4000Ramdac.c - make some needlessly global code static Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2108, 2005-03-13 16:39:06-08:00, bunk@stusta.de [PATCH] *-iosched.c: Use proper documentation path This patch by Josef "Jeff" Sipek <jeffpc@optonline.net> fixes two documentationn paths. Signed-off-by: Josef "Jeff" Sipek <jeffpc@optonline.net> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2107, 2005-03-13 16:38:48-08:00, bunk@stusta.de [PATCH] OSS sb_card.c: no need to include mca.h I didn't find any reason why this file includes mca.h. Paul Laufer already ACK'ed this patch. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2106, 2005-03-13 16:38:30-08:00, bunk@stusta.de [PATCH] drivers/char/moxa.c: #if 0 an unused function This patch #if 0's an unused global function. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2105, 2005-03-13 16:38:13-08:00, bunk@stusta.de [PATCH] fs/adfs/dir_f.c: remove an unused function This patch removes an unused function. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2104, 2005-03-13 16:37:55-08:00, bunk@stusta.de [PATCH] remove bouncing email address of Thomas Hood This patch removes the bouncing email address of Thomas Hood (I haven't found any more recent email address). Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2103, 2005-03-13 16:37:39-08:00, bunk@stusta.de [PATCH] i386 APIC Kconfig cleanups This patch contains the following changes to arch/i386/Kconfig: - update the X86_UP_APIC and X86_UP_IOAPIC help texts: - in the SMP case, these options are not visible - today, it's no longer only "a small number of uniprocessor systems" that have an IO-APIC - there were two X86_LOCAL_APIC and two X86_IO_APIC options - in both cases, merge them - move X86_VISWS_APIC to the other APIC options Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2102, 2005-03-13 16:37:20-08:00, bunk@stusta.de [PATCH] remove bouncing email address of Hennus Bergman The email address of Hennus Bergman in the kernel is bouncing. Aftern asking him whether I should update his email address in the Linux kernel, he replied: <-- snip --> I get a lot of spam already and I'd rather avoid getting even more by 'advertising' my email address on the internet like that. So I don't want my current email address in the kernel distribution. If you want to remove my old cybercomm.nl email address, that's fine by me. <-- snip --> This patch therefore simply his bouncing email address and no longer available homepage. 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> ChangeSet@1.2101, 2005-03-13 16:37:03-08:00, rddunlap@osdl.org [PATCH] sparse: use NULL for pointer drivers/char/isicom.c:1274:14: warning: Using plain integer as NULL pointer arch/x86_64/oprofile/../../i386/oprofile/backtrace.c:30:10: warning: Using plain integer as NULL pointer Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2100, 2005-03-13 16:36:44-08:00, juhl-lkml@dif.dk [PATCH] Make loglevels in init/main.c a little more sane. This patch modifies a few of the printk() loglevels used in init/main.c in an attempt to make them a bit more appropriate. The default loglevel is KERN_WARNING, but a few printk's without explicit loglevel are not (in my oppinion) warnings, so add proper warning levels - for instance; telling the user how many CPU's were brought up is hardly a warning, make it KERN_INFO instead. The initial printing of linux_banner is not a warning condition, I'd say it's more of a NOTICE or even INFO condition - I've made it KERN_NOTICE just as the printing of the kernel command line. A few printk's without explicit loglevel do match the default one, but I've made them explicit (the default could change in the future, and if it does then explicitly setting the proper loglevel is a nice thing). Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2099, 2005-03-13 16:36:27-08:00, bunk@stusta.de [PATCH] some PNP cleanups This patch makes the following changes to the PNP code: - make some needlessly global code static - remove the EXPORT_SYMBOL(pnp_assign_resources) since this function is only used in the file it is defined in Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2098, 2005-03-13 16:36:08-08:00, bunk@stusta.de [PATCH] misc ISAPNP cleanups This patch removes some completely unused code and makes some needlessly global code static in drivers/pnp/isapnp/core.c . Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2097, 2005-03-13 16:35:51-08:00, bunk@stusta.de [PATCH] mm/page-writeback.c: remove an unused function This patch removes an unused global function. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2096, 2005-03-13 16:35:33-08:00, juhl-lkml@dif.dk [PATCH] fix placement of static inline in nfsd.h The patch fixes a bunch of warnings like these include/linux/nfsd/nfsd.h:137: warning: `inline' is not at beginning of declaration include/linux/nfsd/nfsd.h:138: warning: `inline' is not at beginning of declaration include/linux/nfsd/nfsd.h:139: warning: `inline' is not at beginning of declaration include/linux/nfsd/nfsd.h:140: warning: `inline' is not at beginning of declaration and these include/linux/nfsd/nfsd.h:137: warning: `static' is not at beginning of declaration include/linux/nfsd/nfsd.h:138: warning: `static' is not at beginning of declaration include/linux/nfsd/nfsd.h:139: warning: `static' is not at beginning of declaration include/linux/nfsd/nfsd.h:140: warning: `static' is not at beginning of declaration when building with gcc -W True, that's not how most people build, but some of us do in order to try and find potential trouble spots, and the less warnings we have to go through the better - especially when they can be cleaned up nice and safe with no real impact to the code like these ones. Please apply. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2095, 2005-03-13 16:35:16-08:00, bunk@stusta.de [PATCH] saa7146_vv_ksyms.c: remove two unused EXPORT_SYMBOL_GPL's This patch removes two unused EXPORT_SYMBOL_GPL's. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2094, 2005-03-13 16:34:56-08:00, bunk@stusta.de [PATCH] Update email address of Philip Blundell Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2093, 2005-03-13 16:34:38-08:00, bunk@stusta.de [PATCH] Update email address of Benjamin LaHaise Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2092, 2005-03-13 16:34:19-08:00, bunk@stusta.de [PATCH] (mostly i386) mm cleanup - arch/i386/mm/boot_ioremap.c: make a variable static - frv/ppc highmem.c: remove stale kmap_init prototypes - arch/um/kernel/mem.c: make kmap_init static - arch/i386/mm/init.c: make five functions static Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2091, 2005-03-13 16:34:02-08:00, bunk@stusta.de [PATCH] kill aux_device_present There's no reason for keeping a write-only variable. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2090, 2005-03-13 16:33:44-08:00, bunk@stusta.de [PATCH] 3w-abcd.h: TW_Device_Extension: remove an unused field num_units in struct TAG_TW_Device_Extension is completely unused. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2089, 2005-03-13 16:33:26-08:00, bunk@stusta.de [PATCH] i386/x86_64 io_apic.c: misc cleanups - make some needlessly global code static - #if 0 some global print* functions that have no user Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2088, 2005-03-13 16:33:08-08:00, bunk@stusta.de [PATCH] i386 cpu/common.c: some cleanups - make some needlessly global code static - remove the unused dodgy_tsc function - remove the stale dodgy_tsc z86_64 prototype Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2087, 2005-03-13 16:32:52-08:00, bunk@stusta.de [PATCH] update email address of Andrea Arcangeli Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2086, 2005-03-13 16:32:33-08:00, bunk@stusta.de [PATCH] oprofile: make some code static This patch makes some needlessly global code static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2085, 2005-03-13 16:32:16-08:00, juhl-lkml@dif.dk [PATCH] arch/sparc/kernel/ptrace: pointless assignment and shadowed var A few tiny cleanups for arch/sparc/kernel/ptrace.c::do_ptrace post the big verify_area/access_ok cleanup. 'ret' shadows a variable of the same name in the enclosing scope, rename it. The assignment of -EFAULT to 'i' exactely mirrors what the old verify_area code did, but that was only to use 'i' to check the return value of verify_area. Now that we check access_ok directly and 'i' is initialized in the for loop a few lines below anyway, the asignment of -EFAULT to i is bogus, just pass pass EFAULT directly as the second arg to pt_error_return. Also a few tiny whitespace cleanups - 'if ()' vs 'if()'. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2084, 2005-03-13 16:31:59-08:00, juhl-lkml@dif.dk [PATCH] arch/mips/kernel/irixsig: slight rework of irix_sigsendset Slight rework of arch/mips/kernel/irixsig.c::irix_sigsendset to eliminate the use of a local variable, a goto and shorten the code a bit. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2083, 2005-03-13 16:31:42-08:00, juhl-lkml@dif.dk [PATCH] fs_compat: tiny cleanup t retval Tiny patch that cuts down the nr of assignments to 'ret'. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2082, 2005-03-13 16:31:23-08:00, juhl-lkml@dif.dk [PATCH] arch/alpha/kernel/osf_sys: tiny cleanup to retval Improve readability after verify_area to access_ok conversion. The new code was pretty ugly - this should be a bit better. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2081, 2005-03-13 16:31:07-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : deprecate The previous 9 patches should take care of converting all callers of verify_area into access_ok, so now it's time to deprecate verify_area all over so noone gets tempted to use it in new code - this patch does that. Eventually when this has been deprecated for a while I'll send patches to completely remove the function (thoughts on how long it should be deprecated first are welcome). Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2080, 2005-03-13 16:30:48-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : misc remaining archs The last remaining archs that have not already been converted from verify_area to access_ok by the previous patches are all taken care of by this one. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2079, 2005-03-13 16:30:29-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : x86_64 and ia64 This is the patch that converts verify_area to access_ok for the x86_64 and ia64 archs. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2078, 2005-03-13 16:30:10-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : sparc and sparc64 This patch converts verify_area to access_ok for sparc and sparc64. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2077, 2005-03-13 16:29:53-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : ppc, ppc64, m68k, m68knommu Convert verify_area to access_ok for ppc, ppc64, m68k and m68knommu Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2076, 2005-03-13 16:29:34-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup: mips This is the patch to convert verify_area to access_ok for arch/mips Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2075, 2005-03-13 16:29:18-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : i386 and misc. This patch converts verify_area to access_ok in arch/i386, fs/, kernel/ and a few other bits that didn't fit in the other patches or that I actually was able to test on my hardware - this is by far the best tested of all the patches. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2074, 2005-03-13 16:28:58-08:00, bunk@stusta.de [PATCH] sound/oss/soundcard.c: remove an unused variable This patch removes an unused variable. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2073, 2005-03-13 16:28:42-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : sound This patch converts verify_area to access_ok in sound/ Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2072, 2005-03-13 16:28:24-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : drivers part 2 This patch converts the second half of drivers from verify_area to access_ok. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2071, 2005-03-13 16:28:06-08:00, juhl-lkml@dif.dk [PATCH] verify_area cleanup : drivers part 1 This patch converts the first half of drivers from verify_area to access_ok. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2070, 2005-03-13 16:27:48-08:00, pmeda@akamai.com [PATCH] sysfs: mount error path cleanup Sysfs mount error path sanity work. Perhaps we can panic here, but did not want to disturb the code here. Signed-off-by: Prasanna Meda <pmeda@akamai.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2069, 2005-03-13 16:27:32-08:00, pmeda@akamai.com [PATCH] pivot_root: better documentation to code pivot_root works with five nami data structures, I would like add the minimal documentation to the code to make things clear. Signed-Off-by: Prasanna Meda <pmeda@akamai.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2068, 2005-03-13 16:27:15-08:00, akpm@osdl.org [PATCH] selinux needs inet security/built-in.o(.text+0xe2fc): In function `selinux_socket_bind': : undefined reference to `sysctl_local_port_range' Acked-by: James Morris <jmorris@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2067, 2005-03-13 16:26:59-08:00, mpm@selenic.com [PATCH] CONFIG_BASE_FULL help clarification Clarify the BASE_FULL help text. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2066, 2005-03-13 16:26:41-08:00, mpm@selenic.com [PATCH] rol/ror type cleanup Minor type cleanup. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2065, 2005-03-13 16:26:25-08:00, tvignaud@mandrakesoft.com [PATCH] MODULE_DEVICE_TABLE fixes Add lots of MODULE_DEVICE_TABLE entries. Signed-off-by: Thierry Vignaud <tvignaud@mandrakesoft.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Acked-by: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2064, 2005-03-13 16:26:06-08:00, bunk@stusta.de [PATCH] consolidate CONFIG_DEBUG_INFO We seem to have two CONFIG_DEBUG_INFO entries in Kconfig.debug. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2063, 2005-03-13 16:25:50-08:00, jack@ucw.cz [PATCH] Allow admin to enable only some of the Magic-Sysrq functions Allow admin to enable only some of the Magic-Sysrq functions. This allows admin to disable sysrq functions he considers dangerous (e.g. sending kill signal, remounting fs RO) while keeping the possibility to use the others (e.g. debug deadlocks by dumps of processes etc.). Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2062, 2005-03-13 16:25:32-08:00, seife@suse.de [PATCH] Subject: swsusp: do not provoke emergency disk shutdowns In platform swsusp mode, we were forgetting to spin disks down, leading to ugly emergency shutdown. This synchronizes platform method with other methods and actually helps. Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2061, 2005-03-13 16:25:15-08:00, pavel@suse.cz [PATCH] swsusp: enable resume from initrd From: <mjg59@scrf.ucam.org> When using a fully modularized kernel it is necessary to activate resume manually as the device node might not be available during kernel init. This patch implements a new sysfs attribute '/sys/power/resume' which allows for manual activation of software resume. When read from it prints the configured resume device in 'major:minor' format. When written to it expects a device in 'major:minor' format. This device is then checked for a suspended image and resume is started if a valid image is found. The original functionality is left in place. It should be used from initramfs, or with care. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2060, 2005-03-13 16:24:58-08:00, pavel@ucw.cz [PATCH] swsusp: use non-contiguous memory on ppc This patch contains the necessary changes to the assembly routines etc. for ppc. It depends on the main resume part. It's a Hu Gang's patch. From: Hu Gang <hugang@soulinfo.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2059, 2005-03-13 16:24:40-08:00, pavel@ucw.cz [PATCH] swsusp: use non-contiguous memory on resume The following patch is designed to fix a problem in the current implementation of swsusp in mainline kernels. Namely, swsusp uses an array of page backup entries (aka pagedir) to store pointers to memory pages that must be saved during suspend and restored during resume. Unfortunately, the pagedir has to be located in a contiguous chunk of memory and it sometimes turns out that an 8-order or even 9-order allocation is needed for this purpose. It sometimes is impossible to get such an allocation and swsusp may fail during either suspend or resume due to the lack of memory, although theoretically there is enough free memory for it to succeed. Moreover, swsusp is more likely to fail for this reason during resume, which means that it may fail during resume after a successful suspend (this actually has happened for some people, including me :-)) and this, potentially, may lead to the loss of data. The problem is fixed by replacing the pagedir with a linklist so that high-order memory allocations are avoided (the patches make swsusp use only 0-order allocations). Unfortunately this means that it's necessary to change assembly routines used to restore the image after it's been loaded from swap so that they walk the list instead of walking the array. This patch makes swsusp allocate only individual pages during resume. it contains the necessary changes to the assembly routines etc. for i386 and x86-64. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2058, 2005-03-13 16:24:22-08:00, kravetz@us.ibm.com [PATCH] ppc64: NUMA memory fixup When I booted my new 720 on a kernel configured for NUMA, I received the following during bootup: WARNING: Unexpected node layout: region start 44000000 length 2000000 NUMA is disabled This is due to memory 'holes' within nodes. If such holes are encountered, then NUMA is disabled. The following patch adds support for such configurations. This patch gets the cell sizes before extracting the cells. I have made this change to existing code in the file, as well as the code I added. Signed-off-by: Mike Kravetz <kravetz@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> ChangeSet@1.2057, 2005-03-13 16:24:06-08:00, galak@freescale.com [PATCH] ppc32: Remove SPR short-hand defines Removed the Special purpose register (SPR) short-hand defines to help with name space pollution. All SPRs are now referenced as SPRN_<foo>. Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2056, 2005-03-13 16:23:46-08:00, galak@freescale.com [PATCH] ppc32: emulate load/store string instructions Some Book-E implementations (e500) do not implement the userland load/store string instructions. Apparently these instructions are rather painful to implement do to the fact that they modify the destination register differently then ever other instruction. Matt did the inital work some time ago, and I finally got around to cleaning it up. Signed-off-by: Matt McClintock Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2055, 2005-03-13 16:23:30-08:00, mgreer@mvista.com [PATCH] ppc32: Update chestnut platform files - Set up mtd partition from arch-specific platform file and remove obsoleted mtd map. - Update default config file (now enables embedded ethernet driver). - Make some minor fixups. - General code cleanup. Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2054, 2005-03-13 16:23:12-08:00, roland@redhat.com [PATCH] Unbacked shared memory not included in ELF core dump We're currently not including sysv shared memory segments in coredumps. This patch intends to include any shared mapping whose target file has zero links. That covers sysv shm and MAP_ANON|MAP_SHARED mmap's (which I think are only ever useful if you want to share pages with a fork'd child). I think it also covers a regular file that was unlinked but is still mmap'd. It doesn't cover mapping of a tmpfs file like /dev/shm/foo, but those are still available to be seen after your program crashes, until reboot. Note that this still omits plenty of cases that the old code would include, such as all writable shared mappings of regular files. It also will include some arcane cases the old one wouldn't, like a read-only shared mapping of an unlinked file; that comes up e.g., for the text segment of a shared library or executable that was removed/renamed-over while still in use. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2053, 2005-03-13 16:22:56-08:00, haveblue@us.ibm.com [PATCH] no arch-specific mem_map init So, this patch started out with me trying to keep from passing contiguous, node-specific mem_map into free_area_init_node() and cousins. Instead, I relied on some calls to pfn_to_page(). This works fine and dandy when all you need is the pgdat->node_mem_map to do pfn_to_page(). However, the non-NUMA/DISCONTIG architectures use the real, global mem_map[] instead of a node_mem_map in the pfn_to_page() calculation. So, I ended up effectively trying to initialize mem_map from itself, when it was NULL. That was bad, and caused some very pretty colors on someone's screen when he tested it. So, I had to make sure to initialize the global mem_map[] before calling into free_area_init_node(). Then, I realized how many architectures do this on their own, and have comments like this: /* XXX: MRB-remove - this doesn't seem sane, should this be done somewhere else ?*/ mem_map = NODE_DATA(0)->node_mem_map; The following patch does what my first one did (don't pass mem_map into the init functions), incorporates Jesse Barnes' ia64 fixes on top of that, and gets rid of all but one of the global mem_map initializations (parisc is weird). It also magically removes more code than it adds. It could be smaller, but I shamelessly added some comments. Boot-tested on ppc64, i386 (NUMAQ, plain SMP, laptop), UML (i386). Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2052, 2005-03-13 16:22:38-08:00, oleg@tv-sign.ru [PATCH] vmalloc: use list of pages instead of array in vm_struct This patch assumes that there is no valid usage of vmalloced_or_vmaped_page->lru. In such a case vm_struct->array could be eliminated. It saves some memory and simplifies code a bit. In vmap/vunmap case vm_struct->page_list is used only in map_vm_area(), so it is ok to do: addr1 = vmap(pages, count); addr2 = vmap(pages, count); ... vunmap(addr1); vunmap(addr2); 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> ChangeSet@1.2051, 2005-03-13 16:22:22-08:00, oleg@tv-sign.ru [PATCH] vmalloc: use __vmalloc_area in arch/x86_64/ Replace open coded __vmalloc() with __vmalloc_area(). Uncompiled, untested. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Andi Kleen <ak@muc.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2050, 2005-03-13 16:22:05-08:00, oleg@tv-sign.ru [PATCH] vmalloc: use __vmalloc_area in arch/sparc64/ Replace open coded __vmalloc() with __vmalloc_area(). Uncompiled, untested. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2049, 2005-03-13 16:21:50-08:00, oleg@tv-sign.ru [PATCH] vmalloc: use __vmalloc_area in arch/arm Replace open coded __vmalloc() with __vmalloc_area(). Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2048, 2005-03-13 16:21:32-08:00, oleg@tv-sign.ru [PATCH] vmalloc: introduce __vmalloc_area() function There are 3 copy-and-paste implementations of __vmalloc() in arch/{arm,sparc64,x86_64}/kernel/module.c. I believe the only reason is that __vmalloc() doesn't allow to specify parameters of __get_vm_area(). This patch splits __vmalloc() into 2 functions. The new one, __vmalloc_area(), can be used as follows: vm_struct *area = __get_vm_area(...); void *addr = __vmalloc_area(area, gfp, prot); 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> ChangeSet@1.2047, 2005-03-13 16:21:15-08:00, hugh@veritas.com [PATCH] ptwalk: pud and pmd folded Nick Piggin's patch to fold away most of the pud and pmd levels when not required. Adjusted to define minimal pud_addr_end (in the 4LEVEL_HACK case too) and pmd_addr_end. Responsible for half of the savings. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2046, 2005-03-13 16:20:59-08:00, hugh@veritas.com [PATCH] ptwalk: inline pmd_range and pud_range As a general rule, ask the compiler to inline action_on_pmd_range and action_on_pud_range: they're none very interesting, and it has a better chance of eliding them that way. But conversely, it helps debug traces if action_on_pte_range and top action_on_page_range remain uninlined. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2045, 2005-03-13 16:20:43-08:00, hugh@veritas.com [PATCH] ptwalk: move p?d_none_or_clear_bad To handle large sparse areas a little more efficiently, follow Nick and move the p?d_none_or_clear_bad tests up from the start of each function to its callsite. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2044, 2005-03-13 16:20:27-08:00, hugh@veritas.com [PATCH] ptwalk: clear_page_range Convert clear_page_range pagetable walkers to loops using p?d_addr_end. These are exceptional in that some out-of-tree memory layouts might pass end 0, so the macros need to handle that (though previous code did not). The naming here was out of step: now we usually pass pmd_t *pmd down to action_on_pte_range, not action_on_pmd_range, etc: made like the others. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2043, 2005-03-13 16:20:11-08:00, hugh@veritas.com [PATCH] ptwalk: copy_pte_range hang This patch is the odd-one-out of the sequence. The one before adjusted copy_pte_range from a for loop to a do while loop, and it was therefore simplest to check for lockbreak before copying pte: possibility that it might keep getting preempted without making progress under some loads. Some loads such as startup: 2*HT*P4 with preemption cannot even reach multiuser login. Suspect needs_lockbreak is broken, can get in a state when it remains forever true. Investigate that later: for now, and for all time, it makes sense to aim for a little progress before breaking out; and we can manage more pte_nones than copies. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2042, 2005-03-13 16:19:53-08:00, hugh@veritas.com [PATCH] ptwalk: copy_page_range Convert copy_page_range pagetable walkers to loops using p?d_addr_end. Merge copy_swap_pte into copy_one_pte, make a few minor tidyups. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2041, 2005-03-13 16:19:37-08:00, hugh@veritas.com [PATCH] ptwalk: unmap_page_range Convert unmap_page_range pagetable walkers to loops using p?d_addr_end. Move blanking of irrelevant details up to unmap_page_range as Nick did. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2040, 2005-03-13 16:19:20-08:00, hugh@veritas.com [PATCH] ptwalk: zeromap_page_range Convert zeromap_page_range pagetable walkers to loops using p?d_addr_end. Remove the redundant flush_tlb_range from afterwards: as its comment noted, there's already a BUG_ON(!pte_none). Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2039, 2005-03-13 16:19:04-08:00, hugh@veritas.com [PATCH] ptwalk: remap_pfn_range Convert remap_pfn_range pagetable walkers to loops using p?d_addr_end. Remove the redundant flush_tlb_range from afterwards: as its comment noted, there's already a BUG_ON(!pte_none). Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2038, 2005-03-13 16:18:47-08:00, hugh@veritas.com [PATCH] ptwalk: ioremap_page_range Convert i386 ioremap pagetable walkers to loops using p?d_addr_end. Rename internal levels ioremap_p??_range. Don't cheat, give it a real (but inlined) ioremap_pud_range; uninline lowest level to help debug. Replace "page already exists" printk and BUG by BUG_ON. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2037, 2005-03-13 16:18:31-08:00, hugh@veritas.com [PATCH] ptwalk: map and unmap_vm_area Convert unmap_vm_area and map_vm_area pagetable walkers to loops using p?d_addr_end; rename internal levels vunmap_p??_range, vmap_p??_range. map_vm_area shows the style when allocating: allocs moved down a level. Replace KERN_CRIT Whee message by boring WARN_ON. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2036, 2005-03-13 16:18:14-08:00, hugh@veritas.com [PATCH] ptwalk: unuse_mm Convert unuse_process pagetable walkers to loops using p?d_addr_end; but correct its name to unuse_mm, rename its levels to _range as elsewhere. Leave unuse_pte out-of-line since it's so rarely called; but move the funny activate_page inside it. foundaddr was a leftover from before: we still want to break out once page is found, but no need to pass addr up. And we need not comment on the page_table_lock at every level. Whereas most objects shrink ~200 bytes text, swapfile.o grows slightly: it had earlier been converted to the addr,end style to fix a 4level bug. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2035, 2005-03-13 16:17:58-08:00, hugh@veritas.com [PATCH] ptwalk: sync_page_range Convert filemap_sync pagetable walkers to loops using p?d_addr_end; use similar loop to split filemap_sync into chunks. Merge filemap_sync_pte into sync_pte_range, cut filemap_ off the longer names, vma arg first. There is no error from filemap_sync, nor is any use made of the flags: if it should do something else for MS_INVALIDATE, reinstate it when that is implemented. Remove the redundant flush_tlb_range from afterwards: as its comment noted, each dirty pte has already been flushed. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2034, 2005-03-13 16:17:41-08:00, hugh@veritas.com [PATCH] ptwalk: change_protection Begin the pagetable walker cleanup with a straightforward example, mprotect's change_protection. Started out from Nick Piggin's for_each proposal, but I prefer less hidden; and these are all do while loops, which degrade slightly when converted to for loops. Firmly agree with Andi and Nick that addr,end is the way to go: size is good at the user interface level, but unhelpful down in the loops. And the habit of an "address" which is actually an offset from some base has bitten us several times: use proper address at each level, whyever not? Don't apply each mask at two levels: all we need is a set of macros pgd_addr_end, pud_addr_end, pmd_addr_end to give the address of the end of each range. Which need to take the min of two addresses, with 0 as the greatest. Started out with a different macro, assumed end never 0; but clear_page_range (alone) might be passed end 0 by some out-of-tree memory layouts: could special case it, but this macro compiles smaller. Check "addr != end" instead of "addr < end" to work on that end 0 case. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2033, 2005-03-13 16:17:25-08:00, akpm@osdl.org [PATCH] ptwalk-pd_none_or_clear_bad ia64 fix pgtable.h now need pud_t. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2032, 2005-03-13 16:17:07-08:00, hugh@veritas.com [PATCH] ptwalk: p?d_none_or_clear_bad Replace the repetitive p?d_none, p?d_bad, p?d_ERROR, p?d_clear clauses by pgd_none_or_clear_bad, pud_none_or_clear_bad, pmd_none_or_clear_bad inlines throughout common and i386 - avoids a sprinkling of "unlikely"s. Tests inline, but unlikely error handling in mm/memory.c - so the ERROR file and line won't tell much; but it comes too late anyway, and hardly ever seen outside development. Let mremap use them in get_one_pte_map, as it already did in _nested; but leave follow_page and untouched_anonymous page just skipping _bad as before - they don't have quite the same ownership of the mm. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2031, 2005-03-13 16:16:49-08:00, chrisw@osdl.org [PATCH] allow vma merging with mlock et. al. Successive mlock/munlock calls can leave fragmented vmas because they can be split but not merged. Give mlock et. al. full vma merging support. While we're at it, move *pprev assignment above first split_vma in mprotect_fixup to keep it in step with mlock_fixup (which for mlockall ignores errors yet still needs a valid prev pointer). Signed-off-by: Chris Wright <chrisw@osdl.org> Acked-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2030, 2005-03-13 16:16:33-08:00, jes@wildopensource.com [PATCH] ia64 specific /dev/mem handlers Convert /dev/mem read/write calls to use arch_translate_mem_ptr if available. Needed on ia64 for pages converted fo uncached mappings to avoid it being accessed in cached mode after the conversion which can lead to memory corruption. Introduces PG_uncached page flag for marking pages uncached. Also folds do_write_mem into write_mem as it was it's only user. Use __ARCH_HAS_NO_PAGE_ZERO_MAPPED for architectures to indicate they require magic handling of the zero page (Sparc and m68k). Signed-off-by: Jes Sorensen <jes@wildopensource.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2029, 2005-03-13 16:16:16-08:00, mason@suse.com [PATCH] reiserfs: make sure data=journal buffers are cleaned on free In data=journal mode, when blocks are freed and their buffers are dirty, reiserfs can remove them from the transaction without cleaning them. These buffers never get cleaned, resulting in an unfreeable page. Signed-off-by: Chris Mason <mason@suse.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2028, 2005-03-13 16:15:58-08:00, andrea@suse.de [PATCH] orphaned pagecache memleak fix Chris found that with data journaling a reiserfs pagecache may be truncate while still pinned. The truncation removes the page->mapping, but the page is still listed in the VM queues because it still has buffers. Then during the journaling process, a buffer is marked dirty and that sets the PG_dirty bitflag as well (in mark_buffer_dirty). After that the page is leaked because it's both dirty and without a mapping. So we must allow pages without mapping and dirty to reach the PagePrivate check. The page->mapping will be checked again right after the PagePrivate check. Signed-off-by: Andrea Arcangeli <andrea@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2027, 2005-03-13 16:15:41-08:00, haveblue@us.ibm.com [PATCH] x86: fix booting non-NUMA system with NUMA config There is a bug booting with CONFIG_NUMA=y, CONFIG_X86_GENERICARCH=y, and booting on a non-NUMA system. While not the most common configuration, it should surely be supported. memmap_init_zone() is the first user to do pfn_to_nid(), which relies on physnode_map[] to be done properly. memory_present() was supposed to do that, but never got called for the flat configuration, so pfn_to_nid() was returning -1 on valid pages. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2026, 2005-03-13 16:15:24-08:00, bunk@stusta.de [PATCH] drivers/video/intelfb/: fix a warning drivers/video/intelfb/intelfbdrv.h:31: warning: 'intelfb_setup' declared `static' but never defined Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2025, 2005-03-13 16:15:08-08:00, bunk@stusta.de [PATCH] remove drivers/mtd/maps/ich2rom.c drivers/mtd/maps/ich2rom.c is completely unused because it was renamed to drivers/mtd/maps/ichxrom.c. This patch removes the stale ich2rom.c file. This patch was already ACK'ed by David Woodhouse and Eric W. Biederman. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2024, 2005-03-13 16:14:51-08:00, pmeda@akamai.com [PATCH] dcache: is_subdir missed reset after seqretry dcache: is_subdir forgot to reset the result after seqretry. Signed-Off-by: Prasanna Meda <pmeda@akamai.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2023, 2005-03-13 16:14:35-08:00, js@linuxtv.org [PATCH] DVB whitespace cleanup This is the DVB whitespace cleanup patch (the big one ;-). I checked the whitespace-onlyness: linux-2.6.11-bk9$ find drivers/media/common drivers/media/dvb -name "*.o" | xargs size >/tmp/1 linux-2.6.11-bk9$ cd - linux-2.6.11-bk9.patched linux-2.6.11-bk9.patched$ find drivers/media/common drivers/media/dvb -name "*.o" | xargs size >/tmp/2 linux-2.6.11-bk9.patched$ less /tmp/1 linux-2.6.11-bk9.patched$ less /tmp/2 linux-2.6.11-bk9.patched$ diff -us /tmp/1 /tmp/2 Files /tmp/1 and /tmp/2 are identical DVB whitespace cleanups: o sync kernel and linuxtv.org CVS wrt whitespace o repair indentation damage o remove whitespace at eol Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2022, 2005-03-13 16:14:14-08:00, benh@kernel.crashing.org [PATCH] ide-pmac logic fix This patch fixes a logic error in the ide-pmac driver which could try to access the chip's fcr register after the cell clock has been shut down, thus causing a machine check on machines with the "Intrepid" chipset. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.2009.1.80, 2005-03-13 15:43:27-08:00, davem@sunset.davemloft.net [SPARC64]: Cleanup and debloat arch/sparc64/kernel/central.c - Kill unused inline long_align() - Consolidate all of the error/failure reporting into one function, central_probe_failure() - Consolidate linux_prom_registers to physical address calculation into one function, prom_reg_to_paddr() - Change ZAP() macro into function, do not inline. Signed-off-by: David S. Miller <davem@davemloft.net> ChangeSet@1.2009.17.4, 2005-03-13 20:16:48+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2536/1: SA1100 - serial sparse error Patch from Ben Dooks Fix the mapbase to have __iomem Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.1982.29.83, 2005-03-13 14:12:32-06:00, matthew@wil.cx [PATCH] sym2 version 2.2.0 Docs - The sym53c8xx= kernel parameter no longer exists - Correct a typo Bugfixes - The driver really isn't capable of dealing with 64-bit bus addresses yet, so bail out early - Get rid of SYM_SCAN_TARGETS_HILO (which had no effect) and set the shost->reverse_ordering flag instead - Associate a scsi_device with the target in slave_alloc instead of slave_configure Printk cleanups - Use dev_warn/dev_info where possible - Delete PRINT_ADDR, PRINT_TARGET and PRINT_LUN - Remove sym_print_target() and sym_print_lun() - Make sym_print_addr() call dev_info Memory allocation related - Delete non-dma allocators; use kmalloc/kcalloc directly instead - Move memory allocation wrappers from sym_glue to sym_malloc - Get rid of m_addr_t; use void * or dma_addr_t as appropriate - Change m_pool_ident_t from a struct pci_dev * to a struct device * - Use dma_alloc_coherent() instead of pci_alloc_consistent() Negotiation related - Move scsi_transport_spi.h include from sym_glue.c to sym_glue.h - Store the current transfer contract settings in the starget attributes - Delete sym2_get_offset(), sym2_get_period(), sym2_get_width(), sym2_get_dt(), sym2_get_iu() and sym2_get_qas() - Use spi_support_wide() (and friends) instead of scsi_device_wide() - We don't need tinfo.prev -- we can tell if the contract changed - Delete SYM_OPT_ANNOUNCE_TRANSFER_RATE - Use spi_display_xfer_agreement() - Use sdev->scsi_level instead of the never-set tinfo.curr.scsi_version - Instead of checking current xfer settings against our goal, use a check_nego flag. - Get rid of sym_tinfo and use sym_trans directly. - Split the sym_trans options into flags - Change width from an u8 into a flag - Delete sym_misc.c - Remove sym_xpt_async_nego_wide Linuxisation - Use udelay() directly instead of indirecting through UDELAY and sym_udelay - Rename some scsi_cmnd pointers from ccb or csio to cmd - Use simple_strtoul() instead of a handwritten parser - SKIP_SPACES was always being used with 1 as a parameter, and was implicitly modifying ptr and len. - GET_INT_ARG was doing the same with ptr and len. - Use pci_iomap(), pci_iounmap(), ioread8() et al - Delete the sym_data_dmamap_*() macros - Replace SYM_CONF_IOMAPPED with CONFIG_SCSI_SYM53C8XX_IOMAPPED - Delete unused SYM_HAVE_SCCB, SYM_HAVE_M_SVTOB, SYM_HAVE_M_SPOOL Misc cleanup - Move sym_conf.h into sym53c8xx.h - Eliminate the unused SYM_SETUP_MAX_LUN, SYM_SCMD_PTR - SYM_SETUP_PCI_PARITY and SYM_SETUP_SCSI_PARITY are always defined; simplify - Rename sym_pci_chip to sym_chip - Write sym_get_hcb() to hide nasty macro abuse - sym_lp() doesn't need to take the sym_hcb as an argument - sym_get_ccb() works better if you give it the cmd instead of the id/lun - We don't use cmd->host_scribble, host->dma_channel, host->n_io_port, host->io_port, host->base or host->irq; stop initialising them. - sym_tune_dev_queuing() works better if you give it the tcb rather than the hcb and target - Get rid of sym_driver_name(), just use SYM_DRIVER_NAME directly - OUTB/INB/etc macros implicitly use the hcb pointer; pass it explictly instead - Map the BARs early instead of mapping and unmapping them as necessary - Automatically fall back to ioport accesses if iomem isn't available - Get rid of tcb_p, lcb_p and ccb_p typedefs - Delete support for big endian chips -- 8xx chips can't be in BE mode - Inline sym_slot into sym_device - Inline sym_printb_hex() into sym_printl_hex() - Don't cast function return values to void - Introduce sym_nvram_type() - Pass the hcb and starget to sym_check_goals since we already have them in the caller - Some 0/NULL cleanup - Embed the sense buffer in the CCB so it doesn't need to be allocated separately Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> ChangeSet@1.2009.17.3, 2005-03-13 20:08:51+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2532/1: CLPS7500 build fix Patch from Ben Dooks Fixed missing sys_timer from timer initialisation, renamed platform_register_device to platform_device_register and ensured that the machine init is called. Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.2009.17.2, 2005-03-13 20:01:23+00:00, ben-linux@org.rmk.(none) [ARM PATCH] 2531/1: S3C2410 - OTOM1.1 and Nexcoder 2440 support Patch from Ben Dooks Support for OTOM v1.1 and Nexcoder 2440, from Guillaume Gourat. Signed-off-by: Guillaume GOURAT Cleaned up for submission, and brough up-to-date by Ben Dooks Signed-off-by: Ben Dooks Signed-off-by: Russell King ChangeSet@1.2020, 2005-03-13 14:00:48-06:00, stevef@smfhome.smfdom [CIFS] remove the last cifs sparse warnings (except for those which require changes outside of cifs vfs) Signed-off-by: Steve French (sfrench@us.ibm.com) ChangeSet@1.2009.17.1, 2005-03-13 19:53:20+00:00, davis_g@com.rmk.(none) [ARM PATCH] 2529/1: Add semtimedop support - semop() with a timeout (with demuxed IPC syscall entry added) Patch from George G. Davis Adds ARM support for the semtimedop() function - semop with a timeout. This updates ARM with same support added for other archs long ago. Also includes sys_semtimeop syscall table entry appended to end of syscall table as per RMK\'s request. Signed-off-by: George G. Davis Signed-off-by: Russell King ChangeSet@1.2019, 2005-03-13 13:07:17-06:00, stevef@smf-t23.(none) [CIFS] remove sparse warnings Signed-off-by: Steve French (sfrench@us.ibm.com) ChangeSet@1.2009.1.79, 2005-03-13 08:42:20-08:00, roland@redhat.com [PATCH] x86: further EFLAGS and ptrace cleanups/fixes This patch further cleans up the appearance of TF in eflags when ptrace is involved. With this, PTRACE_SINGLESTEP will not cause TF to appear in eflags as seen by PTRACE_GETREGS and the like, when the instruction faulted for some reason other than the single-step trap. This moves the check added by Dan's patch from setup_sigcontext to handle_signal. This is a cosmetic difference, but I think it makes more sense to consolidate all the "reset registers to canonical state" work in the same place (i.e. put it with the syscall rollback code), separate from the signal handler setup. The change that matters is moving the similar check out of do_debug, where it only covers the case of a single-step trap. Instead, it goes into the ptrace_signal_deliver macro, which is called before the ptrace stop for whatever signal results from whatever kind of fault in that instruction (or asynchronous signal). With that, the handle_signal check is still needed only for the case of PTRACE_SINGLESTEP with a handled signal. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org> ChangeSet@1.1982.159.18, 2005-03-12 22:31:28-08:00, gregkh@suse.de Linux 2.6.11.3 TAG: v2.6.11.3