ChangeSet@1.2009.16.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 ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 Signed-off-by: Bart De Schuymer Signed-off-by: David S. Miller ChangeSet@1.2009.16.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 Signed-off-by: David S. Miller 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 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 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Acked-by:: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Maximilian Attems Acked-by: Jeff Dike Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Maximilian Attems Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Acked-by: Mikael Starvik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Maximilian Attems Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 is unsigned int. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Acked-by: Henrik Brix Andersen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2124, 2005-03-13 16:43:39-08:00, akpm@osdl.org [PATCH] hpet setup comment fix Suggested by Andrew Walrond Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Acked-by: Mike Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 fixes two documentationn paths. Signed-off-by: Josef "Jeff" Sipek Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Greg Kroah-Hartman Signed-off-by: Vojtech Pavlik Acked-by: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ChangeSet@1.2061, 2005-03-13 16:25:15-08:00, pavel@suse.cz [PATCH] swsusp: enable resume from initrd From: 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 Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Rafael J. Wysocki Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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_. Signed-off-by: Kumar Gala Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Cc: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 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 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.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 Signed-off-by: Linus Torvalds ChangeSet@1.1982.158.18, 2005-03-12 22:31:28-08:00, gregkh@suse.de Linux 2.6.11.3 TAG: v2.6.11.3