commit d4ac2477fad0f2680e84ec12e387ce67682c5c13 Author: Linus Torvalds Date: Fri Aug 3 19:49:55 2007 -0700 Linux 2.6.23-rc2 commit 3e847423bf029c2170692c75580a856debed617b Author: Al Viro Date: Thu Aug 2 19:21:30 2007 +0100 fix s2io regression * wrong argument passed to pci_unmap_single() on failure exit paths * leak in the same area Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 247284481ca40288bd120cf0707681c3bdbee78f Author: Oleg Nesterov Date: Sat Aug 4 01:04:41 2007 +0400 Kill some obsolete sub-thread-ptrace stuff There is a couple of subtle checks which were needed to handle ptracing from the same thread group. This was deprecated a long ago, imho this code just complicates the understanding. And, the "->parent->signal->flags & SIGNAL_GROUP_EXIT" check in exit_notify() is not right. SIGNAL_GROUP_EXIT can mean exec(), not exit_group(). This means ptracer can lose a ptraced zombie on exec(). Minor problem, but still the bug. Signed-off-by: Oleg Nesterov Acked-by: Roland McGrath Signed-off-by: Linus Torvalds commit b6b1d87785712474d0ed80689c17107d616a1171 Author: Daniel Ritz Date: Fri Aug 3 16:07:43 2007 +0200 serial: fix 8250 early console setup the early setup function serial8250_console_early_setup() can be called from non __init code (eg. hotpluggable serial ports like serial_cs) so remove the __init from the call chain to avoid crashes. Signed-off-by: Daniel Ritz Cc: Yinghai Lu Signed-off-by: Linus Torvalds commit 6ba60d2195cd65d72eaf7ce3903a707c5bf20c7b Author: David S. Miller Date: Fri Aug 3 14:24:17 2007 -0700 [SPARC]: Fix O_CLOEXEC values. The one choosen by asm-generic/fcntl.h is not appropriate for this platform. Noticed by Ulrich Drepper. Signed-off-by: David S. Miller commit 0a808a3131b2a6656475d82219f5e5d25edd7160 Author: David S. Miller Date: Thu Aug 2 00:19:14 2007 -0700 [SPARC32]: Fix modular build of floppy driver. Signed-off-by: David S. Miller commit 3daadf33013a1c4d7abf4a65b24644cdd8ae896a Author: Georg Chini Date: Wed Aug 1 21:55:58 2007 -0700 [SOUND] CS4231 SBus: Two fixes. Remove unnecessary sbus_dma_reset function and change sbus_dma_enable to avoid occasional system crashes when stopping recording. Signed-off-by: Georg Chini Signed-off-by: David S. Miller commit 3fc701d5d459f3b83ba874613048d36e91debca2 Author: Krzysztof Helt Date: Wed Aug 1 21:39:32 2007 -0700 [CG6]: fix memory size detection This patch fixes memory size detection on the CG6 card. The 1MB TGX card has dblbuf property set to 0. Signed-off-by: Krzysztof Helt Signed-off-by: David S. Miller commit 63213196fd4b05b9c3539cbe34775c60f1f6fad0 Author: David S. Miller Date: Tue Jul 31 20:43:17 2007 -0700 [SPARC64]: Add missing dma_sync_single_range_for_*(). Reported by Andrew Morton. Signed-off-by: David S. Miller commit bec494775600b1cd7c144d31a09e1f46df9c6324 Author: Satyam Sharma Date: Fri Aug 3 08:27:13 2007 +0530 [MTD] Makefile fix for mtdsuper We want drivers/mtd/{mtdcore, mtdsuper, mtdpart}.c to be built and linked into the same mtd.ko module. Fix the Makefile to ensure this, and remove duplicate MODULE_ declarations in mtdpart.c, as mtdcore.c already has them. Signed-off-by: Satyam Sharma Signed-off-by: David Woodhouse commit 67439b76f29cb278bb3412fc873b980fc65110c9 Author: Michael Neuling Date: Fri Aug 3 11:55:39 2007 +1000 [POWERPC] Fixes for the SLB shadow buffer code On a machine with hardware 64kB pages and a kernel configured for a 64kB base page size, we need to change the vmalloc segment from 64kB pages to 4kB pages if some driver creates a non-cacheable mapping in the vmalloc area. However, we never updated with SLB shadow buffer. This fixes it. Thanks to paulus for finding this. Also added some write barriers to ensure the shadow buffer contents are always consistent. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras commit 5628244059976009151d41c2798855290753d8d5 Author: Segher Boessenkool Date: Thu Aug 2 01:41:14 2007 +1000 [POWERPC] Fix a compile warning in powermac/feature.c ...by using the pci_get API instead of the deprecated old stuff. Signed-off-by: Segher Boessenkool Signed-off-by: Paul Mackerras commit 3a77d291be53fbc619f14a6199b9b4cac036c476 Author: Segher Boessenkool Date: Thu Aug 2 01:41:13 2007 +1000 [POWERPC] Fix a compile warning in pci_32.c __must_check, so do so. Signed-off-by: Segher Boessenkool Signed-off-by: Paul Mackerras commit b9c3fdb0f0fe02ba33e87ef947f23cd12e6196fe Author: Michael Ellerman Date: Wed Aug 1 11:34:38 2007 +1000 [POWERPC] Fix parse_drconf_memory() for 64-bit start addresses Some new machines use the "ibm,dynamic-reconfiguration-memory" property to provide memory layout information, rather than via memory nodes. There is a bug in the code to parse this property for start addresses over 4GB; we store the start address in an unsigned int, which means we throw away the high bits and add apparently duplicate regions. This results in a BUG() in free_bootmem_core(). This fixes it by using an unsigned long instead. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras commit 17aa3a82aa2173a22405f862c4444656f0494a3f Author: Kevin Corry Date: Wed Aug 1 06:19:46 2007 +1000 [POWERPC] Fix num_cpus calculation in smp_call_function_map() In smp_call_function_map(), num_cpus is set to the number of online CPUs minus one. However, if the CPU mask does not include all CPUs (except the one we're running on), the routine will hang in the first while() loop until the 8 second timeout occurs. The num_cpus should be set to the number of CPUs specified in the mask passed into the routine, after we've made any modifications to the mask. With this change, we can also get rid of the call to cpus_empty() and avoid adding another pass through the bitmask. Signed-off-by: Kevin Corry Signed-off-by: Carl Love Signed-off-by: Paul Mackerras commit cba684f56d7e8b82b08d4372375a42d6ebeab47d Author: Stephen Rothwell Date: Tue Jul 31 17:22:00 2007 +1000 [POWERPC] ps3: Fix section mismatch in ps3/setup.c WARNING: vmlinux.o(.text+0x605d4): Section mismatch: reference to .init.text:.__alloc_bootmem (between '.prealloc' and '.ps3_power_save') Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras commit 683e3ab2b54a7190ec8517705880171cc8ac1d92 Author: Andre Detsch Date: Tue Jul 31 09:48:11 2007 +1000 [POWERPC] spufs: Fix affinity after introduction of node_allowed() calls This patch fixes affinity reference point placement, which was not being done in some situations, after the introduction of node_allowed() calls. The previously used parameter, 'ctx', is just the iterator of the previous list_for_each_entry_reverse loop, and its value might be invalid at the end of the loop. Also, the right context to seek for information when defining the reference ctx location _is_ the reference ctx. Signed-off-by: Andre Detsch Signed-off-by: Arnd Bergmann Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 430404ed9c2f202ca9d3c8072699b2b0279e4dfe Author: Paul Mackerras Date: Fri Aug 3 19:16:11 2007 +1000 [POWERPC] Fix special PTE code for secondary hash bucket The code for mapping special 4k pages on kernels using a 64kB base page size was missing the code for doing the RPN (real page number) manipulation when inserting the hardware PTE in the secondary hash bucket. It needs the same code as has already been added to the code that inserts the HPTE in the primary hash bucket. This adds it. Spotted by Ben Herrenschmidt. Signed-off-by: Paul Mackerras commit c0f7c6cb5dbb6d90e0334e62376dbc6ac3d1d315 Author: Paul Mackerras Date: Fri Aug 3 14:08:24 2007 +1000 [POWERPC] Expand RPN field to 34 bits when using 64k pages The real page number field in our PTEs when configured for 64kB pages is currently 32 bits, which turns out to be not quite enough for the resources that the eHCA driver wants to map. This expands the RPN field to include 2 adjacent, previously-unused bits. Signed-off-by: Paul Mackerras Acked-by: Benjamin Herrenschmidt commit 49ff4bb4cd4c04acf8f9e3d3ec2148305a1db445 Author: Ilpo Järvinen Date: Thu Aug 2 19:47:59 2007 -0700 [TCP]: DSACK signals data receival, be conservative In case a DSACK is received, it's better to lower cwnd as it's a sign of data receival. Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller commit 2e6052941ae1f2f875d7d9092acb8836af1e0193 Author: Ilpo Järvinen Date: Thu Aug 2 19:46:58 2007 -0700 [TCP]: Also handle snd_una changes in tcp_cwnd_down tcp_cwnd_down must check for it too as it should be conservative in case of collapse stuff and also when receiver is trying to lie (though that wouldn't be very successful/useful anyway). Note: - Separated also is_dupack and do_lost in fast_retransalert * Much cleaner look-and-feel now * This time it really fixes cumulative ACK with many new SACK blocks recovery entry (I claimed this fixes with last patch but it wasn't). TCP will now call tcp_update_scoreboard regardless of is_dupack when in recovery as long as there is enough fackets_out. - Introduce FLAG_SND_UNA_ADVANCED * Some prior_snd_una arguments are unnecessary after it - Added helper FLAG_ANY_PROGRESS to avoid long FLAG...|FLAG... constructs Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller commit d788d8056fd913defa48bd94f18dc53de98cd7a6 Author: Florian Westphal Date: Thu Aug 2 19:28:06 2007 -0700 [TIPC]: Fix two minor sparse warnings. fix two warnings generated by sparse: link.c:2386 symbol 'msgcount' shadows an earlier one node.c:244 symbol 'addr_string' shadows an earlier one Signed-off-by: Florian Westphal Signed-off-by: David S. Miller commit 248bbf38215fd5ce45a31c65c5e5511d9b611e5a Author: Florian Westphal Date: Thu Aug 2 19:26:23 2007 -0700 [TIPC]: Make function tipc_nameseq_subscribe static. make needlessly global function tipc_nameseq_subscribe static. Signed-off-by: Florian Westphal Signed-off-by: David S. Miller commit 4a4b6271a8df417e328aed4c8a7e04e0b282207e Author: Joy Latten Date: Thu Aug 2 19:25:43 2007 -0700 [PF_KEY]: Fix ipsec not working in 2.6.23-rc1-git10 Although an ipsec SA was established, kernel couldn't seem to find it. I think since we are now using "x->sel.family" instead of "family" in the xfrm_selector_match() called in xfrm_state_find(), af_key needs to set this field too, just as xfrm_user. In af_key.c, x->sel.family only gets set when there's an ext_hdrs[SADB_EXT_ADDRESS_PROXY-1] which I think is for tunnel. I think pfkey needs to also set the x->sel.family field when it is 0. Tested with below patch, and ipsec worked when using pfkey. Signed-off-by: David S. Miller commit 3516ffb0fef710749daf288c0fe146503e0cf9d4 Author: David S. Miller Date: Thu Aug 2 19:23:56 2007 -0700 [TCP]: Invoke tcp_sendmsg() directly, do not use inet_sendmsg(). As discovered by Evegniy Polyakov, if we try to sendmsg after a connection reset, we can do incredibly stupid things. The core issue is that inet_sendmsg() tries to autobind the socket, but we should never do that for TCP. Instead we should just go straight into TCP's sendmsg() code which will do all of the necessary state and pending socket error checks. TCP's sendpage already directly vectors to tcp_sendpage(), so this merely brings sendmsg() in line with that. Signed-off-by: David S. Miller commit 1bcabbdb0bdfe8b15b05150a7857646430aaa7f8 Author: Mariusz Kozlowski Date: Wed Aug 1 21:54:27 2007 -0700 [IPV4] route.c: mostly kmalloc + memset conversion to k[cz]alloc Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller commit 4487b2f657a4d204c35a7afaa45fc8569c9069ca Author: Mariusz Kozlowski Date: Wed Aug 1 21:53:57 2007 -0700 [IPV4] raw.c: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller commit 8adc5465525f28be1f728b6fa600d327e1d49f55 Author: Mariusz Kozlowski Date: Wed Aug 1 21:53:24 2007 -0700 [NETFILTER] nf_conntrack_l3proto_ipv4_compat.c: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller commit 9f0d1a004d8d8c33d337d2b1cc9f0dc941cab627 Author: Mariusz Kozlowski Date: Wed Aug 1 21:52:34 2007 -0700 [NETFILTER] nf_conntrack_expect.c: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller commit 2f0812350e0e34f583919470b0517c2e368ee048 Author: Michal Piotrowski Date: Wed Aug 1 21:50:44 2007 -0700 [NET]: Removal of duplicated include net/wanrouter/wanmain.c Signed-off-by: Michal Piotrowski Signed-off-by: David S. Miller commit cc6f33db30c4fcf7915270619e81a91d6190b6c8 Author: Magnus Damm Date: Fri Aug 3 10:17:47 2007 +0900 sh: fix defconfigs for sh7751r boards This patch fixes up the defconfig for various sh7751r based boards by updating them to the single cpu subtype CONFIG_CPU_SUBTYPE_SH7751R. The following sh4 boards are updated: hs7751rvoip, landisk, lboxre2, systemh, titan. The current defconfigs with two subtypes defined trigger a configuration bug which result in kernel configurations with missing board support code. We end up with kernels without board code and with generic machvec only. So we need this patch to make sure the board code gets compiled in. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 5ca95c48f1bd006d1aafe2f8bf1a859262d6d7b1 Author: Magnus Damm Date: Fri Aug 3 10:16:29 2007 +0900 sh: fix cf support on r2d boards This patch makes sure cf support is enabled on R2D-PLUS but disabled on R2D-1. Without this fix R2D-1 boards hang on bootup. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit a3b3e23015061814bffd733dbd9c4452b81ca6aa Author: Magnus Damm Date: Fri Aug 3 10:15:53 2007 +0900 sh: update r2d defconfig - Disable CONFIG_SH_DMA to avoid boot up freeze on R2D-1 - Disable CONFIG_SH_STANDARD_BIOS to support R2D-PLUS boot loaders Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 49dd3ff3a5f39d4300a4bc85e42756e286e28654 Author: David McCullough Date: Fri Aug 3 10:14:09 2007 +0900 sh: update snapgear defconfig. Updated the snapgear defconfig to get a booting kernel. Signed-off-by: David McCullough Signed-off-by: Paul Mundt commit 515495a1da9abf339b922b7919c4950e85b87b42 Author: Ben Dooks Date: Mon May 28 19:17:54 2007 +0100 [MTD] [NAND] nand_base.c: fix type of eccpos pointer The nand_base.c driver implicitly casts the uint32_t eccpos array to 'int *', which is not only not guaranteed to be the same sign as the source, but is not guaranteed to be the same size. Fix by changing nand_base.c to use uint32_t referencing the eccpos fields. Signed-off-by: Ben Dooks Signed-off-by: David Woodhouse commit a4265f8d9241ba583e48380f1b9e60cfcb798449 Author: Ivan Kuten Date: Thu May 24 14:35:58 2007 +0300 [MTD] [NAND] at91_nand rdy_pin fix The patch below fixes nand driver for AT91 boards which do not have NAND R/B signal connected to gpio (rdy_pin is not connected). Signed-off-by: Ivan Kuten Acked-by: Andrew Victor Signed-off-by: David Woodhouse commit 06a7643cd3d440a1d15a6b3aa7ee431f3f4791b4 Author: Artem Bityutskiy Date: Mon Jul 23 16:06:50 2007 +0300 [MTD] [NAND] fix race in nand_base.c When we mark block bad we have to get chip because this involves writing to the page's OOB. We hit this bug in UBI - we observed random obscure crashes when it marks block bad from the background thread and there is some parallel task which utilizes flash. This patch also adds a TODO note about BBT table protection which it seems does not exist. Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 9d7b4b5562b60c826c71cf2e1b7b63add42e527f Author: Roland Stigge Date: Wed Jul 18 14:56:11 2007 +0200 [MTD] [NAND] Fix refactoring of EDB7312 hwcontrol function. The patch ensures that the current code (kernel 2.6.22) uses the bits like the code prior to the refactoring. The variable "bits" is employed in a useful way now. Signed-off-by: Roland Stigge Signed-off-by: David Woodhouse commit 47af05dd4b98b57eeb682596a0df42d106e02167 Author: Florin Malita Date: Thu Jul 19 16:45:18 2007 -0400 [MTD] Fix potential leak in rfd_ftl_add_mtd This fixes a leak in the !mtd->erasesize error path (Coverity 1765). Signed-off-by: Florin Malita Signed-off-by: David Woodhouse commit b8e3ec30c232eb76c96ecab52205fe46e8b0473a Author: David Woodhouse Date: Thu Jul 5 01:57:26 2007 -0400 [JFFS2] Print correct node offset when complaining about broken data CRC Debugging the hardware problems in OLPC trac #1905 would be a whole lot easier if the correct node offsets were printed for the offending nodes. Signed-off-by: David Woodhouse commit 7b687707d769112aee220bafd50fa113363717ff Author: David Woodhouse Date: Thu Jun 28 19:49:36 2007 +0100 [JFFS2] Fix suspend failure with JFFS2 GC thread. The try_to_freeze() call was in the wrong place; we need it in the signal-pending loop now that a pending freeze also makes signal_pending() return true. Signed-off-by: David Woodhouse commit 71c23397752c0e40722d931ab9152342e9673336 Author: David Woodhouse Date: Fri Jun 29 13:39:57 2007 +0100 [JFFS2] Deletion dirents should be REF_NORMAL, not REF_PRISTINE. Otherwise they'll never actually get garbage-collected. Noted by Jonathan Larmour. Signed-off-by: David Woodhouse commit 5bd5c03c317085339deb044ba52fce131a6a0b67 Author: Joakim Tjernlund Date: Sun Jun 24 19:22:29 2007 +0200 [JFFS2] Prevent oops after 'node added in wrong place' debug check jffs2_add_physical_node_ref() should never really return error -- it's an internal debugging check which triggered. We really need to work out why and stop it happening. But in the meantime, let's make the failure mode a little less nasty. Signed-off-by: Joakim Tjernlund Signed-off-by: David Woodhouse commit ae57988f68acdc9fbee649765148f15eb7a1b991 Author: Stefan Richter Date: Thu Aug 2 20:34:17 2007 +0200 firewire: fw-core: make two variables static Signed-off-by: Stefan Richter commit 4eaff7d63052d781732de9eff4d2287c8e00348f Author: Stefan Richter Date: Wed Jul 25 19:18:08 2007 +0200 firewire: fw-ohci: dma_free_coherent needs IRQs enabled Signed-off-by: Stefan Richter commit 25659f7183376c6b37661da6141d5eaa21479061 Author: Stefan Richter Date: Sat Jul 21 22:43:05 2007 +0200 firewire: fw-sbp2: set correct maximum payload (fixes CardBus adapters) As far as I know, all CardBus FireWire 400 adapters have a maximum payload of 1024 bytes which is less than the speed-dependent limit of 2048 bytes. Fw-sbp2 has to take the host adapter's limit into account. This apparently fixes Juju's incompatibility with my CardBus cards, a NEC based card and a VIA based card. Signed-off-by: Stefan Richter Acked-by: Kristian Høgsberg commit e4f8cac5e07528f7e0bc21d3682c16c9de993ecb Author: Stefan Richter Date: Sat Jul 21 17:51:22 2007 +0200 ieee1394: sbp2: more correct Kconfig dependencies Make the option SBP2_PHYS_DMA available on all architectures where it compiles. This includes x86-64 where I runtime-tested it successfully. Signed-off-by: Stefan Richter commit a9c2f18800753c82c45fc13b27bdc148849bdbb2 Author: Stefan Richter Date: Wed Aug 1 20:30:36 2007 +0200 ieee1394: revert "sbp2: enforce 32bit DMA mapping" Revert commit 0555659d63c285ceb7ead3115532e1b71b0f27a7 from 2.6.22-rc1. The dma_set_mask call somehow failed on a PowerMac G5, PPC64: http://lkml.org/lkml/2007/8/1/344 Should there ever occur a DMA mapping beyond the physical DMA range, a proper SBP-2 firmware will report transport errors. So let's leave it at that. Signed-off-by: Stefan Richter Tested-by: Olaf Hering commit c3887cd7253299cac2a6dc5ea792613a5ba5bf6a Author: H. Peter Anvin Date: Thu Aug 2 13:50:43 2007 -0400 [x86 setup] Document grub < 0.93 as broken Grub older than 0.93 are broken when the kernel setup is bigger than 8K. This was fixed in 2002, and 0.93 was the first grub version which fixed this bug. Signed-off-by: H. Peter Anvin commit 463c9a9f7d1f746c251761cef3af5c808394b7e1 Author: H. Peter Anvin Date: Thu Aug 2 13:45:49 2007 -0400 [x86 setup] EDD: add missing =m constraint Add a missing =m constraint to the EDD-probing code, that could have caused improper dead-code elimination. Signed-off-by: H. Peter Anvin commit e6e0871cce2ae04f5790543ad2f4ec36b23260ba Author: Paul Moore Date: Wed Aug 1 11:12:59 2007 -0400 Net/Security: fix memory leaks from security_secid_to_secctx() The security_secid_to_secctx() function returns memory that must be freed by a call to security_release_secctx() which was not always happening. This patch fixes two of these problems (all that I could find in the kernel source at present). Signed-off-by: Paul Moore Acked-by: Stephen Smalley Signed-off-by: James Morris commit 088999e98b8caecd31adc3b62223a228555c5ab7 Author: Paul Moore Date: Wed Aug 1 11:12:58 2007 -0400 SELinux: remove redundant pointer checks before calling kfree() We don't need to check for NULL pointers before calling kfree(). Signed-off-by: Paul Moore Acked-by: Stephen Smalley Signed-off-by: James Morris commit 9534f71ca33e5a9de26dfd43c76af86e005005dd Author: Paul Moore Date: Mon Jul 30 16:33:26 2007 -0400 SELinux: restore proper NetLabel caching behavior A small fix to the SELinux/NetLabel glue code to ensure that the NetLabel cache is utilized when possible. This was broken when the SELinux/NetLabel glue code was reorganized in the last kernel release. Signed-off-by: Paul Moore Acked-by: Stephen Smalley Signed-off-by: James Morris commit 94c18227d1e3f02de5b345bd3cd5c960214dc9c8 Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: reduce task_struct size more task_struct size reduction, by moving the debugging/instrumentation fields to under CONFIG_SCHEDSTATS: (i386, nodebug): size ---- pre-CFS 1328 CFS 1472 CFS+patch 1376 Signed-off-by: Ingo Molnar commit 6cfb0d5d06bea2b8791f32145eae539d524e5f6c Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: reduce debug code move the rest of the debugging/instrumentation code to under CONFIG_SCHEDSTATS too. This reduces code size and speeds code up: text data bss dec hex filename 33044 4122 28 37194 914a sched.o.before 32708 4122 28 36858 8ffa sched.o.after Signed-off-by: Ingo Molnar commit 8179ca23d513717cc5e3dc81a1ffe01af0955468 Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: use schedstat_set() API make use of the new schedstat_set() API to eliminate two #ifdef sections. No functional changes: text data bss dec hex filename 29009 4122 28 33159 8187 sched.o.before 29009 4122 28 33159 8187 sched.o.after Signed-off-by: Ingo Molnar commit c3c7011969274768818842b0a08ec45d88f45b4f Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: add schedstat_set() API add the schedstat_set() API, to allow the reduction of CONFIG_SCHEDSTAT related #ifdefs. No code changed. Signed-off-by: Ingo Molnar commit 9c2172459a47c99adf9c968180a8a57d9ff84efa Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: move load-calculation functions move load-calculation functions so that they can use the per-policy declarations and methods. Signed-off-by: Ingo Molnar commit cad60d93e18ba52b6f069b2edb031c89bf603b07 Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: ->task_new cleanup make sched_class.task_new == NULL a 'default method', this allows the removal of task_rt_new. Signed-off-by: Ingo Molnar commit 4e6f96f313561d86d248edf0eaff2336d8217e1b Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: uninline inc/dec_nr_running() uninline inc_nr_running() and dec_nr_running(): text data bss dec hex filename 29039 4162 24 33225 81c9 sched.o.before 29027 4162 24 33213 81bd sched.o.after Signed-off-by: Ingo Molnar commit cb1c4fc924d7eeb3fb723ad72705d4a70e9781fd Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: uninline calc_delta_mine() uninline calc_delta_mine(): text data bss dec hex filename 29162 4162 24 33348 8244 sched.o.before 29039 4162 24 33225 81c9 sched.o.after Signed-off-by: Ingo Molnar commit ecf691daf7afb418537ba459290191a0a5853be5 Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: calc_delta_mine(): use fixed limit use fixed limit in calc_delta_mine() - this saves an instruction :) Signed-off-by: Ingo Molnar commit 5a4f3ea77e1b0c72a3ec136c881eb0d64aa1d25e Author: Peter Williams Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: tidy up left over smpnice code 1. The only place that RTPRIO_TO_LOAD_WEIGHT() is used is in the call to move_tasks() in the function active_load_balance() and its purpose here is just to make sure that the load to be moved is big enough to ensure that exactly one task is moved (if there's one available). This can be accomplished by using ULONG_MAX instead and this allows RTPRIO_TO_LOAD_WEIGHT() to be deleted. 2. This, in turn, allows PRIO_TO_LOAD_WEIGHT() to be deleted. 3. This allows load_weight() to be deleted which allows TIME_SLICE_NICE_ZERO to be deleted along with the comment above it. Signed-off-by: Peter Williams Signed-off-by: Ingo Molnar commit 362a7016637648c6aefc98b706298baedfaa1543 Author: Ingo Molnar Date: Thu Aug 2 17:41:40 2007 +0200 [PATCH] sched: remove cache_hot_time remove the last unused remains of cache_hot_time. Signed-off-by: Ingo Molnar commit 59acc08fd95aefb5430458a08a82b15a4174ed74 Author: Antonino A. Daplas Date: Thu Aug 2 18:16:46 2007 +0800 [x86 setup] video setup: Fix VBE DDC reading Add memory operand constraint and write-only modifier to the inline assembly to effect the writing of the EDID block to boot_params.edid_info. Without this, gcc would think the EDID query was dead code and would eliminate it. Signed-off-by: Antonino Daplas Signed-off-by: H. Peter Anvin commit 5f8f1c3c87e44f1bd0180cf19d0e7c83d062b4dc Author: Wei Yongjun Date: Thu Aug 2 17:02:29 2007 +0800 SCTP: remove useless code in function sctp_init_cause Some code in function sctp_init_cause() seem useless, this patch remove them. Signed-off-by: Wei Yongjun Signed-off-by: Vlad Yasevich commit aecedeab6fcf914929cd8ff6fa0b8ae9bfdf3d30 Author: Wei Yongjun Date: Thu Aug 2 16:57:44 2007 +0800 SCTP: drop SACK if ctsn is not less than the next tsn of assoc We need to drop the SACK if the peer is attempting to acknowledge unset data, i.e. the CTSN in the SACK is greater or equal to the next TSN we will send. Example: Endpoint A Endpoint B <--------------- DATA (TSN=1) SACK(TSN=1) ---------------> <--------------- DATA (TSN=2) <--------------- DATA (TSN=3) <--------------- DATA (TSN=4) <--------------- DATA (TSN=5) SACK(TSN=1000) ---------------> <--------------- DATA (TSN=6) <--------------- DATA (TSN=7) Signed-off-by: Wei Yongjun Signed-off-by: Vlad Yasevich commit 22f675f320f721e9eaa2bbf7b883316b408c6c8f Author: Jiri Kosina Date: Wed Aug 1 12:32:27 2007 +0200 HID: Never call hid_free_buffers() when usbhid_device has been freed We can't call hid_free_buffers() when the underlying usbhid_device has already been freed. Signed-off-by: Jiri Kosina commit cda5ecf80bad94b4113722f037af818e7453dd2d Author: Jiri Kosina Date: Mon Jul 30 15:40:06 2007 +0200 USB HID: fix memory leak of usbhid_device Add forgotten freeing of usbhid_device structure. Signed-off-by: Jiri Kosina commit de1a7b03282310d143cb0add74e909daffedda01 Author: Jesper Juhl Date: Mon Jul 30 15:15:26 2007 +0200 USB HID: fix a possible NULL pointer dereference when we fail to allocate memory If, in usb_hid_configure(), we fail to allocate storage for 'usbhid', "if (!(usbhid = kzalloc(sizeof(struct usbhid_device), GFP_KERNEL)))", then we'll jump to the 'fail:' label where we have this code: usb_free_urb(usbhid->urbin); usb_free_urb(usbhid->urbout); usb_free_urb(usbhid->urbctrl); Since we got here because we couldn't allocate storage for 'usbhid', what we have here is a NULL pointer dereference - ouch... This patch solves that little problem by adding a new 'fail_no_usbhid:' label after the problematic calls to usb_free_urb() and jumps to that one instead, in the problem case. Signed-off-by: Jesper Juhl Signed-off-by: Jiri Kosina commit 04a9b7ffceff4337d9e63476b5c71e9b79249969 Author: Christian Lamparter Date: Mon Jul 30 14:38:26 2007 +0200 USB HID: add ASUS LCM to the blacklist Some of ASUS' notebooks (e.g G Series) include a tiny oled display, which is attached to an internal USB bus. Unfortunatly the device reports a wrong DeviceDescriptor and is therefore identified as a HID device... Signed-off-by: Christian Lamparter Signed-off-by: Jiri Kosina commit 9fdcfed8ebc4f5273179f8ff00ab83a6403016de Author: Phil Dibowitz Date: Mon Jul 30 12:00:48 2007 +0200 USB HID: Add all Logitech Harmonies to blacklist This patch adds the entire range of Logitech's ProductIDs that are reserved for their Harmony remotes. The in-kernel HID driver can't do anything with these, and now there is a GPL user-space application that can handle them: http://www.sf.net/projects/harmonycontrol Signed-off-by: Phil Dibowitz Signed-off-by: Jiri Kosina commit 2dea64b4aace953924848ac9ab05217da20a7932 Author: Jiri Kosina Date: Wed Jul 11 12:12:11 2007 +0200 USB HID: update description of USBHID in MAINTAINERS Make it more clear to users what kinds of hardware USBHID handles, so that they can send reports and queries properly. Signed-off-by: Jiri Kosina commit 3e1928e8793208802589aae851b6685671187242 Author: Tino Keitel Date: Thu Jul 12 00:11:34 2007 +0200 HID: remove the Applie IR sensor from the hid_blacklist The IR sensor in some newer Apple computers has no other driver in the kernel, yet. However, the macmini driver in lirc requires a HID device for the IR sensor. Cc: Soeren Sonnenburg Signed-off-by: Tino Keitel Signed-off-by: Jiri Kosina commit 04668873daa822aa6c806ba28d1143db8dcb26e8 Author: David Howells Date: Wed Aug 1 19:04:51 2007 +0100 FRV: Enable the MB86943 PCI arbiter correctly Enable the MB93090 motherboard's MB86943 PCI arbiter correctly by assigning to the register rather than comparing against it. This is required to support bus mastering. Signed-off-by: David Howells Signed-off-by: Linus Torvalds commit 0fc4969b866671dfe39b1a9119d0fdc7ea0f63e5 Author: Thomas Gleixner Date: Wed Aug 1 17:13:19 2007 +0200 genirq: temporary fix for level-triggered IRQ resend Marcin Slusarz reported a ne2k-pci "hung network interface" regression. delayed disable relies on the ability to re-trigger the interrupt in the case that a real interrupt happens after the software disable was set. In this case we actually disable the interrupt on the hardware level _after_ it occurred. On enable_irq, we need to re-trigger the interrupt. On i386 this relies on a hardware resend mechanism (send_IPI_self()). Actually we only need the resend for edge type interrupts. Level type interrupts come back once enable_irq() re-enables the interrupt line. I assume that the interrupt in question is level triggered because it is shared and above the legacy irqs 0-15: 17: 12 IO-APIC-fasteoi eth1, eth0 Looking into the IO_APIC code, the resend via send_IPI_self() happens unconditionally. So the resend is done for level and edge interrupts. This makes the problem more mysterious. The code in question lib8390.c does disable_irq(); fiddle_with_the_network_card_hardware() enable_irq(); The fiddle_with_the_network_card_hardware() might cause interrupts, which are cleared in the same code path again, Marcin found that when he disables the irq line on the hardware level (removing the delayed disable) the card is kept alive. So the difference is that we can get a resend on enable_irq, when an interrupt happens during the time, where we are in the disabled region. Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds commit fd0cbdd378258fdf44eac5ea091256a4a665315b Author: Heiko Carstens Date: Thu Aug 2 00:18:38 2007 +0200 Fix WARN_ON() on bitfield ops for all other archs Fixes WARN_ON() on bitfiels ops for all architectures that have been left out in 8d4fbcfbe0a4bfc73e7f0297c59ae514e1f1436f. Cc: Alexey Dobriyan Cc: Herbert Xu Cc: Haavard Skinnemoen Cc: Matthew Wilcox Cc: Kyle McMartin Cc: Martin Schwidefsky Acked-by: Paul Mundt Signed-off-by: Heiko Carstens Signed-off-by: Linus Torvalds commit 3fcece66911c9d485c1e2050ba033fde607b5130 Author: Bartlomiej Zolnierkiewicz Date: Wed Aug 1 23:46:46 2007 +0200 scc_pata: PIO fixes * Use pio == 255 == "auto-tune" in scc_config_drive_for_dma() instead of forcing PIO4 on PIO fallback. Fix comment while at it. * Rename scc_tuneproc() to scc_tune_pio() and add scc_tuneproc() wrapper. Move finding of the best PIO mode and setting of transfer mode on the device to the new wrapper. * Fix scc_tune_chipset() to tune PIO modes. Do a small cleanup while at it. Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz commit 0c8de52d76e4bec6e9168b47be29f11b3bb92768 Author: Bartlomiej Zolnierkiewicz Date: Wed Aug 1 23:46:46 2007 +0200 piix/slc90e66: fix PIO1 handling in ->speedproc method (take 2) * Don't call {piix,slc90e66}_dma_2_pio() for PIO modes in {piix,slc90e66}_tune_chipset(). * Add PIO1 handling to {piix,slc90e66}_tune_chipset(). * Bump driver version. v2: * Remove PIO modes from {piix,slc90e66}_dma_2_pio(), they are no longer needed there (Noticed by Sergei) Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz commit 8b6b33be3280fd776335079124ecd176e6a40797 Author: Bartlomiej Zolnierkiewicz Date: Wed Aug 1 23:46:46 2007 +0200 jmicron: PIO fixes * Set transfer mode on the device in jmicron_tuneproc(), also add pio == 255 == "auto-tune" handling. * Use jmicron_tuneproc() in jmicron_config_drive_for_dma(). * Remove no longer needed config_jmicron_chipset_for_pio(). Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz commit 68aaf8150308dbf9d0e5ccd5bc05491ba575f966 Author: Bartlomiej Zolnierkiewicz Date: Wed Aug 1 23:46:46 2007 +0200 it8213: PIO fixes (take 2) * Rename it8213_tuneproc() to it8213_tune_pio() and add it8213_tuneproc() wrapper. Move finding of the best PIO mode to the new wrapper. * Add setting of transfer mode on the device to it8213_tuneproc(). * Don't call it8213_dma_2_pio() for PIO modes in it8213_tune_chipset(). * Use it8213_tuneproc() in it8213_config_drive_for_dma(). v2: * Remove PIO modes from it8213_dma_2_pio(), they are no longer needed there (Noticed by Sergei) Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz commit bc0b0b5c4bab02790937c9070a7701ee70feaac9 Author: Bartlomiej Zolnierkiewicz Date: Wed Aug 1 23:46:45 2007 +0200 cs5535: PIO fixes * Fix cs5535_tuneproc() to pass PIO transfer mode value instead of PIO mode number to cs5535_set_speed() (fixes random PIO timings being programmed and a possible OOPS). Do a little cleanup while at it. * Fix cs5535_set_speed() to check if the mate device is present (fixes PIO0 taskfile timings being used if there is no other device on the cable). * Use cs5535_tuneproc() in cs5535_dma_check(). The old code had the same issue as cs5535_tuneproc() and add additionally caused 0x00-0x04 transfer mode values (== default PIO, default PIO w/ IORDY + two invalid values) being set on the device instead of values 0x08-0x0c (XFER_PIO_[0,4]). Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz commit 070224339b52f0e4f8e6c991a5ad9630a7a9e6da Author: Bartlomiej Zolnierkiewicz Date: Wed Aug 1 23:46:45 2007 +0200 cs5520: fix PIO auto-tuning in ->ide_dma_check method Acked-by: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz commit 41ead3c918f48710ca1e03eb7b770eabcbbd260b Author: Mariusz Kozlowski Date: Wed Aug 1 23:46:45 2007 +0200 drivers/scsi/ide-scsi.c: kmalloc + memset conversion to kzalloc drivers/scsi/ide-scsi.c | 34642 -> 34536 (-106 bytes) drivers/scsi/ide-scsi.o | 171728 -> 171524 (-204 bytes) Signed-off-by: Mariusz Kozlowski Cc: Andrew Morton Signed-off-by: Bartlomiej Zolnierkiewicz commit cc60d8baa35c995bf8c40a9730b894993ddb43b9 Author: Mariusz Kozlowski Date: Wed Aug 1 23:46:44 2007 +0200 drivers/ide/arm/icside.c: kmalloc + memset conversion to kzalloc Is this a bug? In original verison memset cleared sizeof(state) bytes instead of sizeof(*state). If it was intentional then this patch is invalid. If not intentional -> valid :) Please review. Bart: Yes, it is a bug so this patch is a valid bugfix. :-) drivers/ide/arm/icside.c | 18883 -> 18849 (-34 bytes) Signed-off-by: Mariusz Kozlowski Cc: Andrew Morton Cc: Russell King Signed-off-by: Bartlomiej Zolnierkiewicz commit ab0579685d34eb2c6b101534796ba64c8b9107b5 Author: Stephen Rothwell Date: Wed Aug 1 23:46:44 2007 +0200 ide: eliminate warnings in ide-tape.c drivers/ide/ide-tape.c: In function '__idetape_kmalloc_stage': drivers/ide/ide-tape.c:2588: warning: large integer implicitly truncated to unsigned type drivers/ide/ide-tape.c:2616: warning: large integer implicitly truncated to unsigned type b_size in struct idetape_bh is an unsigned short. We sometimes assigne PAGE_SIZE to it and PAGE_SIZE can be 64K or larger, so make it a u32. Signed-off-by: Stephen Rothwell Signed-off-by: Bartlomiej Zolnierkiewicz commit b37c6b842b30fc8e90965ec242f624283d0032a3 Author: Meelis Roos Date: Wed Aug 1 23:46:44 2007 +0200 ide: fix runtogether printk's in cmd64x IDE driver Fix a couple of runtogether printks in cmd64x.c IDE driver by adding proper newlines. Signed-off-by: Meelis Roos Signed-off-by: Bartlomiej Zolnierkiewicz commit 1955f6814fb58ffa06af4873a445307d60b23fb1 Author: David Lamparter Date: Wed Aug 1 23:46:44 2007 +0200 sis5513: Add FSC Amilo A1630 PCI subvendor/dev to laptops Recognise the FSC Amilo A1630's incarnation of a SiS5513 chip as laptop to get UDMA100 support. Signed-off-by: David Lamparter Cc: Lionel Bouton Signed-off-by: Bartlomiej Zolnierkiewicz commit 8663fd6d0de7144c9e8455b733aeb38fe80788ed Author: Bartlomiej Zolnierkiewicz Date: Wed Aug 1 23:46:43 2007 +0200 alim15x3: Correct HP detect Direct port of Alan's fix for pata_ali. Cc: Alan Cox Signed-off-by: Bartlomiej Zolnierkiewicz commit 32a70a817acbb96fcfcc7543932222467c771207 Author: Jordan Crouse Date: Wed Aug 1 23:46:42 2007 +0200 ide: Fix an overrun found in the CS5535 IDE driver As found by the Coverity checker, and reported by Adrian Bunk, this fixes a overrun error in the CS5535 IDE driver. Somebody got a little excited with the if() statement - the CS5535 only supports UDMA 0-4. Bart: Not a bug per se since the upper layer will never feed this function with speed > XFER_UDMA_4 (thanks to ->ultra_mask being set to 0x1f). Worth fixing anyway. Signed-off-by: Jordan Crouse Cc: Adrian Bunk Signed-off-by: Bartlomiej Zolnierkiewicz commit b718f91c14604e4ab5cdfe8d3baff8111425ea7d Author: Christoph Lameter Date: Wed Aug 1 13:49:45 2007 -0700 [IA64] ITC: Reduce rating for ITC clock if ITCs are drifty Make sure to reduce the rating of the ITC clock if ITCs are drifty. If they are drifting then we have not synchronized the ITC values, nor are we doing the jitter compensation (useless since drift may increase the differentials arbitrarily). Without this patch it is possible that the ITC clock becomes selected as the system clock on systems with drifty ITCs which will result in nanosleep hanging. One can still select the itc clock manually on such systems via clocksource=itc (Produces nice hangs on SGI Altix.) Signed-off-by: Christoph Lameter Signed-off-by: Tony Luck commit 40d485753423b87239cc16b6c8141ef8792324d9 Author: Christoph Lameter Date: Wed Aug 1 12:37:17 2007 -0700 [IA64] SN2: Fix up sn2_rtc clock If the sn2_rtc clock is present then it is a must have since sn2_rtc provides a synchronized time source on Altix systems. So elevate the priority to 450. Otherwise the ITC would take precendence. Altix systems currently do not boot because the ITC clocksource is broken. It seems to assume that ITCs are synchronized and as a result nanosleep hangs (may be fixed in a different patch). While we are at it: Remove the sn2_mc definition. The sn2_rtc has a fixed address. No point in reading the address from memory. Removing it avoids touching one cacheline. Signed-off-by: Christoph Lameter Signed-off-by: Tony Luck commit 224685c0d1ca5970364c9f5d4f21ea1aa64c381e Author: Kenji Kaneshige Date: Wed Aug 1 21:18:44 2007 +0900 [IA64] Fix wrong access to irq_desc[] in iosapic_register_intr(). In error path we must unlock irq_desc[irq].lock before we change 'irq'. Signed-off-by: Kenji Kaneshige Signed-off-by: Tony Luck commit e4d1feab5df035312494ce3037ac5f041d0f5fc9 Author: Vlad Yasevich Date: Wed Aug 1 10:56:43 2007 -0400 SCTP: IPv4 mapped addr not returned in SCTPv6 accept() When issuing a connect call on an AF_INET6 sctp socket with a IPv4-mapped destination, the peer address that is returned by getpeeraddr() should be v4-mapped as well. Signed-off-by: Vlad Yasevich commit b225b884a18a1932db5414abd3ef94a45e4e348e Author: Dave Johnson Date: Wed Jul 25 19:49:29 2007 -0400 SCTP: IPv4 mapped addr not returned in SCTPv6 accept() An accept() call on a SCTPv6 socket that returns due to connection of a IPv4 mapped peer will fill out the 'struct sockaddr' with a zero IPv6 address instead of the IPv4 mapped address of the peer. This is due to the v4mapped flag not getting copied into the new socket on accept() as well as a missing check for INET6 socket type in sctp_v4_to_sk_*addr(). Signed-off-by: Dave Johnson Cc: Srinivas Akkipeddi Signed-off-by: Vlad Yasevich commit cc121fa87a0ce356c23fb4d7358310e747cad8cc Author: Sebastian Siewior Date: Fri Jul 27 22:59:49 2007 +0200 sctp: fix shadow symbol in net/sctp/tsnmap.c net/sctp/tsnmap.c:164:16: warning: symbol '_end' shadows an earlier one include/asm-generic/sections.h:13:13: originally declared here Renamed renamed _end to end_ and _start (for consistence). Signed-off-by: Sebastian Siewior Signed-off-by: Vlad Yasevich commit d6f9fdaf643eca8fb49fffdd6269b78f4ef1ef86 Author: Sebastian Siewior Date: Fri Jul 27 22:55:59 2007 +0200 sctp: try to fix readlock unlock the reader lock in error case. Signed-off-by: Sebastian Siewior Signed-off-by: Vlad Yasevich commit c86dabcf00f3ca167df59f3526a53b3da3ede2c8 Author: sebastian@breakpoint.cc Date: Thu Jul 26 23:21:33 2007 +0200 sctp: remove shadowed symbols Fixes the following sparse warnings: net/sctp/sm_make_chunk.c:1457:9: warning: symbol 'len' shadows an earlier one net/sctp/sm_make_chunk.c:1356:23: originally declared here net/sctp/socket.c:1534:22: warning: symbol 'chunk' shadows an earlier one net/sctp/socket.c:1387:20: originally declared here Signed-off-by: Sebastian Siewior Signed-off-by: Vlad Yasevich commit 0a5fcb9cf8e5c3fabaab1c20668f58fe85d7c70d Author: sebastian@breakpoint.cc Date: Thu Jul 26 23:21:32 2007 +0200 sctp: move global declaration to header file. sctp_chunk_cachep & sctp_bucket_cachep is used module global, so move it to a header file. Signed-off-by: Sebastian Siewior Signed-off-by: Vlad Yasevich commit 046752104c7090e3679b09274f02d8fd2aa0b4b2 Author: sebastian@breakpoint.cc Date: Thu Jul 26 23:21:31 2007 +0200 sctp: make locally used function static Forward declarion is static, the function itself is not. Make it consistent. Signed-off-by: Sebastian Siewior Signed-off-by: Vlad Yasevich commit 4761c06cb39011c9cc3fef9e6bbfb4c50ceb307d Author: Bartlomiej Zolnierkiewicz Date: Tue Jul 31 22:02:41 2007 +0200 pata_sis: fix MWDMA for <= UDMA66 chipsets and UDMA for UDMA33 chipsets * Fix MWDMA timings setup in sis_old_set_dmamode() and sis_66_set_dmamode(). The old timings were overclocked (even worse behavior than sis5513 IDE driver which depends on BIOS to program correct timings), the new timings are taken from the datasheet (they match timings from ATA spec). * Fix UDMA timings setup in sis_old_set_dmamode(). Misplaced pci_write_config_word() call resulted in UDMA timings never being set. * Fix comments for sis_133_early_set_dmamode() and sis_133_set_dmamode(): - only the former function handles early SiS 961 bridges - both functions lack MWDMA timings setup * Fix typos in sis_100_set_piomode() and sis_133_set_piomode() comments. * Bump driver version. Cc: Alan Cox Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Jeff Garzik commit 5d6aca8defe77dfd0f0169cc015b900129078648 Author: Tejun Heo Date: Sat Jul 28 16:25:25 2007 +0900 libata: blacklist SAMSUNG HD401LJ / ZZ100-15 for NCQ SAMSUNG HD401LJ / ZZ100-15 does spurious completion of NCQ commands. Disable NCQ. Reported by Ulrich in bugzilla #8805. Signed-off-by: Tejun Heo Cc: Ulrich Signed-off-by: Jeff Garzik commit 7abe79c353caf868053c2ddcada7f4c20c8251e6 Author: Tejun Heo Date: Fri Jul 27 14:55:07 2007 +0900 ata_piix: add Tecra M3 to broken suspend blacklist Add Tecra M3 to the broken suspend blacklist. Tecra M3 doesn't have proper DMI_PRODUCT_NAME but has an OEM_STRING instead. Match it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 8c3832ebeb049c5744ece888daae253c683257c3 Author: Tejun Heo Date: Fri Jul 27 14:53:28 2007 +0900 ata_piix: implement piix_borken_suspend() Separate out broken suspend blacklist matching into piix_broken_suspend(). Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 0b62e13b5c9b4871641973e024cc9dd440b5bb58 Author: Tejun Heo Date: Fri Jul 27 14:43:35 2007 +0900 pci: rename __pci_reenable_device() to pci_reenable_device() Rename __pci_reenable_device() to pci_reenable_device(). Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 6fdc99a224bd52020c602c3d4d57e5f8a75f6bb8 Author: Alan Cox Date: Thu Jul 26 18:41:30 2007 +0100 libata-sff; Unbreak non DMA capable controllers again Seems nobody else is checking/testing this case as it keeps getting horked. If we have no BAR4 mapping on an SFF controller this is *NOT* an error, it just means it isn't doing BMDMA. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit dbf0c89c80e47a2a132048dcded0dcc2a59c74ad Author: Alan Cox Date: Thu Jul 26 18:43:01 2007 +0100 pata_cmd64x: Correct the speed ranges I must have been half asleep when doing the original code Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit e0a3647fd7729bee1ed9667ce5d8eb88f0604138 Author: Paul Mundt Date: Wed Aug 1 16:55:07 2007 +0900 sh: Fix SH-X3 FPU exception handling. SH-X3 has the FPU exceptions on different vectors completely, patch in do_fpu_state_restore() to the proper vectors. Results in a much happier userspace. Signed-off-by: Paul Mundt commit 06f862c8ce0893b5525ce90f39168eaf4608ecc6 Author: Paul Mundt Date: Wed Aug 1 16:39:51 2007 +0900 sh: Fix pgd mismatch from cached TTB in unhandled fault. When reading the cached TTB value and extracting the pgd, we accidentally applied a __va() to it and bumped it off in to bogus space which ended up causing multiple faults in the error path. Fix it up so unhandled faults don't do strange and highly unorthodox things when oopsing. Signed-off-by: Paul Mundt commit 56c74c733cdd101832c4bbf9af8a009a9eaec784 Author: Paul Mundt Date: Wed Aug 1 16:26:21 2007 +0900 sh: Don't include fault-nommu on SH-2/SH-2A. fault-nommu defines the page fault handler stubs for SH-3/4 parts, but is not needed on SH-2/SH-2A now that the entry code has been logically separated. Add it in for SH-3 and SH-4 explicitly. Signed-off-by: Paul Mundt commit c71799433aa4d6378502f781a155321e77da73aa Author: Paul Mundt Date: Wed Aug 1 16:19:49 2007 +0900 sh: Fix irqflags tracing for SH-3/4 nommu. We were missing the trace_hardirqs_on() instrumentation in the nommu case, resync with the MMU version of the page fault handler to have this behaving consistently. Also explicitly re-enable IRQs now that the assembly code isn't doing it for us any more. Signed-off-by: Paul Mundt commit c347d12cd1642ba193f55bdab29395d639c5efc2 Author: Paul Mundt Date: Wed Aug 1 16:17:07 2007 +0900 sh: Fix lockdep debugging oops on SH-3/4. In the SH-3/4 TLB access violation path we were enabling IRQs before the call in to trace_hardirqs_on(), which ended up triggering: if (DEBUG_LOCKS_WARN_ON(!irqs_disabled())) return; in kernel/lockdep.c:2031. Fix this up by removing the early re-enable, we were already re-enabling IRQs post-trace_hardirqs_on() already, so the semantics are now as was initially intended. Signed-off-by: Paul Mundt commit 8d4fbcfbe0a4bfc73e7f0297c59ae514e1f1436f Author: Linus Torvalds Date: Tue Jul 31 21:12:07 2007 -0700 Fix WARN_ON() on bitfield ops Alexey Dobriyan noticed that the new WARN_ON() semantics that were introduced by commit 684f978347deb42d180373ac4c427f82ef963171 (to also return the value to be warned on) didn't compile when given a bitfield, because the typeof doesn't work for bitfields. So instead of the typeof trick, use an "int" variable together with a "!!(x)" expression, as suggested by Al Viro. To make matters more interesting, Paul Mackerras points out that that is sub-optimal on Power, but the old asm-coded comparison seems to be buggy anyway on 32-bit Power if the conditional was 64-bit, so I think there are more problems there. Regardless, the new WARN_ON() semantics may have been a bad idea. But this at least avoids the more serious complications. Cc: Alexey Dobriyan Cc: Herbert Xu Cc: Paul Mackerras Cc: Al Viro Cc: Ingo Molnar Cc: Andrew Morton Signed-off-by: Linus Torvalds commit 128a2bcf9dddeb8e79a4ba55bf191533f70f39ce Author: Len Brown Date: Tue Jul 31 23:27:10 2007 -0400 ACPI: delete CONFIG_ACPI_PROCFS_SLEEP (again) CONFIG_ACPI_PROCFS_SLEEP is a NO-OP -- delete it (again). Apparently 296699de6bdc717189a331ab6bbe90e05c94db06 creating CONFIG_SUSPEND and CONFIG_PM_SLEEP was based on an out-dated version of drivers/acpi/Kconfig, as it erroneously restored this recently deleted config option. Signed-off-by: Len Brown Signed-off-by: Linus Torvalds commit fc34f6c617bf2a845d793af12b96bcc0afd472c4 Author: Andrew Morton Date: Tue Jul 31 16:10:46 2007 -0700 Fix up "remove the arm26 port" scripts/kconfig/conf -o arch/arm/Kconfig arch/arm/Kconfig:994: can't open file "drivers/acorn/block/Kconfig" Cc: Adrian Bunk Cc: Ian Molton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0439208a8a399f0c4307c561d97e3f5523f5d085 Author: Mark Zhan Date: Tue Jul 31 00:39:47 2007 -0700 rtc-m48t59 driver NO_IRQ mode fixup Since irq in m48t59_private struct is defined as 'unsigned int', which will make the following if sentence to be never true: if (m48t59->irq < 0) m48t59->irq = NO_IRQ; And thus it will make the m48t59_rtc_probe() is failed when the driver is working in a no irq mode: Signed-off-by: Mark Zhan Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bb35fb20b591833fe4205def1338e0e808be3216 Author: Jan Engelhardt Date: Tue Jul 31 00:39:46 2007 -0700 Use menuconfig objects: RTC Change Kconfig objects from "menu, config" into "menuconfig" so that the user can disable the whole feature without having to enter the menu first. Signed-off-by: Jan Engelhardt Cc: David Brownell Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 732781daa4fcb31f96028bf26a219e53d256ddd2 Author: Charlie Shepherd Date: Tue Jul 31 00:39:45 2007 -0700 Remove 'isdn_* is defined but unused' warnings Move the #ifdef guard above these functions to remove the warnings. Signed-off-by: Charlie Shepherd Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 082c8cb4e5e68c0fd29cc10c59db94d2284fd2b0 Author: David Brownell Date: Tue Jul 31 00:39:45 2007 -0700 spi device setup gets better error checking This updates some error reporting paths in SPI device setup: - Move validation logic for SPI chipselects to spi_new_device(), which is where it should always have been. - In spi_new_device(), emit error messages if the device can't be created. This is LOTS better than a silent failure; though eventually, the calling convention should probably change to use the conventions. - Includes one previously-missing check: SPI masters must always have at least one chipselect, even for dedicated busses which always keep it selected! It also adds a FIXME (IDR for dynamic ID allocation) so the issue doesn't live purely in my mailbox. Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2604288f45605d1b2844f001dc3141149667b3d1 Author: David Brownell Date: Tue Jul 31 00:39:44 2007 -0700 spi kerneldoc update This adds kerneldoc to the SPI framework. The "spi_driver" and "spi_board_info" structs were previously not described. Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db7526f925b79293dc3b361a70db7f340870a298 Author: Meelis Roos Date: Tue Jul 31 00:39:41 2007 -0700 fix integer overflow warning in i2o_block drivers/message/i2o/i2o_block.c: In function 'i2o_block_transfer': drivers/message/i2o/i2o_block.c:837: warning: integer overflow in expression msg->u.head[1] = cpu_to_le32(I2O_CMD_PRIVATE << 24 | HOST_TID << 12 | tid); and I2O_CMD_PRIVATE is defined as 0xFF. This gets "0xFF0100 | tid" and fits into 32-bit unsigned but not into 32-bit signed integer properly. Target value is defined as u32 so the claculation does not fit during computation. Change local variable tid to u32 so the whole expression is of u32 type and fits well into u32 result. Signed-off-by: Meelis Roos Cc: "Salyzyn, Mark" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ad4a5bb885f1985732426f108d2fe36517dd1939 Author: Andrew Morton Date: Tue Jul 31 00:39:41 2007 -0700 ip2main warning fix CONFIG_PCI=n: drivers/char/ip2/ip2main.c: In function `ip2_loadmain': drivers/char/ip2/ip2main.c:503: warning: unused variable `status' Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ca76d2d8031fd8216eedadee77dfe009a63e4408 Author: Cyrill Gorcunov Date: Tue Jul 31 00:39:40 2007 -0700 UDF: fix UID and GID mount option ignorance This patch fix weird behaviour of UDF mounting procedure. To get UID changed (for now) we have to type mount -t udf -o uid=some_user,uid=ignore /dev/device /mnt/moun_point and specifying two uid at once is strange a bit. So with the patch we are able to mount without additional 'uid=ignore' option. The same for GID option is done. This patch will not break current mount scheme (with two option). Btw this does fix (I hope) the following [BUG 6124] mount of UDF fs ignores UID and GID options http://bugzilla.kernel.org/show_bug.cgi?id=6124 Signed-off-by: Cyrill Gorcunov Cc: Jan Kara Cc: Michael Cc: Eric Sandeen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f2912a1223c0917a7b4e054f18086209137891ea Author: Jesper Juhl Date: Tue Jul 31 00:39:39 2007 -0700 cciss: fix memory leak There's a memory leak in the cciss driver. in alloc_cciss_hba() we may leak sizeof(ctlr_info_t) bytes if a call to alloc_disk(1 << NWD_SHIFT) fails. This patch should fix the issue. Spotted by the Coverity checker. Signed-off-by: Jesper Juhl Acked-by: Mike Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ff0cfc66cd99d59e3a8024003171035e4ae192b7 Author: Al Boldi Date: Tue Jul 31 00:39:23 2007 -0700 Kconfig: remove top level menu "Code maturity level options" Remove the top level menu "Code maturity level options", and moves its options into menu "General setup". This makes Kconfig less cluttered and easier to setup. Signed-off-by: Al Boldi Acked-by: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8e48591700f7df5969e17b0a41b7dde011c6810c Author: Matthias Kaehlcke Date: Tue Jul 31 00:39:23 2007 -0700 Videopix Frame Grabber: Fix unreleased lock in vfc_debug() Videopix Frame Grabber: vfc_debug() doesn't release the device lock when copy_from_user() fails Signed-off-by: Matthias Kaehlcke Acked-by: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0af1a4504699524c876361845bc2e301ecc45d0f Author: Christoph Hellwig Date: Tue Jul 31 00:39:22 2007 -0700 rename setlease to generic_setlease Make it a little more clear that this is the default implementation for the setleast operation. Signed-off-by: Christoph Hellwig Cc: Steven Whitehouse Acked-by: "J. Bruce Fields" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 86d0004abc87025bae1cca43c94e99a27b7bbbd6 Author: Maciej W. Rozycki Date: Tue Jul 31 00:39:22 2007 -0700 sb1250-duart: __maybe_unused, etc. fixes This is a set of small fixes addressing points raised with the original driver submission. In particular, __maybe_unused is used rather than a local hack and sbd_ops is made const. Additionally I have made two local string variables automatic as rodata space was wasted for pointers unnecessarily. Signed-off-by: Maciej W. Rozycki Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dd22a68228cf1c8dad39d6f9da925bd534aea91d Author: Josh Triplett Date: Tue Jul 31 00:39:21 2007 -0700 x86_64: include asm/bugs.h in bugs.c for check_bugs prototype C files should include the header files that prototype their functions. Eliminates a sparse warning: warning: symbol 'check_bugs' was not declared. Should it be static? Signed-off-by: Josh Triplett Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 91eb1b79ecf42bad91ff084ba3d020ec833b3477 Author: Josh Triplett Date: Tue Jul 31 00:39:20 2007 -0700 i386: include asm/bugs.h in bugs.c for check_bugs prototype C files should include the header files that prototype their functions. Eliminates a sparse warning: warning: symbol 'check_bugs' was not declared. Should it be static? Signed-off-by: Josh Triplett Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d133a9609ee6111c9718a4bbe559b84a399603e6 Author: Gabriel Craciunescu Date: Tue Jul 31 00:39:19 2007 -0700 Typo fixes errror -> error Typo fixes errror -> error Signed-off-by: Gabriel Craciunescu Cc: Jeff Garzik Cc: Martin Schwidefsky Cc: Stephen Smalley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6ace06dc68db13f7f82f9341fdef89502f0bb217 Author: Oleg Nesterov Date: Tue Jul 31 00:39:19 2007 -0700 idr_remove_all: kill unused variable "error" is always equal to 0. Signed-off-by: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c9b3febc5b9c55a76b838c977b078195ec8bb95e Author: Jesper Juhl Date: Tue Jul 31 00:39:18 2007 -0700 Fix a use after free bug in kernel->userspace relay file support Coverity spotted what looks like a real possible case of using a variable after it has been freed. The problem is in kernel/relay.c::relay_open_buf() If the code hits "goto free_buf;" it ends up in this code : free_buf: relay_destroy_buf(buf); <--- calls kfree() on 'buf'. free_name: kfree(tmpname); end: return buf; <-- use after free of 'buf'. I read through the callers and they all handle a NULL return from this function as an error (and hitting the 'free_buf' label only happens on failure to chan->cb->create_buf_file(), so that looks like a clear error to me). The patch simply sets 'buf' to NULL after the call to relay_destroy_buf(buf); - as far as I can see that should take care of the problem. The patch also corrects a reference to a documentation file while I was at it. Note from Mathieu: the documentation reference change should have been done in a separate patch, but I guess no one will really care. Signed-off-by: Jesper Juhl Acked-by: "David J. Wilder" Tested-by: "David J. Wilder" Signed-off-by: Mathieu Desnoyers Cc: Tom Zanussi Cc: Karim Yaghmour Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e804a4a4dd596d853f6d6f814fbdcf97b8efcdea Author: Satyam Sharma Date: Tue Jul 31 00:39:16 2007 -0700 kthread: silence bogus section mismatch warning WARNING: kernel/built-in.o(.text+0x16910): Section mismatch: reference to .init.text: (between 'kthreadd' and 'init_waitqueue_head') comes because kernel/kthread.c:kthreadd() is not __init but calls kthreadd_setup() which is __init. But this is ok, because kthreadd_setup() is only ever called at init time, and then kthreadd() proceeds into its "for (;;)" loop. We could mark kthreadd __init_refok, but kthreadd_setup() with just one callsite and 4 lines in it (it's been that small since 10ab825bdef8df51) doesn't need to be a separate function at all -- so let's just move those four lines at beginning of kthreadd() itself. Signed-off-by: Satyam Sharma Acked-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bbe06f6bf7e764a9eb0e3cdcec2b12c743f35757 Author: Mariusz Kozlowski Date: Tue Jul 31 00:39:13 2007 -0700 fs: 9p/conv.c error path fix When buf_check_overflow() returns != 0 we will hit kfree(ERR_PTR(err)) and it will not be happy about it. Signed-off-by: Mariusz Kozlowski Cc: Latchesar Ionkov Cc: Eric Van Hensbergen Cc: Andrew Morton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9700382c3c9ff3e673e587084d76eedb3ba88668 Author: david m. richter Date: Tue Jul 31 00:39:12 2007 -0700 VFS: fix a race in lease-breaking during truncate It is possible that another process could acquire a new file lease right after break_lease() is called during a truncate, but before lease-granting is disabled by the subsequent get_write_access(). Merely switching the order of the break_lease() and get_write_access() calls prevents this race. Signed-off-by: David M. Richter Signed-off-by: "J. Bruce Fields" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 937472b00b666ecbf1464502f857ec63b024af72 Author: Mike Frysinger Date: Tue Jul 31 00:39:11 2007 -0700 use __val in __get_unaligned Use "__val" rather than "val" in the __get_unaligned macro in asm-generic/unaligned.h. This way gcc wont warn if you happen to also name something in the same scope "val". Signed-off-by: Mike Frysinger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 07ff8ee79e254ac07205d2c9c9e8fbe2f4b3e6e8 Author: Dave Young Date: Tue Jul 31 00:39:11 2007 -0700 hpet.txt: broken link fix The specification link in hpet document is broken. Signed-off-by: Dave Young Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 448e3cee839fdf975d6119eed475ec7d0400404e Author: Adrian Bunk Date: Tue Jul 31 00:39:10 2007 -0700 ANON_INODES shouldn't be user visible There doesn't seem to be a good reason for ANON_INODES being an user visible option. Signed-off-by: Adrian Bunk Acked-by: Davide Libenzi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ac9d41a3e4043a3a89735a872b564a1973df2178 Author: Michael Tokarev Date: Tue Jul 31 00:39:07 2007 -0700 Remove one more leftover reference to devfs Signed-off-by: Michael Tokarev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 47f82189b185bf4b0de4ebce237850e8d3b1d0b6 Author: Gabriel C Date: Tue Jul 31 00:39:06 2007 -0700 broken lilo check on make install On make install I get the this error: ... sh /work/crazy/linux-git/linux-2.6/arch/i386/boot/install.sh 2.6.22-g4eb6bf6b arch/i386/boot/bzImage System.map "/boot" /work/crazy/linux-git/linux-2.6/arch/i386/boot/install.sh: line 54: /etc/lilo/install: No such file or directory make[1]: *** [install] Error 127 ... I don't use and don't have lilo installed on this system. The attached patch fixes the problem for me. Signed-off-by: Gabriel Craciunescu Acked-by: H. Peter Anvin Cc: Sam Ravnborg Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d7ef970bafaa74bd9db75375e98ddd4634045303 Author: Robert P. J. Day Date: Tue Jul 31 00:39:05 2007 -0700 NCP: delete test of long-deceased CONFIG_NCPFS_DEBUGDENTRY Signed-off-by: Robert P. J. Day Acked-by: Petr Vandrovec Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 80cd69203c3ad5f2ecf7d01cec4a10ed15613682 Author: Jesper Juhl Date: Tue Jul 31 00:39:05 2007 -0700 ipmi: Fix mem leak in try_init_dmi() This is only called at init time and only happens if the BIOS screws something up, so the leak is slight and it is probably not worth sending to 2.6.22.x. The driver would not initialize the interface in the case, and I have no reports of this happening. I have booted and run tests on a system with this patch. Note that the original patch was munged by the mailer, here's a new one. If we ever hit the "default:" case in the switch in try_init_dmi(), then we'll leak the storage allocated with kzalloc() and assigned to 'info'. Signed-off-by: Jesper Juhl Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 73c21e8024296760c450a0bded131cb573f83328 Author: Randy Dunlap Date: Tue Jul 31 00:39:04 2007 -0700 docbook bad file references Fix docbook warnings: Warning(linux-2.6.22-git12//drivers/base/power/main.c): no structured comments found Warning(linux-2.6.22-git12//include/linux/splice.h): no structured comments found Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ac4d823fd93be49c2a90fb877fc5fc6317936d5 Author: Randy Dunlap Date: Tue Jul 31 00:39:03 2007 -0700 irq.h fix kernel-doc Add kernel-doc entry in for: Warning(linux-2.6.22-git12//include/linux/irq.h:177): No description found for parameter 'last_unhandled' Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aa3481d5e686aa015e960f76253f0e771a92716a Author: Randy Dunlap Date: Tue Jul 31 00:39:02 2007 -0700 i2c.h kernel-doc additions Add kernel-doc notation in for: Warning(linux-2.6.22-git12//include/linux/i2c.h:183): No description found for parameter 'driver' Warning(linux-2.6.22-git12//include/linux/i2c.h:183): No description found for parameter 'usage_count' Warning(linux-2.6.22-git12//include/linux/i2c.h:183): No description found for parameter 'list' Warning(linux-2.6.22-git12//include/linux/i2c.h:183): No description found for parameter 'released' Signed-off-by: Randy Dunlap Cc: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2e89db75aee14f3f195836560e0973c9ff215f94 Author: Mark A. Greer Date: Tue Jul 31 00:39:01 2007 -0700 serial: MPSC: Fix coding style and whitespace issues Fix up mpsc.c to be aligned with Documentation/CodingStyle. Also fix up some whitespace issues. Signed-off-by: Mark A. Greer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 79f851733c71c5b2665d2b3ee857b9721846cd74 Author: Mark A. Greer Date: Tue Jul 31 00:39:00 2007 -0700 serial: MPSC: Remove duplicate SUPPORT_SYSRQ definition Remove the duplicate definition of SUPPORT_SYSRQ in mpsc driver. Signed-off-by: Mark A. Greer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5797ae364c35db8c184f38b37595be59bf761e93 Author: Stephane Chazelas Date: Tue Jul 31 00:38:59 2007 -0700 serial: MPSC: Stop rx engine when CREAD cleared Currently, the MPSC driver doesn't stop recieving characters when the CREAD flag in termios->c_cflag is cleared. It should. Also, only start receiving if its not already started. Signed-off-by: Stephane Chazelas Signed-off-by: Mark A. Greer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6c1ead5e77c4e41d58ae6e6c3285ad38275df4a8 Author: Carlos Sanchez Date: Tue Jul 31 00:38:59 2007 -0700 serial: MPSC: Remove race between Rx stop & restart The patch in commit ID f7232056bff5fe2d3bfeab35252a66ebaeb5bbde stops (aborts) the MPSC's receive engine just before restarting it. Unfortunately, it doesn't wait for the abort to complete before restarting it which creates a race between the abort and the restart. If the restart occurs first, the in-progress abort stops it again and the rx engine remains stopped. Instead, do the abort when the SDMA engine is being stopped. Make sure to wait for the abort to complete before continuing. Signed-off-by: Carlos Sanchez Signed-off-by: Mark A. Greer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 817794e0df5fea495396c18878804044436832be Author: Kirill Kuvaldin Date: Tue Jul 31 00:38:58 2007 -0700 isofs: mounting to regular file may succeed It turned out that mounting a corrupted ISO image to a regular file may succeed, e.g. if an image was prepared as follows: $ dd if=correct.iso of=bad.iso bs=4k count=8 We then can mount it to a regular file: # mount -o loop -t iso9660 bad.iso /tmp/file But mounting it to a directory fails with -ENOTDIR, simply because the root directory inode doesn't have S_IFDIR set and the condition in graft_tree() is met: if (S_ISDIR(nd->dentry->d_inode->i_mode) != S_ISDIR(mnt->mnt_root->d_inode->i_mode)) return -ENOTDIR This is because the root directory inode was read from an incorrect block. It's supposed to be read from sbi->s_firstdatazone, which is an absolute value and gets messed up in the case of an incorrect image. In order to somehow circumvent this we have to check that the root directory inode is actually a directory after all. Signed-off-by: Kirill Kuvaldin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 541510fc28b72eab37361e9e95f48746b4d3302b Author: Yoichi Yuasa Date: Tue Jul 31 00:38:56 2007 -0700 remove tx3912fb Remove tx3912fb. Nino has already removed. It is no longer needed. Signed-off-by: Yoichi Yuasa Acked-by: Ralf Baechle Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2174041d663e4ea825dd53af71b877ea6da736fe Author: Yoichi Yuasa Date: Tue Jul 31 00:38:56 2007 -0700 serial: fix vr41xx_siu serial console support The serial console can select only SERIAL_VR41XX=y. Signed-off-by: Yoichi Yuasa Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a95d32094c6564c3be62ef6b396b24ced564932f Author: Yoichi Yuasa Date: Tue Jul 31 00:38:55 2007 -0700 serial: fix vr41xx_siu interface select only PORT_VR41XX_SIU can select interface. Signed-off-by: Yoichi Yuasa Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a24ac9fba1d122ce2536d23b8f4c47a17b7d0627 Author: Yoichi Yuasa Date: Tue Jul 31 00:38:55 2007 -0700 serial: fix section mismatch vr41xx_siu Fix section mismatch vr41xx_siu. WARNING: drivers/built-in.o(.text+0x2ce4c): Section mismatch: reference to .init.text:uart_parse_options (between 'siu_console_setup' and 'siu_request_port') WARNING: drivers/built-in.o(.text+0x2ce70): Section mismatch: reference to .init.text:uart_set_options (between 'siu_console_setup' and 'siu_request_port') Signed-off-by: Yoichi Yuasa Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 73dd1166af9a7a1e24554991236ddea740df0dbd Author: Michael Buesch Date: Tue Jul 31 00:38:54 2007 -0700 pure_initcall ID inconsistency pure_initcall uses the same ID as core_initcall. I guess that's a typo and it should use its own ID. Signed-off-by: Michael Buesch Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0e6ff1580ff5d8dc10ec58d22b3e1a6f372f7f40 Author: Eddy L O Jansson Date: Tue Jul 31 00:38:53 2007 -0700 in-string typos of "error" One patch for two trivial typos of 'error' with three R's, appearing in message strings. There's a bunch more of the same in comments, not dealt with here. Signed-off-by: Eddy L O Jansson Cc: Roman Zippel Cc: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 41d202d80e829c0a489119ad63d7ece08a9786da Author: Herton Ronaldo Krzesinski Date: Tue Jul 31 00:38:52 2007 -0700 Include serial_reg.h with userspace headers As reported by Gustavo de Nardin , while trying to compile xosview (http://xosview.sourceforge.net/) with upstream kernel headers being used you get the following errors: serialmeter.cc:48:30: error: linux/serial_reg.h: No such file or directory serialmeter.cc: In member function 'virtual void SerialMeter::checkResources()': serialmeter.cc:71: error: 'UART_LSR' was not declared in this scope serialmeter.cc:71: error: 'UART_MSR' was not declared in this scope ... Signed-off-by: Herton Ronaldo Krzesinski Cc: Gustavo de Nardin Cc: David Woodhouse Cc: Russell King Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f54f098612d7f86463b5fb4763d03533d634de73 Author: Andreas Schwab Date: Tue Jul 31 00:38:51 2007 -0700 futex: pass nr_wake2 to futex_wake_op The fourth argument of sys_futex is ignored when op == FUTEX_WAKE_OP, but futex_wake_op expects it as its nr_wake2 parameter. The only user of this operation in glibc is always passing 1, so this bug had no consequences so far. Signed-off-by: Andreas Schwab Cc: Ingo Molnar Signed-off-by: Ulrich Drepper Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c0f3358621dc746219d49a9dee1799704d3a32f8 Author: Alexey Dobriyan Date: Tue Jul 31 00:38:50 2007 -0700 Fix leak on /proc/lockdep_stats Signed-off-by: Alexey Dobriyan Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ea473a1dfeca2ee38c5dd458c1174d129e6b64e Author: Alexey Dobriyan Date: Tue Jul 31 00:38:50 2007 -0700 Fix leaks on /proc/{*/sched,sched_debug,timer_list,timer_stats} On every open/close one struct seq_operations leaks. Kudos to /proc/slab_allocators. Signed-off-by: Alexey Dobriyan Acked-by: Ingo Molnar Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ff8e210a9550ad760a62e9803938cd04f9fb0851 Author: David Howells Date: Tue Jul 31 00:38:49 2007 -0700 AFS: fix file locking Fix file locking for AFS: (*) Start the lock manager thread under a mutex to avoid a race. (*) Made the locking non-fair: New readlocks will jump pending writelocks if there's a readlock currently granted on a file. This makes the behaviour similar to Linux's VFS locking. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b34bd06e485abf5b24fc13a9a988ebf4d2915dd6 Author: Paul E. McKenney Date: Tue Jul 31 00:38:48 2007 -0700 bpqether: fix rcu usage The rcu_dereference() primitive needs to be applied to an l-value in order to ensure that compiler writers don't get an opportunity to apply reordering optimizations that could result in multiple fetches or in other misbehavior. This patch pulls the rcu_dereference() calls in bpq_seq_next() up to the point at which the fetched pointers are still l-values, rather than after list_entry() has transformed them into r-values. Signed-off-by: Paul E. McKenney Cc: Jeff Garzik Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7be77e20d59fc3dd3fdde31641e0bc821114d26b Author: Pavel Emelianov Date: Tue Jul 31 00:38:48 2007 -0700 Fix user struct leakage with locked IPC shem segment When user locks an ipc shmem segmant with SHM_LOCK ctl and the segment is already locked the shmem_lock() function returns 0. After this the subsequent code leaks the existing user struct: == ipc/shm.c: sys_shmctl() == ... err = shmem_lock(shp->shm_file, 1, user); if (!err) { shp->shm_perm.mode |= SHM_LOCKED; shp->mlock_user = user; } ... == Other results of this are: 1. the new shp->mlock_user is not get-ed and will point to freed memory when the task dies. 2. the RLIMIT_MEMLOCK is screwed on both user structs. The exploit looks like this: == id = shmget(...); setresuid(uid, 0, 0); shmctl(id, SHM_LOCK, NULL); setresuid(uid + 1, 0, 0); shmctl(id, SHM_LOCK, NULL); == My solution is to return 0 to the userspace and do not change the segment's user. Signed-off-by: Pavel Emelianov Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ad0b142772eb1f88f0e77cb63c38b0005e83c2bd Author: Ralf Baechle Date: Tue Jul 31 00:38:47 2007 -0700 kbuild: whitelist references from __dbe_table to .init This is needed on MIPS where the same mechanism as get_user() is used to intercept bus error exceptions for some hardware probes. Without this patch modpost will throw spurious warnings: LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map MODPOST vmlinux WARNING: arch/mips/sgi-ip22/built-in.o(__dbe_table+0x0): Section mismatch: reference to .init.text: Signed-off-by: Ralf Baechle Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db0031947bad3feafc217d5ac4f320021f57c740 Author: Jesper Juhl Date: Tue Jul 31 00:38:46 2007 -0700 m68knommu: get rid of duplicate include Remove the duplicate inclusion of asm/irq.h from arch/m68knommu/platform/5206e/config.c Signed-off-by: Jesper Juhl Acked-by: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fe9844d5a32e7b2552a557a42a2a2dc0e378672c Author: Andrew Morton Date: Tue Jul 31 00:38:45 2007 -0700 kdebug.h: forward-declare struct struct notifier_block alpha: In file included from kernel/notifier.c:1: include/linux/kdebug.h:14: warning: 'struct notifier_block' declared inside parameter list include/linux/kdebug.h:14: warning: its scope is only this definition or declaration, which is probably not what you want include/linux/kdebug.h:15: warning: 'struct notifier_block' declared inside parameter list kernel/notifier.c:529: error: conflicting types for 'register_die_notifier' include/linux/kdebug.h:14: error: previous declaration of 'register_die_notifier' was here kernel/notifier.c:533: error: conflicting types for 'register_die_notifier' include/linux/kdebug.h:14: error: previous declaration of 'register_die_notifier' was here kernel/notifier.c:536: error: conflicting types for 'unregister_die_notifier' include/linux/kdebug.h:15: error: previous declaration of 'unregister_die_notifier' was here kernel/notifier.c:539: error: conflicting types for 'unregister_die_notifier' include/linux/kdebug.h:15: error: previous declaration of 'unregister_die_notifier' was here Cc: Richard Henderson Cc: Ivan Kokshaysky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2a485d7ad2b68600e423f8799efc0d074029ec01 Author: Anton Vorontsov Date: Tue Jul 31 00:38:45 2007 -0700 spi_mpc83xx: support loopback mode This exposes the hardware loopback mode to drivers, primarily for testing. Signed-off-by: Anton Vorontsov Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 22b238bdb93ed2fcb1d627ce81d8a2fcbe24de85 Author: Anton Vorontsov Date: Tue Jul 31 00:38:44 2007 -0700 spidev_test utility This is a simple utility used to test SPI functionality. It could stand growing options to support using other test data patterns; this initial version only issues full duplex transfers, which rules out 3WIRE or Microwire links. Signed-off-by: Anton Vorontsov Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6f166e3833d953f0acf77eb7d426840da9e1a87f Author: Anton Vorontsov Date: Tue Jul 31 00:38:43 2007 -0700 spidev supports more communications modes The spidev driver doesn't currently expose all SPI communications modes to userspace. This passes them all through to the driver. Two of them are potentially troublesome, in the sense that they could cause hardware conflicts on shared busses. It might be appropriate to add some privilege checks for for those modes. Signed-off-by: Anton Vorontsov Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4ef7af50373778ee248a2493c9cf62a2299806a8 Author: Anton Vorontsov Date: Tue Jul 31 00:38:43 2007 -0700 SPI loopback mode definition Loopback mode is supported by various controllers. This mode can be useful for testing, especially in conjunction with spidev driver. Signed-off-by: Anton Vorontsov Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 35cc0b975057389548bfe5703d438fe0deb4807e Author: Anton Vorontsov Date: Tue Jul 31 00:38:42 2007 -0700 spi_mpc83xx: fix QE+LSB mode shifts spi_mpc83xx should use other shifts when running in QE+LSB mode. Signed-off-by: Anton Vorontsov Acked-by: Kumar Gala Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 32421daaf8236b0fd6e032f6b1dd8086ccae2a46 Author: Anton Vorontsov Date: Tue Jul 31 00:38:41 2007 -0700 spi_mpc83xx: support for lsb-first transfers This controller supports LSB-first transfers; let drivers use them. Signed-off-by: Anton Vorontsov Acked-by: Kumar Gala Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 20ba09b979f7e1de790968a9175c6caceda00261 Author: Anton Vorontsov Date: Tue Jul 31 00:38:41 2007 -0700 spi_mpc83xx: get rid of magic numbers Magic-numbers-R-Evil Signed-off-by: Anton Vorontsov Acked-by: Kumar Gala Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 49bb23006b220c11bcf4e1d3eb99c289e6ab855e Author: Anton Vorontsov Date: Tue Jul 31 00:38:40 2007 -0700 spi_mpc83xx: turn off SPI unit while switching mode Documentation clearly states, that mode should not be changed till SPMODE_ENABLE bit set. I've seen hangs w/o this patch. Signed-off-by: Anton Vorontsov Acked-by: Kumar Gala Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 99eb8a550dbccc0e1f6c7e866fe421810e0585f6 Author: Adrian Bunk Date: Tue Jul 31 00:38:19 2007 -0700 Remove the arm26 port The arm26 port has been in a state where it was far from even compiling for quite some time. Ian Molton agreed with the removal. Signed-off-by: Adrian Bunk Cc: Ian Molton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0d0ed42e5ca2e22465c591341839c18025748fe8 Author: Alexey Dobriyan Date: Tue Jul 31 00:38:18 2007 -0700 Add CTL_PROC back commit eab03ac7bd3e0da99eb9dc068772a85a5e3f3577 aka "[PATCH] Get rid of /proc/sys/proc" was good commit except strace(1) compile breakage it introduced: system.c:1581: error: 'CTL_PROC' undeclared here (not in a function) So, add dummy enum back. Signed-off-by: Alexey Dobriyan Cc: Stephen Hemminger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7eacbbd32a98ab5b607f7773bb2692cc195db9b2 Author: Satyam Sharma Date: Tue Jul 31 00:38:17 2007 -0700 Fix a typo in Documentation/keys.txt Signed-off-by: Satyam Sharma Acked-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a12e2c6cde6392287b9cd3b4bd8d843fd1458087 Author: Randy Dunlap Date: Tue Jul 31 00:38:17 2007 -0700 Doc: DMA-API update Fix typos and update function parameters. Signed-off-by: Randy Dunlap Acked-by: Muli Ben-Yehuda Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9eb3ff40376e505eafb927b4a4cbccc928df68ec Author: Ulrich Drepper Date: Tue Jul 31 00:38:16 2007 -0700 CPU online file permission Is there a reason why the "online" file in the subdirectories for the CPUs in /sys/devices/system isn't world-readable? I cannot imagine it to be security relevant especially now that a getcpu() syscall can be used to determine what CPUa thread runs on. The file is useful to correctly implement the sysconf() function to return the number of online CPUs. In the presence of hotplug we currently cannot provide this information. The patch below should to it. Signed-off-by: Ulrich Drepper Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 07a304603cd0133468e3a153f4fe78b02733d0db Author: Eugene Teo Date: Tue Jul 31 00:38:15 2007 -0700 arch/i386/kernel/apm.c: apm_init() warning fix arch/i386/kernel/apm.c: In function 'apm_init': arch/i386/kernel/apm.c:2240: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'u32' apm_info.bios.offset is of type 'u32'. Signed-off-by: Eugene Teo Acked-by: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 135db3eb995e68b5cd2fb03377be7cffd9743d6f Author: Meelis Roos Date: Tue Jul 31 00:38:14 2007 -0700 add a missing LIB_Y to arch/alpha/boot Makefile Add $(LIBS_Y) to get lib/lib.a so srm_printk is present. Signed-off-by: Meelis Roos Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Jay Estabrook Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 96e3e18eed3b48f6d4377dee0326a106e8a04569 Author: Sam Ravnborg Date: Tue Jul 31 00:38:13 2007 -0700 lib: move kasprintf to a separate file kasprintf pulls in kmalloc which proved to be fatal for at least bootimage target on alpha. Move it to a separate file so only users of kasprintf are exposed to the dependency on kmalloc. Signed-off-by: Sam Ravnborg Cc: Jeremy Fitzhardinge Cc: Meelis Roos Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Jay Estabrook Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9965a5d5a5aab575f995ba58dc80285aa0f6ecbf Author: Meelis Roos Date: Tue Jul 31 00:38:13 2007 -0700 alpha: fix boot/main.c warning In current 2.6.23-rc1+git, make bootimage gives the following warning while compiling arch/alpha/boot/main.c. The patch below fixes the warning by casting callback argument explicitly to void*. The original value comes from START_ADDR macro and is clearly numeric so only cast it for the callback. CC arch/alpha/boot/main.o arch/alpha/boot/main.c: In function 'load': arch/alpha/boot/main.c:135: warning: passing argument 3 of 'callback_read' makes pointer from integer without a cast Signed-off-by: Meelis Roos Cc: Jay Estabrook Cc: Ivan Kokshaysky Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1b2becffeed47ce88316724d1ee4cdbc7ee0180e Author: Meelis Roos Date: Tue Jul 31 00:38:12 2007 -0700 alpha: fix objstrip.c compilation warnings In current 2.6.23-rc1+git, make bootimage gives the following warnings while compiling objstrip.c. The patch below fixes these warnings by casting strncmp argument to char * - it does not seem feasible to change its type in struct elfhdr. HOSTCC arch/alpha/boot/tools/objstrip arch/alpha/boot/tools/objstrip.c: In function 'main': arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness Signed-off-by: Meelis Roos Cc: Jay Estabrook Cc: Ivan Kokshaysky Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aeb3f46252e26acdc60a1a8e31fb1ca6319d9a07 Author: Meelis Roos Date: Tue Jul 31 00:38:11 2007 -0700 alpha: fix mkbb compilation warnings In current 2.6.23-rc1+git, make bootimage gives the following warnings while compiling mkbb.c. The patch below fixes these warnings by using the proper include for exit() and using appropriate printf format. HOSTCC arch/alpha/boot/tools/mkbb arch/alpha/boot/tools/mkbb.c: In function 'main': arch/alpha/boot/tools/mkbb.c:95: warning: implicit declaration of function 'exit' arch/alpha/boot/tools/mkbb.c:95: warning: incompatible implicit declaration of built-in function 'exit' arch/alpha/boot/tools/mkbb.c:102: warning: incompatible implicit declaration of built-in function 'exit' arch/alpha/boot/tools/mkbb.c:110: warning: incompatible implicit declaration of built-in function 'exit' arch/alpha/boot/tools/mkbb.c:117: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int' arch/alpha/boot/tools/mkbb.c:118: warning: incompatible implicit declaration of built-in function 'exit' arch/alpha/boot/tools/mkbb.c:125: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int' arch/alpha/boot/tools/mkbb.c:126: warning: incompatible implicit declaration of built-in function 'exit' arch/alpha/boot/tools/mkbb.c:143: warning: incompatible implicit declaration of built-in function 'exit' arch/alpha/boot/tools/mkbb.c:148: warning: incompatible implicit declaration of built-in function 'exit' Signed-off-by: Meelis Roos Cc: Jay Estabrook Cc: Ivan Kokshaysky Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 60fd4d6a1953accd3d57f8e4f3b0f4692598bf4e Author: Wyatt Banks Date: Tue Jul 31 00:38:10 2007 -0700 Documentation: document HFSPlus Documentation: document HFSPlus filesystem and its mount options. Signed-off-by: Wyatt Banks Cc: "Randy.Dunlap" Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit afb2c1650b4c6f285596268d0a1de2a81542a765 Author: Daniel Ritz Date: Tue Jul 31 00:38:08 2007 -0700 pcmcia: give socket time to power down Give sockets up to 100ms of additional time to power down. otherwise we might generate false warnings with KERN_ERR priority (like in bug #8262). Signed-off-by: Daniel Ritz Cc: Nils Neumann Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b232ecfd9ac55adb237e78482ed8f3d3becb0d8 Author: Yoichi Yuasa Date: Tue Jul 31 00:38:06 2007 -0700 DDB5477: remove driver bits of support Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle Acked-by: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 57d4810ea0d9ca58a7bcc1336607f0cede0a2abf Author: Andrew Morton Date: Tue Jul 31 00:38:02 2007 -0700 revert "x86, serial: convert legacy COM ports to platform devices" Revert 7e92b4fc345f5b6f57585fbe5ffdb0f24d7c9b26. It broke Sébastien Dugué's machine and Jeff said (persuasively) This seems like it will break decades-long-working stuff, in favor of breaking new ground in our favorite area, "trusting the BIOS." It's just not worth it for serial ports, IMO. Serial ports are something that just shouldn't break at this late stage in the game. My new Intel platform boxes don't even have serial ports, so I question the value of messing with serial port probing even more... because... just wait a year, and your box won't have a serial port either! :) I certainly don't object to the use of platform devices (or isa_driver), but the probe change seems questionable. That's sorta analagous to rewriting the floppy driver probe routine. Sure you could do it... but why risk all that damage and go through debugging all over again? It seems clear from this report that we cannot, should not, trust BIOS for something (a) so simple and (b) that has been working for over a decade. Much discussion ensued and we've decided to have another go at all of this. Cc: Sébastien Dugué Cc: Bjorn Helgaas Cc: Len Brown Cc: Adam Belay Cc: Matthew Garrett Cc: Russell King Cc: Jeff Garzik Acked-by: Alan Cox Cc: Michal Piotrowski Cc: Sascha Sommer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a583f1b54249b11ad1ffd14c6e74d28fcbc59c07 Author: Stephane Eranian Date: Tue Jul 31 00:38:00 2007 -0700 remove unused TIF_NOTIFY_RESUME flag Remove unused TIF_NOTIFY_RESUME flag for all processor architectures. The flag was not used excecpt on IA-64 where the patch replaces it with TIF_PERFMON_WORK. Signed-off-by: stephane eranian Cc: Cc: "Luck, Tony" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cd4f0ef7c03e79f92a883843662e3d0eaae26fb4 Author: Alan Cox Date: Tue Jul 31 00:37:59 2007 -0700 doc/kernel-parameters: use X86-32 tag instead of IA-32 Signed-off-by: Alan Cox Acked-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f6f953aa99d456aff44ffdb1c77061d1a010eae2 Author: Arne Redlich Date: Tue Jul 31 00:37:57 2007 -0700 md: handle writes to broken raid10 arrays gracefully When writing to a broken array, raid10 currently happily emits empty bio lists. IOW, the master bio will never be completed, sending writers to UNINTERRUPTIBLE_SLEEP forever. Signed-off-by: Arne Redlich Acked-by: Neil Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 14e713446aaca97dbe590fe845f7dcbd74ddbee2 Author: Maik Hampel Date: Tue Jul 31 00:37:57 2007 -0700 md: raid10: fix use-after-free of bio In case of read errors raid10d tries to print a nice error message, unfortunately using data from an already put bio. Signed-off-by: Maik Hampel Acked-By: NeilBrown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bfe0d6867e36f46836d2c3755fa8b9ef8cf143ba Author: Randy Dunlap Date: Tue Jul 31 00:37:56 2007 -0700 fix filemap.c kernel-doc Fix kernel-doc warning: Warning(linux-2.6.23-rc1-mm1//mm/filemap.c:864): No description found for parameter 'ra' Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 64d158bc3db121fd2bec29057a44843930b044fa Author: Sam Ravnborg Date: Tue Jul 31 00:37:53 2007 -0700 alpha: fix two section mismatch warnings Fix the following section mismatch warnings: WARNING: o-alpha/vmlinux.o(.text+0x1a4d4): Section mismatch: reference to .init.text:free_area_init (between 'paging_init' and 'srm_paging_stop') WARNING: o-alpha/vmlinux.o(.text+0x1a4dc): Section mismatch: reference to .init.text:free_area_init (between 'paging_init' and 'srm_paging_stop') One instance of paging_init() was declared __init but not the other one - used by defconfig. Fixed by declaring the second instance ___init too. Signed-off-by: Sam Ravnborg Cc: Ivan Kokshaysky Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4a4b88317aa02c82e66e37debb764d4ff3eedd70 Author: J. Bruce Fields Date: Tue Jul 31 00:37:53 2007 -0700 knfsd: eliminate unnecessary -ENOENT returns on export downcalls A succesful downcall with a negative result (which indicates that the given filesystem is not exported to the given user) should not return an error. Currently mountd is depending on stdio to write these downcalls. With some versions of libc this appears to cause subsequent writes to attempt to write all accumulated data (for which writes previously failed) along with any new data. This can prevent the kernel from seeing responses to later downcalls. Symptoms will be that nfsd fails to respond to certain requests. Signed-off-by: "J. Bruce Fields" Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0a725fc4d3bfc4734164863d6c50208b109ca5c7 Author: J. Bruce Fields Date: Tue Jul 31 00:37:52 2007 -0700 nfsd4: idmap upcalls should use unsigned uid and gid We shouldn't be using negative uid's and gid's in the idmap upcalls. Signed-off-by: "J. Bruce Fields" Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 749997e5127a1df6b68a10c686af3f5b819a41a2 Author: Jeff Layton Date: Tue Jul 31 00:37:51 2007 -0700 knfsd: set the response bitmask for NFS4_CREATE_EXCLUSIVE RFC 3530 says: If the server uses an attribute to store the exclusive create verifier, it will signify which attribute by setting the appropriate bit in the attribute mask that is returned in the results. Linux uses the atime and mtime to store the verifier, but sends a zeroed out bitmask back to the client. This patch makes sure that we set the correct bits in the bitmask in this situation. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 421cee293587081efef165b137514884b8472565 Author: Randy Dunlap Date: Tue Jul 31 00:37:50 2007 -0700 sched: fix kernel-doc warnings Fix kernel-doc warnings in sched.c: Warning(linux-2623-rc1g4//kernel/sched.c:1685): No description found for parameter 'notifier' Warning(linux-2623-rc1g4//kernel/sched.c:1696): No description found for parameter 'notifier' Warning(linux-2623-rc1g4//kernel/sched.c:1750): No description found for parameter 'prev' Signed-off-by: Randy Dunlap Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b8a367935fc649c071a91c648c4a9c892f72113e Author: Randy Dunlap Date: Tue Jul 31 00:37:50 2007 -0700 pnp: fix kernel-doc warnings Fix PNP docbook warnings: Warning(linux-2623-rc1g4//drivers/pnp/core.c): no structured comments found Warning(linux-2623-rc1g4//drivers/pnp/driver.c): no structured comments found Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dd54567a83057821a667109a5cadec6eed0295de Author: Mingming Cao Date: Tue Jul 31 00:37:46 2007 -0700 "ext4_ext_put_in_cache" uses __u32 to receive physical block number Yan Zheng wrote: > I think I found a bug in ext4/extents.c, "ext4_ext_put_in_cache" uses > "__u32" to receive physical block number. "ext4_ext_put_in_cache" is > used in "ext4_ext_get_blocks", it sets ext4 inode's extent cache > according most recently tree lookup (higher 16 bits of saved physical > block number are always zero). when serving a mapping request, > "ext4_ext_get_blocks" first check whether the logical block is in > inode's extent cache. if the logical block is in the cache and the > cached region isn't a gap, "ext4_ext_get_blocks" gets physical block > number by using cached region's physical block number and offset in > the cached region. as described above, "ext4_ext_get_blocks" may > return wrong result when there are physical block numbers bigger than > 0xffffffff. > You are right. Thanks for reporting this! Signed-off-by: Mingming Cao Cc: Yan Zheng Cc: Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6676ae62822f189e7bca80526eca514c399adcfc Author: Jeff Dike Date: Tue Jul 31 00:37:44 2007 -0700 UML: console should handle spurious IRQS The previous DEBUG_SHIRQ patch missed one case. The console doesn't set its host descriptors non-blocking. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8daedea656ef48d36d1bda3d1339da484387c710 Author: Andrew Morton Date: Tue Jul 31 00:37:43 2007 -0700 parport_pc locking fix http://bugzilla.kernel.org/show_bug.cgi?id=8821 reports a might_sleep() warning due to parport_pc_exit() running platform_device_unregister() while holding ports_lock. Just remove the locking: nobody else can access ports_list during module_exit. Cc: "Mike Sharkey" Cc: Tim Waugh Cc: Stas Sergeev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c21b37f6449a3d799c7e75e978391674ee207600 Author: Richard Purdie Date: Tue Jul 31 00:37:42 2007 -0700 lzo: add some missing casts Add some casts to the LZO compression algorithm after they were removed during cleanup and shouldn't have been. Signed-off-by: Richard Purdie Cc: Edward Shishkin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3968cb49ab01588cbf6896951780a1e411a0ec38 Author: Jordan Crouse Date: Tue Jul 31 00:37:40 2007 -0700 lxfb: GEODE: Add framebuffer support for the AMD Geode LX Add framebuffer support for the AMD Geode LX graphics engine. Signed-off-by: Jordan Crouse Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c8facbb62111f9333d00870b0d523f5036822d04 Author: Randy Dunlap Date: Tue Jul 31 00:37:40 2007 -0700 various doc/kernel-parameters fixes - tell what APIC (by request), MTD, & PARIDE mean - correct some source file names - remove IA64 "llsc*=" (seems to have been removed from source tree) - removel SCSI "53c7xx=" (driver already removed) Signed-off-by: Randy Dunlap Acked-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f53161d1088567dda41094a932f6a16dc0bdae59 Author: Grant Likely Date: Tue Jul 31 00:37:39 2007 -0700 xilinxfb: Don't bail if the xilinxfb platform device doesn't have any pdata Lack of pdata is not a fatal omission. The driver can still be used even if we do not know the screen dimensions. Signed-off-by: Grant Likely Cc: Andrei Konovalov Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3f5b85d14ebc4a47de5993d2d74148f603aae639 Author: Grant Likely Date: Tue Jul 31 00:37:38 2007 -0700 xilinxfb:Remove __initdata from xilinx_fb_fix and xilinx_fb_var xilinxfb_drv_probe refers to both tables, but it cannot be initdata. Signed-off-by: Grant Likely Cc: Andrei Konovalov Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aff39a852eb20ee6709327d1db7610fa9bec3531 Author: Ben Dooks Date: Tue Jul 31 00:37:37 2007 -0700 s3c2410fb: fix s3c2410 compilation The implicit mapping has been removed from the arch as this should be handled in the driver, this patch fixes the s3c2410_fb driver to ioremap() the necessary registers. Signed-off-by: Ben Dooks Acked-by: Arnaud Patard Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1692b37c99d5087cf2f814466a907a3dd35a1453 Author: Antonino A. Daplas Date: Tue Jul 31 00:37:36 2007 -0700 fbdev: Fix logo if logo depth is less than framebuffer depth The VGA16 logo (bpp = 4) and monochrome logo (bpp = 1) do not contain any color information (no CLUT). If the fb depth is > logo depth, these logo's will not properly display. Fix by using the console palette instead of creating a new one. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c81f717cb9e0bd91dc4b98753cb2705ab0fe2801 Author: Antonino A. Daplas Date: Tue Jul 31 00:37:36 2007 -0700 fbcon: Fix typo and bogus logic in get_default_font Reported in: Bugzilla Bug 8727 Fix typo and bogus logic in get_default_font(). The bug results in get_default_font() returning a font that may not be displayed properly by a framebuffer driver. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bb029c67e430e9ae96476ce7233468c11627c1db Author: Paul Fulghum Date: Tue Jul 31 00:37:35 2007 -0700 synclink_gt: fix transmit DMA stall Fix transmit DMA stall when write() called in window after previous transmit DMA completes but before previous serial transmission completes. Signed-off-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ddb437b7f74de775ff50ef51a8b2970564d56f86 Author: Atsushi Nemoto Date: Tue Jul 31 00:37:34 2007 -0700 serial_txx9: fix printk format mismatch Since the commit 4f640efb3170dbcf99a37a3cc99060647b95428c, "%lx" is not suitable for p->mapbase (resource_size_t) in 32-bit. This patch fixes a compiler warning caused by the mismatch. Signed-off-by: Atsushi Nemoto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e6b33220845d4702590ecbe356787e59c8d914ae Author: Randy Dunlap Date: Tue Jul 31 00:37:32 2007 -0700 x86-64: Calgary: fix section mismatch warnings in tce Fix section mismatch warnings: these functions are called only from __init functions. WARNING: vmlinux.o(.text+0x1861c): Section mismatch: reference to .init.text:free_bootmem (between 'free_tce_table' and 'build_tce_table') WARNING: vmlinux.o(.text+0x187e5): Section mismatch: reference to .init.text:__alloc_bootmem_low (between 'alloc_tce_table' and 'kretprobe_trampoline_holder') Signed-off-by: Randy Dunlap Signed-off-by: Muli Ben-Yehuda Cc: Andi Kleen Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a5e58a61420e99dd08685f622d4dc666bf07e9a5 Author: David Rientjes Date: Tue Jul 31 00:37:32 2007 -0700 oom: print points as unsigned long In badness(), the automatic variable 'points' is unsigned long. Print it as such. Signed-off-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c8ed39ebe0cf490abd7bf7c77b728dd6fefb2cf8 Author: Thomas Hommel Date: Tue Jul 31 00:37:31 2007 -0700 rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD Prevent the RTC driver from returning ENOIOCTLCMD to userspace. Signed-off-by: Thomas Hommel Acked-by: Alessandro Zummo Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a8bbf72ab9b3072ece630d97689145b1a2f01221 Author: Mel Gorman Date: Tue Jul 31 00:37:30 2007 -0700 Do not trigger OOM-killer for high-order allocation failures out_of_memory() may be called when an allocation is failing and the direct reclaim is not making any progress. This does not take into account the requested order of the allocation. If the request if for an order larger than PAGE_ALLOC_COSTLY_ORDER, it is reasonable to fail the allocation because the kernel makes no guarantees about those allocations succeeding. This false OOM situation can occur if a user is trying to grow the hugepage pool in a script like; #!/bin/bash REQUIRED=$1 echo 1 > /proc/sys/vm/hugepages_treat_as_movable echo $REQUIRED > /proc/sys/vm/nr_hugepages ACTUAL=`cat /proc/sys/vm/nr_hugepages` while [ $REQUIRED -ne $ACTUAL ]; do echo Huge page pool at $ACTUAL growing to $REQUIRED echo $REQUIRED > /proc/sys/vm/nr_hugepages ACTUAL=`cat /proc/sys/vm/nr_hugepages` sleep 1 done This is a reasonable scenario when ZONE_MOVABLE is in use but triggers OOM easily on 2.6.23-rc1. This patch will fail an allocation for an order above PAGE_ALLOC_COSTLY_ORDER instead of killing processes and retrying. Signed-off-by: Mel Gorman Acked-by: Andy Whitcroft Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 252e48389ed30d7c77385fb92fca765a680de408 Author: Ben Dooks Date: Tue Jul 31 00:37:28 2007 -0700 s3c2410: fixup after arch moves Fixup the changes from moving around the arch support for s3c24xx based systems. Signed-off-by: Ben Dooks Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a512cd5dfecd16bb4f881fede459ce5c7c3012a4 Author: Neil Brown Date: Tue Jul 31 00:37:27 2007 -0700 Make Bruce Fields (co-)maintainer of kNFSDd Make Bruce Fields (co-)maintainer of kNFSDd Signed-off-by: Neil Brown Cc: "J. Bruce Fields" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 45c876bf12b431afa9c438b24bd6f55f3a815805 Author: Fenghua Yu Date: Tue Jul 31 00:37:26 2007 -0700 Fix uninitialized local variable "covered" in i386 acpi-cpufreq driver The local variable "covered" is used without initialization in i386 acpi-cpufreq driver. The initial value of covered should be 0. The bug will cause memory leak when hit. The following patch fixes this bug. Signed-off-by: Fenghua Yu Cc: Venkatesh Pallipadi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7f8e00f2b9797ce7235634431d65269d21ef80d2 Author: Randy Dunlap Date: Tue Jul 31 00:37:26 2007 -0700 update dontdiff file Updates based on recent .gitignore updates: *.o.*: Says Alexey Dobriyan: These are presumably temporary gcc files, which aren't interesting. setup.bin, setup.elf: new x86 boot code files (from Matthew Wilcox) Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 96918a35a09f322d57c1a2d41e5b5ab24ea73991 Author: Alexey Dobriyan Date: Tue Jul 31 00:37:25 2007 -0700 .gitignore update Somehow I ended up with the following in tree: $ git status ... # Untracked files: # (use "git add ..." to include in what will be committed) # # fs/proc/root.o.FuMxJQ # net/ipv4/tcp_minisocks.o.geCDYR These are presumably temporary gcc files, which aren't interesting. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2e92a3baee64112fd210a930276bad165b0bd576 Author: David Howells Date: Tue Jul 31 00:37:24 2007 -0700 NOMMU: Fix SYSV IPC SHM Fix the SYSV IPC SHM to work with the changes applied by the new fault handler patches when CONFIG_MMU=n. Signed-off-by: David Howells Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8072f085d79a0a73cc5a0333ffa7f0c5d35f76e0 Author: Thomas Graf Date: Tue Jul 31 14:13:50 2007 -0700 [RTNETLINK]: Fix warning for !CONFIG_KMOD replay label is unused otherwise. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 376407039c26caacc3e433437d25516ba8f3adc9 Author: Mariusz Kozlowski Date: Tue Jul 31 14:06:45 2007 -0700 [IPV4] ip_options.c: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller commit f87966541ef15d28572c8a3caaec359801625228 Author: Mariusz Kozlowski Date: Tue Jul 31 14:05:56 2007 -0700 [DECNET]: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller commit 50aa485e1abb7566ce68418c7bbc6a6b454f9039 Author: Mariusz Kozlowski Date: Tue Jul 31 14:04:57 2007 -0700 [BBC_I2C]: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller commit 916e89fdd1b21eec4abbc9e228757db77660fff2 Author: Mariusz Kozlowski Date: Tue Jul 31 14:04:19 2007 -0700 [BBC_ENVCTRL]: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller commit 313674afa8fdced2fe79f50f38e1c387b63d8790 Author: Matthew Wilcox Date: Tue Jul 31 14:00:29 2007 -0700 [NET]: ethtool_perm_addr only has one implementation All drivers implement ethtool get_perm_addr the same way -- by calling the generic function. So we can inline the generic function into the caller and avoid going through the drivers. Signed-off-by: Matthew Wilcox Signed-off-by: David S. Miller commit 61a44b9c4b20d40c41fd1b70a4ceb13b75ea79a4 Author: Matthew Wilcox Date: Tue Jul 31 14:00:02 2007 -0700 [NET]: ethtool ops are the only way During the transition to the ethtool_ops way of doing things, we supported calling the device's ->do_ioctl method to allow unconverted drivers to continue working. Those days are long behind us, all in-tree drivers use the ethtool_ops way, and so we no longer need to support this. The bonding driver is the biggest beneficiary of this; it no longer needs to call ioctl() as a fallback if ethtool_ops aren't supported. Also put a proper copyright statement on ethtool.c. Signed-off-by: Matthew Wilcox Signed-off-by: David S. Miller commit f1543f8b8316f49b318ac6cd8c78a7fd18509311 Author: Florian Zumbiehl Date: Tue Jul 31 13:47:57 2007 -0700 [PPPOE]: Improve hashing function in hash_item(). The new code produces the same results as the old version and is ~ 3 to 6 times faster for 4-bit hashes on the CPUs I tested. Signed-off-by: Florian Zumbiehl Signed-off-by: David S. Miller commit b4b2917cc8babe8eaf4bc133bca31b11ed7dac13 Author: Peter Watkins Date: Mon Jul 30 18:01:29 2007 -0400 [MIPS] Add smp_call_function_single() In the other archs, there is more factoring of smp call code, and more care in the use of get_cpu(). That can be a follow-up MIPS patch. Signed-off-by: Peter Watkins Signed-off-by: Ralf Baechle commit 185bcd17a5fb4155fba125332efa498be126aa4e Author: Mariusz Kozlowski Date: Tue Jul 31 20:48:41 2007 +0200 [MIPS] thread_info.h: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: Ralf Baechle commit 00be0f305fa69adb9f9d7b9447283b862b853e9e Author: Ralf Baechle Date: Tue Jul 31 15:17:21 2007 +0100 [MIPS] Kexec: Fix several 64-bit bugs. Signed-off-by: Ralf Baechle commit 1065932fcb73ca188a497d8853a1a00422ce6c62 Author: Ralf Baechle Date: Tue Jul 31 15:16:32 2007 +0100 [MIPS] Kexec: Fix several warnings. arch/mips/kernel/machine_kexec.c: In function 'machine_kexec': arch/mips/kernel/machine_kexec.c:54: warning: assignment makes integer from pointer without a cast arch/mips/kernel/machine_kexec.c:70: warning: assignment makes integer from pointer without a cast arch/mips/kernel/machine_kexec.c:81: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'long unsigned int' Signed-off-by: Ralf Baechle commit ff32b062ea6d16a1c53d57da0ac9419c9d015534 Author: Yoichi Yuasa Date: Mon Jul 30 22:40:35 2007 +0900 [MIPS] DDB5477: Remove support Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 796756bab6fd09111159b76288169e18fa13d3e8 Author: Songmao Tian Date: Mon Jul 30 09:06:45 2007 +0800 [MIPS] Fulong: Remove unneeded header file Signed-off-by: Songmao Tian Signed-off-by: Ralf Baechle commit ac1a236aaaaaa24552bf16a8ba6dc5f88129fbd0 Author: Martin Michlmayr Date: Sun Jul 29 22:19:02 2007 +0200 [MIPS] Cobalt: Enable UART on RaQ1 Unlike the current code suggests, the RaQ1 actually has an UART. Only the Qube1 (Qube 2700) lacks one. Signed-off-by: Martin Michlmayr Signed-off-by: Ralf Baechle commit 72c0fcf70a0c15a6280b3cf2ad11c6fdaf0bd888 Author: Yoichi Yuasa Date: Sun Jul 29 21:17:18 2007 +0900 [MIPS] Remove unused GROUP_TOSHIBA_NAMES Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 05014a1e56c423254338a1c2e63aab99c84bee9b Author: Jesper Juhl Date: Sun Jul 29 23:59:35 2007 +0200 [MIPS] remove some duplicate includes This patch removes some duplicate includes from arch/mips/ Signed-off-by: Jesper Juhl Signed-off-by: Ralf Baechle commit c8f4ff9f3f655c92ca7b31850bfea2ce3796e386 Author: Dajie Tan Date: Mon Jul 30 11:07:42 2007 +0400 [MIPS] Oprofile: Fix rm9000 performance counter handler The new type of irq handler remove a parameter (struct pt_regs *),but someone forgot to supply it. Signed-off-by: Dajie Tan Signed-off-by: Ralf Baechle commit dde96ca8b398637e2b4442e312723f66fa6a8186 Author: Ralf Baechle Date: Mon Jul 30 11:48:58 2007 +0100 [MIPS] Use -Werror on subdirectories which build cleanly. Signed-off-by: Ralf Baechle commit e9c227f9ecc0ddbaa5d4d197f7ee658aa4fee67f Author: Ralf Baechle Date: Mon Jul 30 11:08:35 2007 +0100 [MIPS] Yosemite: Fix warning. arch/mips/pmc-sierra/yosemite/smp.c: In function 'titan_mailbox_irq': arch/mips/pmc-sierra/yosemite/smp.c:112: warning: 'status' may be used uninitialized in this function Signed-off-by: Ralf Baechle commit e0a725a7460b3bc3a15c95b1241394cb185d9af6 Author: Ralf Baechle Date: Mon Jul 30 01:07:09 2007 +0100 [MIPS] PMON: Fix cpustart declaration. This now matches how cpustart is actually being invoked from Linux. Signed-off-by: Ralf Baechle commit 7f32a88e9cb6587cae89f5488050d167397ab9b2 Author: Ralf Baechle Date: Mon Jul 30 00:52:14 2007 +0100 [MIPS] Yosemite: Only build ll_ht_smp_irq_handler() if HYPERTRANSPORT. Signed-off-by: Ralf Baechle commit 035955b69ebc1e130fdf04d0233f131b84b637b9 Author: Ralf Baechle Date: Mon Jul 30 00:50:47 2007 +0100 [MIPS] Yosemite: Fix build error due to undeclared titan_mailbox_irq(). Signed-off-by: Ralf Baechle commit f724af8c32ab9655fcf7e46bafee8c55b143a83a Author: Ralf Baechle Date: Mon Jul 30 00:47:07 2007 +0100 [MIPS] Yosemite: Don't declare titan_mailbox_irq() as asmlinkage. Signed-off-by: Ralf Baechle commit daa4a68f901c4d6491baa1a01f5c869a553c3f6c Author: Ralf Baechle Date: Mon Jul 30 00:45:04 2007 +0100 [MIPS] Yosemite: Fix warnings in i2c-yoesmite by deleting the unused code. arch/mips/pmc-sierra/yosemite/i2c-yosemite.c: In function 'titan_i2c_xfer': arch/mips/pmc-sierra/yosemite/i2c-yosemite.c:98: warning: 'data' may be used uninitialized in this function Signed-off-by: Ralf Baechle commit 4d8506b806cc726c96db1c1a55edfb2da52217a9 Author: Ralf Baechle Date: Sun Jul 29 09:21:51 2007 +0100 [MIPS] Delete unused arch/mips/gt64120/common/ Signed-off-by: Ralf Baechle commit 7f18f151f474b11c0fb7f1c9b7bb59b6d04a6fc2 Author: Ralf Baechle Date: Sun Jul 29 09:16:19 2007 +0100 [MIPS] Fix build warning in unaligned load/store emulator. Signed-off-by: Ralf Baechle commit c3dd8cdf8563ac46b27b0cacfda5e7e6b18c4a46 Author: Ralf Baechle Date: Sun Jul 29 00:16:34 2007 +0100 [MIPS] IP32: Don't ignore request_irq's return value. Signed-off-by: Ralf Baechle commit 89c960961d79ce87dfbc67bc05d254e6ee079939 Author: Ralf Baechle Date: Sun Jul 29 00:14:02 2007 +0100 [MIPS] IP27: Fix warning. Signed-off-by: Ralf Baechle commit 3118513172fc5ac843f22d7848369b11b1829df1 Author: Ralf Baechle Date: Sun Jul 29 00:00:34 2007 +0100 [MIPS] BCM1480: Include . Signed-off-by: Ralf Baechle commit 0b0ef2ea00c581d613e15eadc3215d52a6a55946 Author: Ralf Baechle Date: Sat Jul 28 14:20:16 2007 +0100 [MIPS] Remove Momentum Ocelot support. Signed-off-by: Ralf Baechle commit e7865765ef85473c1b97aad86d44b80dc260dbbf Author: Ralf Baechle Date: Sat Jul 28 13:38:49 2007 +0100 [MIPS] Fix archhelp. Signed-off-by: Ralf Baechle commit 8496b401b03393bf9f03bc913a420cbe7de691d3 Author: Ralf Baechle Date: Sat Jul 28 13:27:21 2007 +0100 [MIPS] Cleanup default bootfile format rule mess. Signed-off-by: Ralf Baechle commit e001e52801ffb2d8dae43f26bdf67df62d312d85 Author: Ralf Baechle Date: Sat Jul 28 12:45:47 2007 +0100 [MIPS] Replace use of stext with _stext. Signed-off-by: Ralf Baechle commit 348c913f571dc1a0e7fd84d7206fc7ee983420df Author: Ralf Baechle Date: Sat Jul 28 11:46:15 2007 +0100 [MIPS] Fix build breakage due to duplicate cpu_clock definition commit e436d80085133858bf2613a630365e8a0459fd58 Author: Ingo Molnar Date: Thu Jul 19 21:28:35 2007 +0200 [PATCH] sched: implement cpu_clock(cpu) high-speed time source broke the build of several MIPS platforms which were already using the symbol cpu_clock for the own purposes. Signed-off-by: Ralf Baechle commit 3266c6a988a2d18ffe91fe7fd56d0d6cc13c341e Author: Ralf Baechle Date: Sat Jul 28 07:44:08 2007 +0100 [MIPS] ARC: Fix modpost warnings. WARNING: vmlinux.o(.text+0x1608): Section mismatch: reference to .init.text:ArcRead (between 'indy_8254timer_irq' and 'indy_rtc_set_time') WARNING: vmlinux.o(.text+0x1157ac): Section mismatch: reference to .init.text:ArcRead (between 'prom_getchar' and 'prom_putchar') WARNING: vmlinux.o(.text+0x115808): Section mismatch: reference to .init.text:ArcWrite (between 'prom_putchar' and 'csum_partial') Signed-off-by: Ralf Baechle commit e119d49ab51385d8163246db8cce74a46cd3b863 Author: Ralf Baechle Date: Sat Jul 28 00:54:32 2007 +0100 [MIPS] SMTC: Fix modpost warning. WARNING: vmlinux.o(.text+0xcf54): Section mismatch: reference to .init.text:smp_bootstrap (between 'smtc_boot_secondary' and 'ipi_interrupt') Signed-off-by: Ralf Baechle commit 4d7d81479849f59a9b377a336e92fe07225f8380 Author: Ralf Baechle Date: Sat Jul 28 00:53:14 2007 +0100 [MIPS] Fix modpost warning. WARNING: vmlinux.o(.text+0x1718): Section mismatch: reference to .init.text:mipsmt_build_cpu_map (between 'plat_smp_setup' and 'prom_init_secondary') Signed-off-by: Ralf Baechle commit 9d5a3f5fa389821f55c77462f30782b07080b8ef Author: Ralf Baechle Date: Sat Jul 28 00:51:45 2007 +0100 [MIPS] rtlx: Fix modpost warning WARNING: vmlinux.o(.text+0x11504): Section mismatch: reference to .init.data:register_chrdev_failed (between 'rtlx_module_init' and 'rtlx_dispatch') Signed-off-by: Ralf Baechle commit 98de920a2aa4f5939d47cdbb23ebac809308d871 Author: Ralf Baechle Date: Sat Jul 28 00:49:58 2007 +0100 [MIPS] Add missing declaration for mips_ihb(). Signed-off-by: Ralf Baechle commit a11b18ef94772d2803ef7d651704c943dcb9dc38 Author: Chris Dearman Date: Fri Jul 27 20:02:00 2007 +0100 [MIPS] MTI: Add CoreFPGA4 ID. Signed-off-by: Chris Dearman Signed-off-by: Ralf Baechle commit 0f5d0df35ea9efe52242b9b3c79517cc50202e37 Author: Ralf Baechle Date: Fri Jul 27 19:37:51 2007 +0100 [MIPS] RP: Sysfs interface for stopping RP program The old method of attempting to load a invalid program was just too icky. Signed-off-by: Ralf Baechle commit 41790e04e6656fa1aef205ad9a76ab4edbb5f14a Author: Ralf Baechle Date: Fri Jul 27 19:33:18 2007 +0100 [MIPS] RP: Pass number of TCs available to RP program in $2. Signed-off-by: Ralf Baechle commit 07cc0c9e65d3e262f871ea357dd77b41950b1ca5 Author: Ralf Baechle Date: Fri Jul 27 19:31:10 2007 +0100 [MIPS] MT: Enable coexistence of AP/SP with VSMP and SMTC. Signed-off-by: Ralf Baechle commit c3a005f4b6a7752608e75d016ef8d07c55285e48 Author: Kevin D. Kissell Date: Fri Jul 27 18:45:25 2007 +0100 [MIPS] SMTC: Safety net for i8259A interrupts. Signed-off-by: Ralf Baechle commit efaa534ed191662270e3be143c8a038a7492ce8f Author: Ralf Baechle Date: Fri Jul 27 18:39:19 2007 +0100 [MIPS] SMTC: smtc_timer_broadcast ignores its arguments, make it void. Signed-off-by: Ralf Baechle commit 97aef63c9f403e4a3d07e3da9e468add0cd93385 Author: Ralf Baechle Date: Fri Jul 27 18:36:32 2007 +0100 [MIPS] SMTC: Declare static what should be static. Signed-off-by: Ralf Baechle commit 033890b084adfa367c544864451d7730552ce8bf Author: Ralf Baechle Date: Fri Jul 27 18:33:30 2007 +0100 [MIPS] SMTC: Statically initialize irq_ipi[]. Signed-off-by: Ralf Baechle commit 004561d3af67065215b9ddef22048c4d05467fb2 Author: Atsushi Nemoto Date: Sat Jul 28 01:03:41 2007 +0900 [MIPS] rbtx4938: Fix warnings linux/arch/mips/pci/fixup-tx4938.c:21:5: warning: symbol 'pci_get_irq' was not declared. Should it be static? linux/arch/mips/pci/fixup-tx4938.c:76: warning: passing argument 1 of 'pci_get_irq' discards qualifiers from pointer target type Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit ade299d899ed6553d1f4db321e207bb9905bea47 Author: Yoichi Yuasa Date: Fri Jul 27 15:25:43 2007 +0900 [MIPS] Sort system types alphabetically Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 08a91283e5224950c6a685be8f2709a70220cfd3 Author: Yoichi Yuasa Date: Fri Jul 27 15:20:24 2007 +0900 [MIPS] Fix RBTX49x7 board name Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 7e5829b56be5aeb931cf52d78c95285c2b8f50e3 Author: Yoann Padioleau Date: Fri Jul 27 11:45:00 2007 +0200 [MIPS] 0 -> NULL When comparing a pointer, it's clearer to compare it to NULL than to 0. Here is an excerpt of the semantic patch: @@ expression *E; @@ E == - 0 + NULL @@ expression *E; @@ E != - 0 + NULL Signed-off-by: Yoann Padioleau Cc: ralf@linux-mips.org Cc: linux-mips@linux-mips.org Cc: akpm@linux-foundation.org Signed-off-by: Ralf Baechle commit 72db43be8bf610d50d86a9e683e0eff3c2cc5ba4 Author: Ralf Baechle Date: Thu Jul 26 03:40:16 2007 +0100 [MIPS] IP27: Fix modpost warning. MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x3180): Section mismatch: reference to .init.text:per_cpu_init (between 'prom_init_secondary' and 'alloc_cpupda') Signed-off-by: Ralf Baechle commit 4dc467756e77838c592a6dc797434f11761d33f5 Author: Ralf Baechle Date: Thu Jul 26 03:38:24 2007 +0100 [MIPS] Wire up the fallocate syscall. Signed-off-by: Ralf Baechle commit 293c5bd13f124c325f74f89ad26edf5612ce7235 Author: Ralf Baechle Date: Wed Jul 25 16:19:33 2007 +0100 [MIPS] Fixup secure computing stuff. Signed-off-by: Ralf Baechle commit 01754bbc692929e446e600f69b41013e554399a6 Author: Atsushi Nemoto Date: Wed Jul 25 01:50:08 2007 +0900 [MIPS] tx49xx: Add mach specific headers Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 8449d399d288c21a643a7e8834c0043db24d24d8 Author: Atsushi Nemoto Date: Wed Jul 25 00:53:40 2007 +0900 [MIPS] rbtx4927: Fix some gcc warnings and a section mismatch. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit d4414cc48baa529311e9326c8bb13c1264c04122 Author: Atsushi Nemoto Date: Wed Jul 25 00:53:29 2007 +0900 [MIPS] rbtx4927: Fix -Werror-implicit-function-declaration build error. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit ff659d13ed91dd0b237064aba91a5259f827aeb3 Author: H. Peter Anvin Date: Tue Jul 31 16:17:13 2007 -0400 [x86 setup] EDD: Fix the computation of the MBR sector buffer Some BIOSes require that sector buffers not cross 64K boundaries. As a result, we compute a dynamic address on the setup heap. Unfortunately, this address computation was just totally wrong. Signed-off-by: H. Peter Anvin commit 8b608d2f5a1b3552363a3161566645a409ff8530 Author: H. Peter Anvin Date: Thu Jul 26 16:10:22 2007 -0700 [x86 setup] Newline after setup signature failure message End the "No setup signature found..." with a newline (the puts routine will automatically add a carriage return.) Signed-off-by: H. Peter Anvin commit 8218d029c58b89837a24b4e1362c33d0ba7450b5 Author: Randy Dunlap Date: Thu Jul 26 10:10:35 2007 -0700 x86 boot code comments typos Fix comments typos in new x86 boot code. Signed-off-by: Randy Dunlap Signed-off-by: H. Peter Anvin commit 48b8d78315bf2aef4b6b4fb41c2c94e0b6600234 Author: Joakim Koskela Date: Thu Jul 26 00:08:42 2007 -0700 [XFRM]: State selection update to use inner addresses. This patch modifies the xfrm state selection logic to use the inner addresses where the outer have been (incorrectly) used. This is required for beet mode in general and interfamily setups in both tunnel and beet mode. Signed-off-by: Joakim Koskela Signed-off-by: Herbert Xu Signed-off-by: Diego Beltrami Signed-off-by: Miika Komu Acked-by: Patrick McHardy Signed-off-by: David S. Miller commit 196b003620f1ee8d0fc63f13f341187d63c1dc0a Author: Herbert Xu Date: Tue Jul 31 02:04:32 2007 -0700 [IPSEC]: Ensure that state inner family is set Similar to the issue we had with template families which specified the inner families of policies, we need to set the inner families of states as the main xfrm user Openswan leaves it as zero. af_key is unaffected because the inner family is set by it and not the KM. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit b8ed601cefe7a4014b93560bd846caf44f25b1c1 Author: Ilpo Järvinen Date: Mon Jul 30 19:51:12 2007 -0700 [TCP]: Bidir flow must not disregard SACK blocks for lost marking It's possible that new SACK blocks that should trigger new LOST markings arrive with new data (which previously made is_dupack false). In addition, I think this fixes a case where we get a cumulative ACK with enough SACK blocks to trigger the fast recovery (is_dupack would be false there too). I'm not completely pleased with this solution because readability of the code is somewhat questionable as 'is_dupack' in SACK case is no longer about dupacks only but would mean something like 'lost_marker_work_todo' too... But because of Eifel stuff done in CA_Recovery, the FLAG_DATA_SACKED check cannot be placed to the if statement which seems attractive solution. Nevertheless, I didn't like adding another variable just for that either... :-) Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller commit 1e757f9996114f713a79d3fbcd08739efcfc5c34 Author: Ilpo Järvinen Date: Mon Jul 30 19:48:37 2007 -0700 [TCP]: Fix ratehalving with bidirectional flows Actually, the ratehalving seems to work too well, as cwnd is reduced on every second ACK even though the packets in flight remains unchanged. Recoveries in a bidirectional flows suffer quite badly because of this, both NewReno and SACK are affected. After this patch, rate halving is performed for ACK only if packets in flight was supposedly changed too. Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller commit 143cf35324548df54563b19d0444e0fe170027f8 Author: James Chapman Date: Mon Jul 30 18:51:48 2007 -0700 [PPPOL2TP]: Add CONFIG_INET Kconfig dependency. PPPOL2TP uses UDP so it obviously depends on CONFIG_INET. Signed-off-by: James Chapman Signed-off-by: David S. Miller commit a309bb072b96bfe43deb29becf15dc54d656601f Author: David S. Miller Date: Mon Jul 30 18:47:03 2007 -0700 [NET]: Page offsets and lengths need to be __u32. Based upon a report from Stephen Rothwell. Signed-off-by: David S. Miller commit 131116989b5c349f9b1ab9ee083d37cc73160ac8 Author: Adrian Bunk Date: Mon Jul 30 18:05:45 2007 -0700 [AF_UNIX]: Make code static. The following code can now become static: - struct unix_socket_table - unix_table_lock Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit 1a3a206f7f2aa50545cc3d056405ad7bc3c9bca8 Author: Adrian Bunk Date: Mon Jul 30 18:04:57 2007 -0700 [NETFILTER]: Make nf_ct_ipv6_skip_exthdr() static. nf_ct_ipv6_skip_exthdr() can now become static. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit fea1ab0fcf117bc1e9c9285af6463d31d9cc0ac6 Author: Adrian Bunk Date: Mon Jul 30 18:04:09 2007 -0700 [PKTGEN]: make get_ipsec_sa() static and non-inline Non-static inline code usually doesn't makes sense. In this case making is static and non-inline is the correct solution. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller commit 8aeca8fea5f2de2563e097829d62af30ca2de650 Author: Florian Zumbiehl Date: Mon Jul 30 17:49:13 2007 -0700 [PPPoE]: move lock_sock() in pppoe_sendmsg() to the right location and the last one for now: Acquire the sock lock in pppoe_sendmsg() before accessing the sock - and in particular avoid releasing the lock even though it hasn't been acquired. Signed-off-by: Florian Zumbiehl Signed-off-by: David S. Miller commit 86c1dcfc96a778433ebc6e9b1d3e80a126cb80f2 Author: Florian Zumbiehl Date: Mon Jul 30 17:48:23 2007 -0700 [PPPoX/E]: return ENOTTY on unknown ioctl requests here another patch for the PPPoX/E code that makes sure that ENOTTY is returned for unknown ioctl requests rather than 0 (and removes another unneeded initializer which I didn't bother creating a separate patch for). Signed-off-by: Florian Zumbiehl Signed-off-by: David S. Miller commit c61a7d10efbd187ab9bb54871238ebd1dfcacd44 Author: Dave Johnson Date: Mon Jul 30 17:19:31 2007 -0700 [IPV6]: ipv6_addr_type() doesn't know about RFC4193 addresses. ipv6_addr_type() doesn't check for 'Unique Local IPv6 Unicast Addresses' (RFC4193) and returns IPV6_ADDR_RESERVED for that range. SCTP uses this function and will fail bind() and connect() calls that use RFC4193 addresses, SCTP will also ignore inbound connections from RFC4193 addresses if listening on IPV6_ADDR_ANY. There may be other users of ipv6_addr_type() that could also have problems. Signed-off-by: Dave Johnson Acked-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 0773192b0f8914222cd27e682c49f978a6c7860a Author: Peter P Waskiewicz Jr Date: Mon Jul 30 17:13:45 2007 -0700 [NET]: Fix prio_tune() handling of root qdisc. Fix the check in prio_tune() to see if sch->parent is TC_H_ROOT instead of sch->handle to load or reject the qdisc for multiqueue devices. Signed-off-by: Peter P Waskiewicz Jr Acked-by: Patrick McHardy Signed-off-by: David S. Miller commit ffc8fefaf289fa485bc5c33e71572e6ce559d569 Author: Patrick McHardy Date: Mon Jul 30 17:11:50 2007 -0700 [NET]: Fix sch_api to properly set sch->parent on the root. Fix sch_api to correctly set sch->parent for both ingress and egress qdiscs in qdisc_create(). Signed-off-by: Patrick McHardy Signed-off-by: Peter P Waskiewicz Jr Signed-off-by: David S. Miller commit bdba91ec70fb5ccbdeb1c7068319adc6ea9e1a7d Author: Patrick McHardy Date: Mon Jul 30 17:07:14 2007 -0700 [NET_SCHED]: Fix prio/ingress classification logic error Fix handling of empty or completely non-matching filter chains. In that case -1 is returned and tcf_result is uninitialized, the qdisc should fall back to default classification in that case. Noticed by PJ Waskiewicz . Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 20283d84c7d922ca225b20db651d9a062716e8e3 Author: Herbert Xu Date: Mon Jul 30 17:05:49 2007 -0700 [IPV6]: Remove circular dependency on if_inet6.h net/if_inet6.h includes linux/ipv6.h which also tries to include net/if_inet6.h. Since the latter only needs it for forward declarations, we can fix this by adding the declarations. A number of files are implicitly including net/if_inet6.h through linux/ipv6.h. They also use net/ipv6.h so this patch includes net/if_inet6.h there. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit b217d616a15fcfb3caf2a72c1a071c6d3f182f8d Author: Herbert Xu Date: Mon Jul 30 17:04:52 2007 -0700 [IPV4/IPV6]: Fail registration if inet device construction fails Now that netdev notifications can fail, we can use this to signal errors during registration for IPv4/IPv6. In particular, if we fail to allocate memory for the inet device, we can fail the netdev registration. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit fcc5a03ac42564e9e255c1134dda47442289e466 Author: Herbert Xu Date: Mon Jul 30 17:03:38 2007 -0700 [NET]: Allow netdev REGISTER/CHANGENAME events to fail This patch adds code to allow errors to be passed up from event handlers of NETDEV_REGISTER and NETDEV_CHANGENAME. It also adds the notifier_from_errno/notifier_to_errnor helpers to pass the errno value up to the notifier caller. If an error is detected when a device is registered, it causes that operation to fail. A NETDEV_UNREGISTER will be sent to all event handlers. Similarly if NETDEV_CHANGENAME fails the original name is restored and a new NETDEV_CHANGENAME event is sent. As such all event handlers must be idempotent with respect to these events. When an event handler is registered NETDEV_REGISTER events are sent for all devices currently registered. Should any of them fail, we will send NETDEV_GOING_DOWN/NETDEV_DOWN/NETDEV_UNREGISTER events to that handler for the devices which have already been registered with it. The handler registration itself will fail. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit aeed9e82cd258b9699eaa6568efefba9cc6d5f01 Author: Herbert Xu Date: Mon Jul 30 16:37:19 2007 -0700 [NET] loopback: Panic if registration fails Because IPv4 and IPv6 both depend on the presence of the loopback device to function, failure in registration the loopback device should be fatal. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 7f988eab57bd22884bbc452fb04c6c18738666b3 Author: Herbert Xu Date: Mon Jul 30 16:35:46 2007 -0700 [NET]: Take dev_base_lock when moving device name hash list entry When we added name-based hashing the dev_base_lock was designated as the lock to take when changing the name hash list. Unfortunately, because it was a preexisting lock that just happened to be taken in the right spots we neglected to take it in dev_change_name. The race can affect calles of __dev_get_by_name that do so without taking the RTNL. They may end up walking down the wrong hash chain and end up missing the device that they're looking for. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 7ce1b0edcb11f90f6fc5e0ceecff467f329889a0 Author: Herbert Xu Date: Mon Jul 30 16:29:40 2007 -0700 [NET]: Call uninit if necessary in register_netdevice This patch makes register_netdevice call dev->uninit if the regsitration fails after dev->init has completed successfully. Very few drivers use the init/uninit calls but at least one (drivers/net/wan/sealevel.c) may leak without this change. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit ccc7911fbd1c5af9b60453d3a8cca0a36402fee5 Author: Herbert Xu Date: Mon Jul 30 16:20:12 2007 -0700 [IPVS]: Use skb_forward_csum As a path that forwards packets, IPVS should be using skb_forward_csum instead of directly setting ip_summed to CHECKSUM_NONE. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller commit 25a8b2545bfb2238f6f66da8032d768c6870c863 Author: David S. Miller Date: Mon Jul 30 16:11:48 2007 -0700 [PKTGEN]: Add missing KERN_* tags to printk()s. Signed-off-by: David S. Miller commit d83852822cb58f0beaa2d06b7c1e9e005e0c4f94 Author: Al Viro Date: Sun Jul 29 00:18:23 2007 -0700 [BLUETOOTH] l2cap: don't mangle cmd.len Since nobody uses it after we convert it to host-endian, no need to do that at all. At that point l2cap is endian-clean. Signed-off-by: Al Viro Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller commit 88219a0f65ae14ba744fa424604c965b6f1c1a8d Author: Al Viro Date: Sun Jul 29 00:17:25 2007 -0700 [BLUETOOTH]: pass (host-endian) cmd length as explicit argument to l2cap_conf_req() Signed-off-by: Al Viro Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller commit 8e036fc3143646dc304356fa50314681d654363f Author: Al Viro Date: Sun Jul 29 00:16:36 2007 -0700 [BLUETOOTH] l2cap: endianness annotations no code changes, just documenting existing types Signed-off-by: Al Viro Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller commit 6dc0c2082b8acf30c9239fbbcc051eebdaf7ecff Author: Al Viro Date: Sun Jul 29 00:15:18 2007 -0700 [BLUETOOTH]: Fix endianness bug in l2cap_sock_listen() We loop through psm values, calling __l2cap_get_sock_by_addr(psm, ...) until we get NULL; then we set ->psm of our socket to htobs(psm). IOW, we find unused psm value and put it into our socket. So far, so good, but... __l2cap_get_sock_by_addr() compares its argument with ->psm of sockets. IOW, the entire thing works correctly only on little-endian. On big-endian we'll get "no socket with such psm" on the first iteration, since we won't find a socket with ->psm == 0x1001. We will happily conclude that 0x1001 is unused and slap htobs(0x1001) (i.e. 0x110) into ->psm of our socket. Of course, the next time around the same thing will repeat and we'll just get a fsckload of sockets with the same ->psm assigned. Fix: pass htobs(psm) to __l2cap_get_sock_by_addr() there. All other callers are already passing little-endian values and all places that store something in ->psm are storing little-endian. Signed-off-by: Al Viro Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller commit 09c7d8293a2d1317d16ef4ddb9f6dd2553d0694e Author: Marcel Holtmann Date: Thu Jul 26 00:12:25 2007 -0700 [IRDA]: Fix rfcomm use-after-free Adrian Bunk wrote: > Commit 8de0a15483b357d0f0b821330ec84d1660cadc4e added the following > use-after-free in net/bluetooth/rfcomm/tty.c: > > <-- snip --> > > ... > static int rfcomm_dev_add(struct rfcomm_dev_req *req, struct rfcomm_dlc *dlc) > { > ... > if (IS_ERR(dev->tty_dev)) { > list_del(&dev->list); > kfree(dev); > return PTR_ERR(dev->tty_dev); > } > ... > > <-- snip --> > > Spotted by the Coverity checker. really good catch. I fully overlooked that one. The attached patch should fix it. Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller commit 566cfd8f0e049a0647f94714f913e2a975dc464f Author: Simon Arlott Date: Thu Jul 26 00:09:55 2007 -0700 [IPV6]: Don't update ADVMSS on routes where the MTU is not also updated The ADVMSS value was incorrectly updated for ALL routes when the MTU is updated because it's outside the effect of the if statement's condition. Signed-off-by: Simon Arlott Signed-off-by: David S. Miller commit 342ff7b24f42d01b27d884c699855c713d720fcb Author: Shannon Nelson Date: Thu Jul 26 00:05:53 2007 -0700 [NET_DMA]: remove unused dma_memcpy_to_kernel_iovec Al Viro pointed out that dma_memcpy_to_kernel_iovec() really was unreachable and thus unused. The code originally was there to support in-kernel dma needs, but since it remains unused, we'll pull it out. Signed-off-by: Shannon Nelson Signed-off-by: David S. Miller commit 94571065757a4f2619c48ab4e36cafdc635028ce Author: Florian Westphal Date: Thu Jul 26 00:05:07 2007 -0700 [TIPC]: fix tipc_link_create error handling if printbuf allocation or tipc_node_attach_link() fails, invalid references to the link are left in the associated node and bearer structures. Fix by allocating printbuf early and moving timer initialization and the addition of the new link to the b_ptr->links list after tipc_node_attach_link() succeeded. Signed-off-by: Florian Westphal Signed-off-by: David S. Miller commit 0ed72ec4afb9fbd584e03763707d3db0f62ee1be Author: Randy Dunlap Date: Thu Jul 26 00:03:29 2007 -0700 [NET]: kernel-doc fixes Fix kernel-doc omissions in net/: Warning(linux-2.6.23-rc1//net/core/dev.c:2728): No description found for parameter 'addr' Warning(linux-2.6.23-rc1//net/core/dev.c:2752): No description found for parameter 'addr' Warning(linux-2.6.23-rc1//net/core/dev.c:3839): No description found for parameter 'net_dma' Warning(linux-2.6.23-rc1//net/core/dev.c:3877): No description found for parameter 'state' Signed-off-by: Randy Dunlap Signed-off-by: David S. Miller commit 113bbbd8d2da61b50417a1dd06d8e7c19047e54b Author: Stephen Hemminger Date: Wed Jul 25 23:50:28 2007 -0700 [TCP]: htcp - use measured rtt Change HTCP to use measured RTT rather than smooth RTT. Srtt is computed using the TCP receive timestamp options, so it is vulnerable to hostile receivers. To avoid any problems this might cause use the measured RTT instead. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit e7d0c88586a66cf03e70750a8119d984fdedf2aa Author: Stephen Hemminger Date: Wed Jul 25 23:50:06 2007 -0700 [TCP]: cubic - eliminate use of receive time stamp Remove use of received timestamp option value from RTT calculation in Cubic. A hostile receiver may be returning a larger timestamp option than the original value. This would cause the sender to believe the malevolent receiver had a larger RTT and because Cubic tries to provide some RTT friendliness, the sender would then favor the liar. Instead, use the jiffie resolutionRTT value already computed and passed back after ack. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 30cfd0baf0a0c4329fff1ef4b622919297969ec8 Author: Stephen Hemminger Date: Wed Jul 25 23:49:34 2007 -0700 [TCP]: congestion control API pass RTT in microseconds This patch changes the API for the callback that is done after an ACK is received. It solves a couple of issues: * Some congestion controls want higher resolution value of RTT (controlled by TCP_CONG_RTT_SAMPLE flag). These don't really want a ktime, but all compute a RTT in microseconds. * Other congestion control could use RTT at jiffies resolution. To keep API consistent the units should be the same for both cases, just the resolution should change. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit da4e9fea85ea42c9c6ce163a85d5164efbec31a2 Author: Mark Fortescue Date: Tue Jul 31 02:03:11 2007 -0700 [SPARC]: Fix exec failures on sun4c. This deals with a sun4c issue caused by commit b6a2fea39318e43fee84fa7b0b90d68bed92d2ba: mm: variable length argument support. The new way the code works means that sun4c_update_mmu_cache gets called before a context has been selected, which results in invalid operation of the underling mm code. Simply ignoring update requests when there is no valid context solves the problem. Signed-off-by Mark Fortescue Signed-off-by: David S. Miller commit 2fa3195d72f7d0cfb4dcb2b0dfa265ed0fa5cfa3 Author: Matthias Kaehlcke Date: Tue Jul 31 01:37:24 2007 -0700 [SPARC] Videopix Frame Grabber: Fix unreleased lock in vfc_debug() Videopix Frame Grabber: vfc_debug() doesn't release the device lock when copy_from_user() fails Signed-off-by: Matthias Kaehlcke Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit e5071b5493b1dcfa98a6e8a75f56997f6d4a0c25 Author: Andrew Morton Date: Tue Jul 31 01:28:33 2007 -0700 [SPARC64]: Add missing dma_get_cache_alignment(). drivers/infiniband/hw/mthca/mthca_main.c: In function `mthca_init_icm': drivers/infiniband/hw/mthca/mthca_main.c:468: error: implicit declaration of function `dma_get_cache_alignment' Pinch the one from asm-generic/dma-mapping.h Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 75c46162be3d0025d448e0b738d6f8b51ff8a6e5 Author: Paul Mundt Date: Tue Jul 31 13:11:25 2007 +0900 sh64: Kill off virt_to_bus()/bus_to_virt(). Follows the SH change. Signed-off-by: Paul Mundt commit da9d5108f43d63f09b0328a4211f5f404ea05ab0 Author: Paul Mundt Date: Tue Jul 31 13:07:37 2007 +0900 sh64: Fix irq_intc build failure. Needs interrupt.h: CC arch/sh64/kernel/irq_intc.o arch/sh64/kernel/irq_intc.c: In function 'make_intc_irq': arch/sh64/kernel/irq_intc.c:179: error: implicit declaration of function 'disable_irq_nosync' make[1]: *** [arch/sh64/kernel/irq_intc.o] Error 1 Signed-off-by: Paul Mundt commit 78d98277e2bdad7213ca910950175ec6ada99513 Author: Paul Mundt Date: Tue Jul 31 13:03:02 2007 +0900 sh64: Fix fs.h removal from mm.h regressions. Signed-off-by: Paul Mundt commit e06c4e5775b1efc4e476f2430439e45867775f5f Author: Paul Mundt Date: Tue Jul 31 13:01:43 2007 +0900 sh: Fix fs.h removal from mm.h regressions. Signed-off-by: Paul Mundt commit 76fcdb30ae1cb28e438e5ffd4db5f49ea3d96cd7 Author: David S. Miller Date: Mon Jul 30 18:23:39 2007 -0700 [SUNLANCE]: Fix sparc32 crashes by using of_*() interfaces. This driver was still using the deprecated prom_*() interfaces to obtain values out of the OBP device tree, and this is causing some kinds of problems on sparc32 especially SMP boxes. Signed-off-by: David S. Miller commit 5cccf4a1a258ea5bff20e8440deb3dfcf032b04a Author: Hans de Goede Date: Thu Jul 19 15:57:20 2007 +0200 hwmon: fscher read control bugfix Here is a small fscher bugfix for 2.6.23 merging, lifted from my other fscher work, as requested by Jean. The current driver has a control sysfs attribute, which shows the contents of the control register, but the underlying global_control value in the data structure currently never gets filled with the actual contents of this register. Signed-off-by: Hans de Goede Acked-by: Jean Delvare Signed-off-by: Mark M. Hoffman commit 517ef0d2a470c69b303c66694b0c45f31ff716cd Author: Jean Delvare Date: Fri Jul 13 14:29:41 2007 +0200 hwmon: (adm1031) Fix broken links in documentation The Analog Devices chip information pages moved to a different location. Signed-off-by: Jean Delvare Signed-off-by: Mark M. Hoffman commit 4688902dab051eae24a57e4e549d119c332f7ab0 Author: Adrian Bunk Date: Sun Jul 29 16:57:01 2007 +0200 hwmon: make abituguru3_read_increment_offset() static abituguru3_read_increment_offset() can become static. Signed-off-by: Adrian Bunk Acked-by: Hans de Goede Signed-off-by: Mark M. Hoffman commit f5744e3775171b8deb2164577d3861968e33f72e Author: Guillaume Chazarain Date: Fri Jul 27 01:04:22 2007 +0200 hwmon: Fix regression caused by typo in lm90.c The commit http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=32c82a934759b2c9939c9e25865c2d7d1204b9e8 broke lm90 for my (Asus V6VA) laptop. Before 2.6.23-rc1 and with the following patch, I get: [g ~]$ sensors max6657-i2c-0-4c Adapter: SMBus I801 adapter at 0400 M/B Temp: +64°C (low = +0°C, high = +127°C) CPU Temp: +78.9°C (low = +73.2°C, high = +88.2°C) M/B Crit: +105°C (hyst = +95°C) CPU Crit: +105°C (hyst = +95°C) Which regressed into: [g ~]$ sensors No sensors found! Make sure you loaded all the kernel drivers you need. Try sensors-detect to find out which these are. zsh: 2701 exit 1 sensors and dmesg contains: i2c-adapter i2c-0: Unsupported chip (man_id=0x4D, chip_id=0x4D). It seems to be a typo, as address 0X4F is mentionned nowhere else in the file, and my chip is actually at 0x4C. Signed-off-by: Guillaume Chazarain Signed-off-by: Jean Delvare Signed-off-by: Mark M. Hoffman commit 1bed24b9785f7f5255c120f194e98343b998f6ce Author: Martin Szulecki Date: Mon Jul 9 11:41:36 2007 -0700 hwmon: (applesmc) add temperature sensors set for Macbook Signed-off-by: Nicolas Boichat Acked-by: Jean Delvare Cc: Martin Szulecki Cc: Dmitry Torokhov Signed-off-by: Andrew Morton Signed-off-by: Mark M. Hoffman commit 794f5434942614e5e8f70b9d65b9275e11ad1510 Author: Hans de Goede Date: Sun Jul 22 20:15:31 2007 +0200 hwmon: fscher control update bugfix Here is another small fscher bugfix for 2.6.23 merging, this was caught by Jean while reviewing my other bugfix. The driver was updating its copy of the control register as if it was clear to write, but its regular read/write. This patch fixes this. Signed-off-by: Hans de Goede Acked-by: Jean Delvare Signed-off-by: Mark M. Hoffman commit c0f31403fe87cd2813dabb9b33107ceb56b84667 Author: Juerg Haefliger Date: Fri Jul 20 14:16:47 2007 -0700 hwmon: fix dme1737 temp fault attribute Fix temp?_fault attribute. The temp was incorrectly compared against 0x0800 rather than 0x8000. Only the upper 8 bits are compared as the datasheet doesn't specify what happens to the lower bits in case of a diode fault. Signed-off-by: Juerg Haefliger Acked-by: Jean Delvare Signed-off-by: Mark M. Hoffman commit d0546128980c18748010c758903b02909e634830 Author: Jean Delvare Date: Sun Jul 22 12:09:48 2007 +0200 hwmon: Add missing __devexit tags in various drivers On Sun, 22 Jul 2007 00:30:56 +0200, Gabriel C wrote: > I noticed this warnings on current git: > > drivers/hwmon/pc87360.c:1082: warning: 'pc87360_remove' defined but not used > drivers/hwmon/sis5595.c:580: warning: 'sis5595_remove' defined but not used > drivers/hwmon/smsc47m1.c:608: warning: 'smsc47m1_remove' defined but not used > drivers/hwmon/via686a.c:648: warning: 'via686a_remove' defined but not used > drivers/hwmon/vt8231.c:755: warning: 'vt8231_remove' defined but not used Signed-off-by: Jean Delvare Signed-off-by: Mark M. Hoffman commit 2977110192cdd90d7ffeb12a83eb5e8bdf0cb1c5 Author: Jesper Juhl Date: Sat Jul 21 17:02:01 2007 +0200 hwmon: clean up duplicate includes This patch cleans up duplicate includes in drivers/hwmon/ Signed-off-by: Jesper Juhl Signed-off-by: Mark M. Hoffman commit acf346a311588e4cb659c183b9e312fa313dbb7f Author: Hans de Goede Date: Tue Jul 24 23:36:00 2007 +0200 hwmon: fix lm78 detection regression Here is a small but important bugfix to the lm78 driver. I found out about this problem because a Fedora user filed a bug that the lm78 driver no longer worked on his system: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=249428 The problem is that sometime ago the isa lm78 detection was made more stringent and this new code now checks the chip-id, but does not accept a chip-id of 20h, however a chip-id of 20h is valid, and is excepted in the main probe function of the driver, see line 551. This fixed also makes the isa detection code accept the chip-id of 0x20 fixing this issue. Signed-off-by: Hans de Goede Signed-off-by: Mark M. Hoffman commit f08a34874f93d5081c735ffcb2f9071be9b5d270 Author: Hans-Jürgen Koch Date: Mon Jul 23 09:36:57 2007 +0200 hwmon: fix array overruns in lm93.c This fixes an array overflow bug. We have 4 pairs of min/max temperature limits, not 3. Signed-off-by: Hans J. Koch Acked-by: Jean Delvare Signed-off-by: Mark M. Hoffman commit add77c64ca8b00dae5dc0a6be9eb89f1514d21ea Author: Krzysztof Helt Date: Sun Jul 8 22:43:00 2007 +0200 hwmon: add support for THMC50 and ADM1022 This patch adds support for THMC50 and ADM1022 hardware monitoring chips. Signed-off-by: Krzysztof Helt Acked-by: Jean Delvare Signed-off-by: Mark M. Hoffman commit 216fcd29af47ab53ffd87e82139fcc4095e34d91 Author: Kenji Kaneshige Date: Mon Jul 30 11:56:30 2007 +0900 [IA64] Fix possible race in destroy_and_reserve_irq() Currently, destroy_and_reserve_irq() sets irq_status[irq] UNUSED using clear_irq_vector() and sets irq_status[irq] RSVD using reserve_irq(). But there is a race window because vector_lock is once released between them. This patch fixes this race window. Signed-off-by: Kenji Kaneshige Signed-off-by: Tony Luck commit c4c376f7e16deeba8f0542eabcaca19b712e7be1 Author: Kenji Kaneshige Date: Mon Jul 30 11:54:41 2007 +0900 [IA64] Fix registered interrupt check Fix the problem that interrupts are not initialized correctly at PCI hotplug or driver reloading time. By vector domain change, the iosapic_rte_info structure was changed to be on the iosapic_intr_info[irq].rtes list even after the interrupts are unregistered. So iosapic_intr_info[irq].rtes list must not be checked to see if there are registered interrupts (RTEs) on the irq. We must check iosapic_intr_info[irq].count counter instead. Signed-off-by: Kenji Kaneshige Signed-off-by: Tony Luck commit 1b30859b8d42b3161954a81da7f96055a4617220 Author: Jesper Juhl Date: Mon Jul 30 00:28:42 2007 +0200 [IA64] Remove a few duplicate includes This patch removes a few duplicate includes from arch/ia64/ Acked-by: Jes Sorensen Signed-off-by: Jesper Juhl Signed-off-by: Tony Luck commit 8a2d8693054a6cd86cc959576322b30e66e31208 Author: Avi Kivity Date: Thu Jul 19 18:32:43 2007 +0300 [IA64] Allow smp_call_function_single() to current cpu This removes the requirement for callers to get_cpu() to check in simple cases. i386 and x86_64 already received a similar treatment. Signed-off-by: Avi Kivity Signed-off-by: Tony Luck commit 056e6d89aab51babaa5f75c16832b19c55a68bc4 Author: Sam Ravnborg Date: Mon Jul 30 22:50:13 2007 +0200 [IA64] fix a few section mismatch warnings Fix the following section mismatch warnings: WARNING: vmlinux.o(.text+0x41902): Section mismatch: reference to .init.text:__alloc_bootmem (between 'ia64_mca_cpu_init' and 'ia64_do_tlb_purge') WARNING: vmlinux.o(.text+0x49222): Section mismatch: reference to .init.text:__alloc_bootmem (between 'register_intr' and 'iosapic_register_intr') WARNING: vmlinux.o(.text+0x62beb2): Section mismatch: reference to .init.text:__alloc_bootmem_node (between 'hubdev_init_node' and 'cnodeid_get_geoid') Signed-off-by: Sam Ravnborg Signed-off-by: Tony Luck commit 74c5b597e9c2fc728c61582afdea4971a5c8ed8f Author: Greg Kroah-Hartman Date: Mon Jul 30 11:26:38 2007 -0700 modules: better error messages when modules fail to load due to a sysfs problem. This helps people when debugging problems like the ones that were in the recent -mm releases. Signed-off-by: Greg Kroah-Hartman commit f285ea058001ef534f9e53a21aad42c2952bbad5 Author: Cornelia Huck Date: Fri Jul 27 13:41:10 2007 +0200 kobject: update documentation Update kobject documentation: - Update structure definitions. - Remove documentation of removed struct subsystem. (First shot, uevent_ops probably need some documentation as well.) Signed-off-by: Cornelia Huck Signed-off-by: Greg Kroah-Hartman commit a56156489dbdc60ac39a77b8a988d375b2f273a0 Author: Randy Dunlap Date: Fri Jul 27 09:36:26 2007 -0700 kset: kernel-doc cleanups Removed kernel-doc marker (/**) from struct kset -- each struct member still needs annotation. Corrected one parameter name so that kernel-doc matches the macro. Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 27907689eedd799a6a0c1a2f18a3563c6e9e9767 Author: Cornelia Huck Date: Wed Jul 25 09:58:08 2007 +0200 driver core: revert "device" link creation check driver core: revert "device" link creation check Commit 2ee97caf0a6602f749ddbfdb1449e383e1212707 introduced an extra check on when to create the "device" symlink. Unfortunately, this breaks input, so let's revert to the old behaviour. Signed-off-by: Cornelia Huck Acked-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman commit a2765e81d8a58f66e21176ca2a8fd6012b187994 Author: Juan Lang Date: Tue Jul 24 13:24:19 2007 -0700 stable_api_nonsense.txt: Disambiguate the use of "this" by using "that" to refer to the syscall interface Signed-off-by: Greg Kroah-Hartman commit 30b1b28001fef09ea31b1c87e8e8acb962d109e2 Author: Randy Dunlap Date: Mon Jul 23 21:05:02 2007 -0700 Fix Doc/sysfs-rules typos Fix typos only (spelling, grammar, duplicate words, etc.). Signed-off-by: Randy Dunlap Cc: Kay Sievers commit 42e61f4adbf18c7b0218b91d32fd6ee1f978d82c Author: Randy Dunlap Date: Mon Jul 23 21:42:11 2007 -0700 kernel-doc fixes for PCI and drivers/base/ Fix undocumented function parameters in PCI and drivers/base. Warning(linux-2.6.23-rc1//drivers/pci/pci.c:1526): No description found for parameter 'rq' Warning(linux-2.6.23-rc1//drivers/base/firmware_class.c:245): No description found for parameter 'bin_attr' Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit ff2ee8cf30199bb625706a43d9cc3bd1ff5ebe42 Author: Greg Kroah-Hartman Date: Tue Apr 9 12:14:34 2002 -0700 kobject: put kobject_actions in kobject.h This prevents the extern declaration in the driver core. Cc: Kay Sievers Cc: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit cd030c4cb3ee0cd4f0589a5f723d358cca1f7a9a Author: Cornelia Huck Date: Fri Jul 20 13:58:13 2007 +0200 kobject: fix link error when CONFIG_HOTPLUG is disabled Leaving kobject_actions[] in kobject_uevent.c, but putting it outside the #ifdef looks indeed like the best solution to me. This way, we avoid adding #ifdef CONFIG_HOTPLUG into core.c, when all other functions called do not need such a thing. Signed-off-by: Cornelia Huck Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman commit 8b43626f0cdfb3154c57d52e732679c9d3484369 Author: Tsugikazu Shibata Date: Thu Jul 19 11:24:54 2007 +0900 HOWTO: sync Japanese HOWTO Signed-off-by: Tsugikazu Shibata Signed-off-by: Greg Kroah-Hartman commit 6e3eb0993837fb4a597b88a7e28ce3847cb5777c Author: IKEDA, Munehiro Date: Thu Jul 19 11:36:56 2007 +0900 HOWTO: adjust translation header of Japanese stable_api_nonsense.txt Signed-off-by: IKEDA, Munehiro Signed-off-by: Greg Kroah-Hartman commit a9475226977917afd5a85621f8a3d7f380a9da31 Author: David Brownell Date: Mon Jul 30 12:31:07 2007 -0700 USB: "sparse" cleanups for usb gadgets This removes complaints about the gadget stack which are generated by the currrent "sparse": it doesn't like the fact that zero is the null pointer. (Last I checked, C guarantees that's correct ...) Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit bc71e479cdb2caab9b4473f7ad508c3fcb142486 Author: Adam Kropelin Date: Sun Jul 29 11:03:29 2007 -0400 usb-serial: Fix edgeport regression on non-EPiC devices Fix serious regression on non-EPiC edgeport usb-serial devices. Baud rate and MCR/LCR registers are not being written on these models due to apparent copy-n-paste errors introduced with EPiC support. Failure reported by Nick Pasich . Signed-off-by: Adam Kropelin Cc: stable Signed-off-by: Greg Kroah-Hartman commit 1060bce7b74c8914999a067803ec659949ff682e Author: David Brownell Date: Sat Jul 21 11:43:35 2007 -0700 USB: more pxa2xx_udc dead code removal Remove some more dead code from the pxa2xx_udc driver: support for a no-longer-undocumented hardware "test mode". Newer chips made this the default, evidently as the best workaround for deep silicon bugs. The interest was that this seemed to be the only way to kick in the (documented!) double buffering capability. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit 4f47bb567368f732989058e26dc282f7fe931dab Author: Milinevsky Dmitry Date: Fri Jul 20 16:58:53 2007 -0700 USB: NIKON D50 is an unusual device This short patch allows NIKON D50 to be mounted as UMS[unusual device] on Linux niam 2.6.22-rc7-cfs-v18 #2 PREEMPT Tue Jul 3 22:35:53 EEST 2007 i686 Intel(R) Celeron(R) M processor 1.50GHz GenuineIntel GNU/Linux, some previous kernels... lsusb -v Bus 001 Device 006: ID 04b0:0409 Nikon Corp. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x04b0 Nikon Corp. idProduct 0x0409 bcdDevice 1.00 iManufacturer 1 NIKON iProduct 2 NIKON DSC D50 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 Device Status: 0x0001 Self Powered Signed-off-by: Milinevsky Dmitry Cc: Oliver Neukum Cc: Alan Stern Cc: Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 82a24e688585752f08fdae7209075b215215a673 Author: Adrian Bunk Date: Sun Jul 29 16:59:02 2007 +0200 USB: drivers/usb/serial/sierra.c: make 3 functions static This patch makes three needlessly global functions static. Signed-off-by: Adrian Bunk Cc: Kevin Lloyd Signed-off-by: Greg Kroah-Hartman commit 3ddad8232c3802f7a602d1ea24938a8067114479 Author: Oliver Neukum Date: Tue Jul 24 15:13:42 2007 +0200 USB: fix BUG: sleeping function called from invalid context at /home/jeremy/hg/xen/paravirt/linux/drivers/usb/core/urb.c:524, in_atomic():1, irqs_disabled():0 Clearly there's a bug in drivers/usb/serial/usb-serial.c:usb_serial_put(). It shouldn't call kref_put() while holding a spinlock. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit f42449003114cc17cda0458c14f2deadfadf9f63 Author: Alan Cox Date: Thu Jul 26 19:01:10 2007 +0100 USB: mct_u232: Convert to proper speed handling API Signed-off-by: Alan Cox Acked-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman commit c6d61269f530e3f7da6bad32e8b42ab7993a5927 Author: Alan Cox Date: Thu Jul 26 18:57:52 2007 +0100 digi_acceleport: Drag the driver kicking and screaming into coding style - The outbreak of acute bracketitus has been cured - The belief that brackets should have spaces everywhere likewise - Various other coding style tweaks - Use baud rates not Bfoo in the speed setup switch Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 01e96d282a062f09923fea33e1039719925d09b8 Author: Alan Cox Date: Thu Jul 26 18:54:12 2007 +0100 cp2101: Remove broken termios optimisation, use proper speed API I've also enabled the commented out support for 7200, 14400, 55854, 127117 and 3686400 baud as you can now set such rates in the kernel. Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 67f5dde3d4961032aeeecaf0d1c7a9232bef3f44 Author: Alan Stern Date: Tue Jul 24 18:23:23 2007 -0400 USB: Fix a bug in usb_start_wait_urb This patch (as941) fixes a bug recently added to the USB synchronous API. The status of a completed URB must be preserved separately across a completion callback. Also, the actual_length value isn't available until after the URB has fully completed. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit a12b8db02035673153bbf19bb3641a08bed9e4b8 Author: David Brownell Date: Sun Jul 22 15:13:13 2007 -0700 USB: fix scatterlist PIO case (IOMMU) Update the scatterlist logic so that PIO options are also disabled when an IOMMU may have coalesced pages during dma_map_sg() ... it's not just HIGHMEM that can make trouble supporting both PIO and DMA based host controller drivers. There also seems to be a cross-arch issue here, with 64bit powerpc not using an IOMMU define ... and its IOMMU_VMERGE config can always be overridden on the kernel command line. So this is better, but still imperfect. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman commit e31c18804f584dd838a752f6628e8c15bd7a3372 Author: Oliver Neukum Date: Mon Jul 23 08:58:39 2007 +0200 USB: fix usb_serial_suspend(): buggy code Am Montag 23 Juli 2007 schrieb Adrian Bunk: > Commit ec22559e0b7a05283a3413bda5d177e42c950e23 added the following > function to drivers/usb/serial/usb-serial.c: > [..] > > The Coverity checker spotted the inconsequent NULL checking for "serial". > > Looking at the code it also doesn't seem to have been intended to always > return 0. Coverity is right. The check for NULL is wrongly done and the error return is lost. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit 209b3cfd538e7d56d228cf6daf0b27e2cc26c6c2 Author: Oliver Neukum Date: Mon Jul 30 12:09:59 2007 +0200 USB: yet another quirky device another quirky scanner. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit d2298136f17f8fa9fd381d3b688d36e7dbbf0284 Author: Johann Felix Soden Date: Sat Jul 28 17:10:33 2007 +0200 USB: Add CanonScan LiDE30 to the quirk list This patch adds CanoScan N1240U/LiDE30 (Scanner) to the list of quirky USB devices. Signed-off-by: Johann Felix Soden Signed-off-by: Greg Kroah-Hartman commit 81ac0dd1914bab227bfdb05baa2362597e39a48c Author: Oliver Neukum Date: Fri Jul 20 11:34:53 2007 +0200 USB: even more quirks The number of quirky devices seems to be large. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit 3f423787ec87bbe601cb3242d6065616098c6cfb Author: Randy Dunlap Date: Thu Jul 19 10:21:37 2007 -0700 USB: usb.h kernel-doc additions Add kernel-doc entries in for: Warning(linux-2.6.22-git12//include/linux/usb.h:162): No description found for parameter 'intf_assoc' Warning(linux-2.6.22-git12//include/linux/usb.h:268): No description found for parameter 'intf_assoc[USB_MAXIADS]' Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit fb745354f3b1e79e5c24de0de680b31b835bbfaf Author: Oliver Neukum Date: Thu Jul 19 13:00:15 2007 +0200 USB: more quirky devices our list of devices which cannot be suspended keeps growing. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman commit c17b49ec31fea27c1dad8a224f5aaa1897519e37 Author: Jeremy Katz Date: Thu Jul 19 09:37:42 2007 -0400 USB: Don't let usb-storage steal Blackberry Pearl The Blackberry Pearl can run in two modes; a usb-storage only mode and a mode that allows access via mass storage and to its database. The berry_charge module will set the device to dual mode and thus we should ignore its native mode if that module is built Signed-off-by: Jeremy Katz Signed-off-by: Phil Dibowitz Signed-off-by: Greg Kroah-Hartman commit 1aebb781e339b04c64e140860447f2a66c08417f Author: Juergen Beisert Date: Thu Jul 19 17:02:59 2007 +0200 USB: devices misc: Trivial patch to build the IOWARRIOR when it is selected in Kconfig Trivial patch to build the IOWARRIOR when it is selected in Kconfig. Signed-off-by: Juergen Beisert Signed-off-by: Greg Kroah-Hartman commit 78d1e02fac0595a8aa8a5064d1bd0c0ea55b22b0 Author: Dave Olson Date: Fri Jul 20 14:41:26 2007 -0700 IB/ipath: Workaround problem of errormask register being overwritten On some system hardware, we are seeing moderately common cases of the chip errormask register being overwritten due to a chip bug in iba6120 that is triggered by a vendor-specific PCIe broadcast message. This patch merely checks periodically, and corrects it if needed (the overwrite can cause us to not get error and hardware error interrupts). Also, make dd->ipath_errormask the one, true canonical source for kr_errormask, and remove references to ipath_ignorederrs as it is currently unused. Signed-off-by: Dave Olson Signed-off-by: John Gregor Signed-off-by: Roland Dreier commit 3810f2a84e994e295e181eb9bd4b8007f611b5eb Author: Dave Olson Date: Fri Jul 20 14:23:37 2007 -0700 IB/ipath: Fix some issues with buffer cancel and sendctrl register update There was confused use of INFINIPATH_S_PIOBUFAVAILUPD (value) and IPATH_S_PIOBUFAVAILUPD (bit position). Also, some callers of ipath_cancel_sends() need kr_sendctrl restored, and some want to do it later. Signed-off-by: Dave Olson Signed-off-by: Roland Dreier commit cf5b60aa4098a1ba169a8f69eb576ac02194bea6 Author: Dave Olson Date: Fri Jul 20 13:34:02 2007 -0700 IB/ipath: Use faster put_tid_2 routine after initialization At one time the ipath_minrev field was initialized prior to the ipath_init_iba6120_funcs call, but that is no longer the case, so the slower put_tid routine was always being used. Signed-off-by: Dave Olson Signed-off-by: Roland Dreier commit f17fddc9e266281bbb4d384b031e1521e1f2510e Author: Dave Olson Date: Fri Jul 20 12:50:55 2007 -0700 IB/ipath: Remove unsafe fastrcvint code from interrupt handler The fastrcvint code's purpose was to avoid reading the interrupt status if kernel packets were in the receive queue (to reduce overhead). Because intstatus was not read, we could miss the error interrupt bit indicating freeze mode, since it only delivers a single interrupt, even if still pending after intclear is written. This patch removes that unsafe optimization. Signed-off-by: Dave Olson Signed-off-by: Roland Dreier commit c196d80f994ef4ffefd5a7c62e3f42bd75d538bc Author: Micah Gruber Date: Tue Jul 24 10:44:56 2007 +0800 Fix a potential NULL pointer dereference in mace_interrupt() in drivers/net/pcmcia/nmclan_cs.c This patch fixes a potential null dereference bug where we dereference DEV before a null check. This patch simply moves the dereferencing after the null check. Signed-off-by: Micah Gruber Signed-off-by: Jeff Garzik commit 85e27831941e0d907be8e244202a293d74730e12 Author: Komuro Date: Mon Jul 23 21:36:06 2007 +0900 PATCH kernel 2.6.22] PCMCIA-NETDEV : modify smc91c92_cs.c to become SMP safe protect smc_start_xmit, smc_interrupt and media_check by spin_lock. Signed-off-by: Komuro Signed-off-by: Jeff Garzik commit 573608e4cde2aa3b76120685fba945d889b2ba57 Author: Ramkrishna Vepa Date: Wed Jul 25 19:43:12 2007 -0700 S2io: Increment received packet count correctly - Fix to increment the received packet count correctly. (Resending; Removed HTML sections in the patch) Signed-off-by: Santosh Rastapur Signed-off-by: Jeff Garzik commit 0a65a65d7ad6e2e647bc59844eb92829b0384b7d Author: Ramkrishna Vepa Date: Wed Jul 25 19:40:33 2007 -0700 S2io: Fix crash when resetting adapter - Removed the call to pci_set_power_state to reset the adapter as it was resulting in system crash on some platforms. (Resending; Removed HTML sections in the patch) Signed-off-by: Santosh Rastapur Signed-off-by: Jeff Garzik commit 5b952a09140d1a9f432ae272a96727cb2b2bbcd8 Author: Ramkrishna Vepa Date: Wed Jul 25 19:35:09 2007 -0700 S2io: Mask spurious interrupts - Mask single and double bit ETQ ecc errors to inhibit spurious interrupts. (Resending; Removed HTML sections in the patch) Signed-off-by: Santosh Rastapur Signed-off-by: Jeff Garzik commit b6627672a8d130014bfcf93bdf98253498633798 Author: Veena Parat Date: Mon Jul 23 02:39:43 2007 -0400 S2IO: Implementing review comments from old patches - Incorporated Jeff Garzik's comments on coding standards Signed-off-by: Veena Parat Signed-off-by: Jeff Garzik commit 491abf2537a01bef52bffc67001f59cce1fd0047 Author: Veena Parat Date: Mon Jul 23 02:37:14 2007 -0400 S2IO: Checking for the return value of pci map function - Checking for the return value of pci map function - Implemented Francois Romieu's comments on eliminating code duplication using goto - Implemented Francois Romieu's comments on using a temporary variable for accessing statistics structure Signed-off-by: Veena Parat Signed-off-by: Jeff Garzik commit eccb8628ab97f5b43e04425e983db1495fc0ef32 Author: Veena Parat Date: Mon Jul 23 02:23:54 2007 -0400 S2IO: Removing MSI support from driver - Removed MSI support from driver - unused feature - Replaced request_mem_region with pci_request_regions Signed-off-by: Veena Parat Signed-off-by: Jeff Garzik commit 6d517a27d5b376c769f48213044b658042b5f07a Author: Veena Parat Date: Mon Jul 23 02:20:51 2007 -0400 S2IO: Removing 3 buffer mode support from the driver - Removed 3 buffer mode support from driver - unused feature - Incorporated Jeff Garzik's comments on elimination of inline typecasting - Code cleanup : Removed a few extra spaces Signed-off-by: Veena Parat Signed-off-by: Jeff Garzik commit 2c6a3f72688acbc640b3be8083dac0e90354f0cf Author: Dhananjay Phadke Date: Fri Jul 27 23:12:11 2007 +0530 netxen: drop redudant spinlock Some leftover code that makes use of adapter->lock in tx_timeout function, which resets the interface under this lock. In close() when the workqueue is flushed, prints the warning about sleeping with interrupts disabled (when spinlock debug is enabled). The lock was required with private netxen IOCTLs, which were removed a while ago. Signed-off-by: Jeff Garzik commit e01872af1d05cf4327c8e519b14e368b72921ccf Author: dhananjay@netxen.com Date: Wed Jul 25 20:13:12 2007 +0530 netxen: Fix interrupt handling for multiport adapters This patch fixes masking of interrupts on multiport adapters. Also disables interrupts upon ifdown interface. The wrong mask could result in interrupt flood after interface is down. Signed-off-by: Dhananjay Phadke Signed-off-by: Jeff Garzik commit 7eec517c444fad699d3fc66d110440edee1fb0ed Author: dhananjay@netxen.com Date: Wed Jul 25 20:13:11 2007 +0530 netxen: re-init station address after h/w init This is a workaround for firmware bug with 2nd port of multiport adapter, where MAC address is reset. Driver just needs to overwrite it with the value read from PROM. Signed-off-by: Dhananjay Phadke Signed-off-by: Jeff Garzik commit 49afc59ca6aa41e55cffdef39f94c774bce55bd8 Author: Valerie Henson Date: Mon Jul 30 13:10:52 2007 -0600 tulip: Remove tulip maintainer Remove Val Henson as tulip maintainer and let her roam free, FREE! Signed-off-by: Val Henson Signed-off-by: Jeff Garzik commit ef756b3e56c68a4d76d9d7b9a73fa8f4f739180f Author: Ayaz Abdulla Date: Thu Jul 26 23:46:00 2007 -0400 forcedeth: mac address correct In older chipsets, the mac address was stored in reversed order. However, in newer chipsets, the mac address is in correct order. This patch takes those newer chipsets into account and does not rely on a special bit setup by BIOS'. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit b9daf6c0ff7a0bc9560ed40d560d028ec5d98771 Author: Kumar Gala Date: Thu Jul 26 00:52:34 2007 -0500 gfar: Fix modpost warning Fix the following modpost warning: WARNING: vmlinux.o(.init.text+0x1aa6c): Section mismatch: reference to .exit.text:gfar_mdio_exit (between 'gfar_init' and 'gfar_mdio_init') Signed-off-by: Kumar Gala Signed-off-by: Jeff Garzik commit 55b7b629b78cf82389baf604efcdd2b83b998ca7 Author: Jarek Poplawski Date: Thu Jul 26 14:44:01 2007 +0200 lib8390: comment on locking by Alan Cox Additional explanation of problems with locking by Alan Cox. Signed-off-by: Jarek Poplawski Cc: Alan Cox Cc: Paul Gortmaker Cc: Jeff Garzik Signed-off-by: Jeff Garzik commit 9351982b25ace7ee5ed82b6f4a7ea1151f31d267 Author: Micah Gruber Date: Mon Jul 23 16:05:52 2007 +0800 Fix a potential NULL pointer dereference in write_bulk_callback() in drivers/net/usb/pegasus.c This patch fixes a potential null dereference bug where we dereference pegasus before a null check. This patch simply moves the dereferencing after the null check. Signed-off-by: Micah Gruber Signed-off-by: Jeff Garzik commit 0a0f2c87cd689857f2b0b82c5322650f7d9b5923 Author: Adrian Bunk Date: Sun Jul 29 12:40:48 2007 -0300 V4L/DVB (5939): dvb-pll: make struct dvb_pll_fcv1236d static The fcv1236d support patch was created before the "dvb: remove static dependencies on dvb-pll" patch was applied, but the fcv1236d patch didn't get merged until after the fact. struct dvb_pll_fcv1236d can become static. Signed-off-by: Adrian Bunk Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 4bc4365291bc27798d760c87f3aada39d9a74f43 Author: Adrian Bunk Date: Fri Jul 27 11:09:57 2007 -0300 V4L/DVB (5933): Dvb-usb/af9005-fe.c: error check fixes This patch: - adds a missing error check and - removes an error check that could never be true Both spotted by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Acked-by: Luca Olivetti Signed-off-by: Mauro Carvalho Chehab commit 639ffd2d9038d34725b752147a0f1a8536146851 Author: Luca Olivetti Date: Fri Jul 27 10:27:47 2007 -0300 V4L/DVB (5932): Af9005 fix tuner module unload This patch removes the useless tuner field and avoids a double free of the tuner (either mt2060 or qt1010). Signed-off-by: Luca Olivetti Signed-off-by: Mauro Carvalho Chehab commit be9a5c7d9a04349c137610c72e3a74a5352dccf5 Author: Hans Verkuil Date: Sun Jul 22 11:12:26 2007 -0300 V4L/DVB (5920): ivtv: fix incorrect fw size report. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 5a338c38ced1569a2e67e3c163505cc95429d508 Author: Hans Verkuil Date: Sun Jul 22 09:39:56 2007 -0300 V4L/DVB (5918): ivtv: fix TV-out VBI handling, only reset on last close. While decoding (MPEG or YUV) is active or when VBI output is in use, then do not clear the VBI output of the saa7127. Only after the last user is gone can we clear it. This fixes the case where playback was stopped, another channel was chosen and playback was restarted, while /dev/vbi16 was used to set the WSS (widescreen) setting. Without this fix the WSS was reset on every stop instead of just keeping the last value. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 0b3e29e6d75cbfb8417f449555d40921fd656186 Author: Hans Verkuil Date: Sun Jul 22 08:49:32 2007 -0300 V4L/DVB (5917): ivtv: improve mailbox responsiveness. First try polling for the result of a mailbox command, then switch to a test/sleep loop. Also reduce the sleep time from 10 ms to 1 ms. Improves the responsiveness of the mailbox handling. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit ac4251445d7302697814351f1d9f548f5aa49342 Author: Hans Verkuil Date: Sun Jul 22 08:46:38 2007 -0300 V4L/DVB (5916): ivtv: fix pause/continue/play handling Pausing a decoder followed by a Play command would do nothing. Fixed. Pausing a decoder running at non-standard speed following by a Continue would reset the speed to 100%. Fixed. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit bc147135bc410bdd9da684646af75a188d882d56 Author: Trent Piepho Date: Mon Jul 23 06:58:31 2007 -0300 V4L/DVB (5900): usbvision: fix bugs [sg]_register functions s_register was assigning the return code to (unsigned)reg->val, rather than errCode, which it what it would return. Except reg->val can't be < 0, so it would never actually return an error. g_register never actually put the value it read into reg->val. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit cf784d554fdb94f21671830135dba56b507126cf Author: Trent Piepho Date: Sat Jul 21 21:26:40 2007 -0300 V4L/DVB (5899): bttv: Fix Viewcast Osprey 440 support Various gpio and mux settings for the Osprey 440 weren't correct. Fix them and provide some documentation about how the gpios work. The osprey eeprom routine wasn't run for the 440, add it. It was also crap, re-written to be better. Add the Osprey 440 to the Bt878 ALSA driver's whitelist. Currently the sample rate is fixed at 32kHz, as the driver doesn't support different rates for digital input mode, though the card can select the rate from 32, 44.1, or 48 kHz via gpio. Setting the audio gain via ALSA isn't supported yet; a userspace tool that programs the X9221 via i2c-dev must be used. The Bt878 digital audio format isn't programmed correctly for the CS5331A ADC used, resulting in extremely garbled sound. That is fixed in a followup patch. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab commit 89f50bf63778018708e29ca0a874c72cb81f77f9 Author: Anssi Hannula Date: Fri Jul 20 17:18:10 2007 -0300 V4L/DVB (5893): DVB: fix includes of video.h when __KERNEL__ is undefined linux/dvb/video.h uses types __u32, __s32, etc., but does not include any header defining those when __KERNEL__ is not defined. Fix this by including asm/types.h when __KERNEL__ is not defined. Signed-off-by: Anssi Hannula Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 9896bbc1972e3a0595f06c23692a20150a789308 Author: Trent Piepho Date: Tue Jul 17 18:29:45 2007 -0300 V4L/DVB (5891): zr36067: Turn off raw capture properly When raw capture was turned off, the current capturing frame (v4l_grab_frame) wasn't reset to NO_GRAB_ACTIVE. If capture was turned back on, the driver would think this frame was currently being captured, and wait for it to complete before starting a new frame. The hardware on the other hand would not be actively capturing a frame. The result was the driver would wait forever for v4l_grab_frame to be captured. Some calls to zr36057_set_memgrab(0) were missing spin-locks, which have been added. Signed-off-by: Trent Piepho Acked-by: Ronald S. Bultje Signed-off-by: Mauro Carvalho Chehab commit 603d6f2c8f9f3604f9c6c1f8903efc2df30a000f Author: Trent Piepho Date: Tue Jul 17 18:29:44 2007 -0300 V4L/DVB (5890): zr36067: Add UYVY, RGB555X, RGB565X, and RGB32 formats Add support for the UYVY and the other big endian output formats. The driver was naming formats based on the host endianess. This is different that all the other drivers appear to work and not what software appears to expect. Use ARRAY_SIZE() to find the the size of the zoran_formats array. Change the way the driver handles setting the video format register. Rather than use some if and switch statements to set to register by looking at the format id, the format list simply has a field with the proper bits to set. Adds a bit of ifdef to make a driver without V4L1 support more possible. Also create a macro for defining formats that handles vl41 and/or vl42 support to avoid repeated ifdefs in the format list. Signed-off-by: Trent Piepho Acked-by: Ronald S. Bultje Signed-off-by: Mauro Carvalho Chehab commit bb2e033913f14b2f9f6745e206c3ea5df481b4fd Author: Trent Piepho Date: Tue Jul 17 18:29:43 2007 -0300 V4L/DVB (5888): zr36067: Driver was not returning correct image size The driver was returning the size of the (fixed) buffer it allocated as the sizeimage field in the v4l2 pixel format, rather than the actual size of the image. For example, a 192x128 YUYV image is 49152 bytes but the driver would always return 131072 bytes since if that was the size of the v4l buffer. This violates the v4l2 spec, which says that sizeimage should be the actual size of the image for uncompressed formats. It also caused mplayer to crash. Signed-off-by: Trent Piepho Acked-by: Ronald S. Bultje Signed-off-by: Mauro Carvalho Chehab commit e42af83f4874ebb2c6af59a05dbe5d45114fb0ed Author: Trent Piepho Date: Tue Jul 17 18:29:43 2007 -0300 V4L/DVB (5887): zr36067: Fix poll() operation During uncompressed capture, the poll() function was looking the wrong frame. It was using the frame the driver was going to capture into next (pend_tail), when it should have been looking at the next frame to be de-queued with DQBUF/SYNC (sync_tail). It also wasn't looking in the right spot. It was looking at the file handle's copy of the buffer status, rather than the driver core copy. The interrupt routine marks frames as done in the driver core copy, the file handle copy isn't updated. So even if poll() looked at the right frame, it would never see it transition to done and return POLLIN. The compressed capture code has this same problem, looking in fh->jpg_buffers when it should have used zr->jpg_buffers. There was some logic to detect when there was no current capture in process nor any frames queued and try to return an error, which ends up being a bad idea. It's possible to call select() from one thread while no capture is in process, or no frames queued, and then start a capture or queue frames from another thread. The buffer state variables are protected by a spin lock, which the code wasn't acquiring. That is fixed too. Signed-off-by: Trent Piepho Acked-by: Ronald S. Bultje Signed-off-by: Mauro Carvalho Chehab commit c812b67ca4ed13fa5ec60f06c4ed8f648722a186 Author: Trent Piepho Date: Tue Jul 17 18:29:42 2007 -0300 V4L/DVB (5886): zr36067: Fix problem setting norms The zr36067 driver doesn't make a distinction between the different sub-types of NTSC, PAL, or SECAM norms. For example, when the enum std ioctl returns the PAL standard it returns PAL_BG|PAL_DK|PAL_H|PAL_I. When setting the norm, it required the bitmask to match exactly the set of norms used during the enumeration. If just one norm was specified, for example PAL_BG or NTSC_M, it would fail. This violates the V4L2 spec, "VIDIOC_S_STD accepts *one* or more flags..." The key thing to realize is that V4L2_STD_PAL is not one bit, it is multiple bits. It's ok to call S_STD with any *one* of those bits, but the driver was requiring *all* of them. This fixes the S_STD function so that it will accept any set of one or more PAL norms as PAL, and the same for NTSC and SECAM. Signed-off-by: Trent Piepho Acked-by: Ronald S. Bultje Signed-off-by: Mauro Carvalho Chehab commit 80ba80a9bf25d251237694c3fcee850a73324532 Author: Alexey Dobriyan Date: Mon Jul 30 23:08:46 2007 +0400 Fallout from "Remove fs.h from mm.h" patch While I was busy compile-testing my patch, ENOSYS sneaked into pm.h leading to some compile-breakages mostly on ia64 and some mips configs. Signed-off-by: Alexey Dobriyan Signed-off-by: Linus Torvalds commit 2208b764c14d0f1ad63da64b1a42db6077b6fe42 Author: Peter Zijlstra Date: Thu Jul 26 20:54:34 2007 +0200 slub: fix bug in slub debug support We ClearSlabDebug() before the last SlabDebug() check. Clear it later. Signed-off-by: Peter Zijlstra Signed-off-by: Christoph Lameter commit 02febdf7f62f2fbfa89ca9dc5d929beea89c96b1 Author: Peter Zijlstra Date: Thu Jul 26 20:01:38 2007 +0200 slub: add lock debugging check Ingo noticed that the SLUB code does include the lock debugging free check. Signed-off-by: Peter Zijlstra Acked-by: Ingo Molnar Acked-by: Pekka Enberg Signed-off-by: Christoph Lameter commit 63332a9d16e7dede26d252af3f9c4304b51e7974 Author: Stephen Rothwell Date: Mon Jul 30 20:12:37 2007 +1000 APM support depends on CONFIG_PM_SLEEP Commit 296699de6bdc717189a331ab6bbe90e05c94db06 broke building APM support if CONFIG_PM_SLEEP is not set. Reported by Toralf Förster Signed-off-by: Stephen Rothwell [ Simplified a bit as suggested by Rafael. -Linus ] Signed-off-by: Linus Torvalds commit cfcd8c4fbc4c84c286d3ebae8648914016c1ea4c Author: Hirokazu Takata Date: Mon Jul 30 22:00:47 2007 +0900 m32r: build fix for removing fs.h from mm.h This patch fixes the m32r build after the commit "Remove fs.h from mm.h" was merged (commit 4e950f6f0189f65f8bf069cf2272649ef418f5e4). Signed-off-by: Hirokazu Takata Signed-off-by: Linus Torvalds commit b8a94b3dece0cdfdb42460bab28c454f71d3fa1d Author: Mike Cruse Date: Mon Jul 30 16:29:29 2007 +1000 setup and detect 2nd phy on MCF5275 in FEC driver Added code to recognize the second interface on M5275 boards. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit f861d62e12d3f732a36634e9e6b3b7b0112fef60 Author: Greg Ungerer Date: Mon Jul 30 16:29:16 2007 +1000 clean up reading of ICR register in FEC driver On the MCF5272, there is no need to read the ICR before writing it : the bit 4n+3 is a write-enable for the bits 4n,4n+1 and 4n+2. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit cb84d6e7ad10bd679df1787a1fc9624432a73317 Author: Greg Ungerer Date: Mon Jul 30 16:29:09 2007 +1000 fix work queues in FEC driver Fix the work queue code in the FEC driver. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit f0d3464f5cd1002ad5c1f1116cc84a8815c41476 Author: Greg Ungerer Date: Mon Jul 30 16:28:57 2007 +1000 remove unused config symbol from FEC driver Removed unused CONFIG symbol and its conditional code from FEC driver. Pointed out by Robert P. J. Day . Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 080853afe3da90d3c54a2eea8a9ab6a2f814fb0e Author: Greg Ungerer Date: Mon Jul 30 16:28:46 2007 +1000 include cacheflush.h in FEC driver Include cacheflush.h to get definitions for cache functions used in this code. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit c1f193a7aed1b468617bb26075777c0c2f4f597a Author: David S. Miller Date: Mon Jul 30 00:17:12 2007 -0700 [SPARC64]: Fix show_stack() when stack argument is NULL. It didn't handle that case at all, and now dump_stack() can be implemented directly as show_stack(current, NULL) Signed-off-by: David S. Miller commit f623f388e4f83c01ac23f228247a6a4b9cc71111 Author: David S. Miller Date: Sun Jul 29 02:10:37 2007 -0700 [SPARC]: Fix serial console node string creation. The string setting code depends upon the original value of the "skip" variable, not the one that gets modified by the node traversal loop. Based upon a patch by Mark Fortescue. Signed-off-by: David S. Miller commit 8163904e660a30be800a3361df69bf9dad3b44cd Author: David S. Miller Date: Sun Jul 29 00:50:42 2007 -0700 [SPARC]: Mark SBUS framebuffer ioctls as IGNORE in compat_ioctl.c They are handled in a ->compat_ioctl() handler, so it's just noise when compat_ioctl.c warns which occurs when they are used on non-SBUS framebuffer devices. Signed-off-by: David S. Miller commit 9b539c03b2cb16879ce2e808ce5c687da1dba27c Author: David S. Miller Date: Sat Jul 28 23:39:30 2007 -0700 [SPARC64]: asm-sparc64/floppy.h needs linux/pci.h It uses pci_dev, calls pci_map_*(), etc. Signed-off-by: David S. Miller commit ad7ad57c6127042c411353dddb723765964815db Author: David S. Miller Date: Fri Jul 27 22:39:14 2007 -0700 [SPARC64]: Fix conflicts in SBUS/PCI/EBUS/ISA DMA handling. Fully unify all of the DMA ops so that subordinate bus types to the DMA operation providers (such as ebus, isa, of_device) can work transparently. Basically, we just make sure that for every system device we create, the dev->archdata 'iommu' and 'stc' fields are filled in. Then we have two platform variants of the DMA ops, one for SUN4U which actually programs the real hardware, and one for SUN4V which makes hypervisor calls. This also fixes the crashes in parport_pc on sparc64, reported by Meelis Roos. Signed-off-by: David S. Miller commit c7f439b99efbea74c70a5531f92566db5a6731f2 Author: David S. Miller Date: Fri Jul 27 22:31:46 2007 -0700 [VIDEO]: Fix OOPS in all SBUS framebuffer drivers. All of these drivers use a silly: struct all_info { struct fb_info info; struct foo_par par; }; struct all_info *all = kzalloc(sizeof(*all), GFP_KERNEL); all->info.par = &all->par; etc. etc. code sequence, basically replicating the provided framebuffer_alloc()/framebuffer_release(), and doing it badly. Not only is this massive code duplication, it also caused a bug in that we weren't setting the fb_info->device pointer which results in an OOPS when fb_is_primary_device() runs. Fix all of this by using framebuffer_{alloc,release}() and passing in "&of_device->dev" as the device pointer. Signed-off-by: David S. Miller commit a0afaa6ab12cf696d170c22a8fdfd88c3e33555c Author: David S. Miller Date: Fri Jul 27 14:40:27 2007 -0700 [SPARC64]: Handle mostek clock type in mini_rtc driver. Now that drivers/sbus/char/rtc.c is sparc32 only, we need this. Signed-off-by: David S. Miller commit 3961bae0ac030a70ae2e0578270203889021f1a1 Author: Mark Fortescue Date: Thu Jul 26 00:17:22 2007 -0700 [PARTITION]: Sun/Solaris VTOC table corrections Start doing VTOC validation before using its contents. The validation is adjusted so as not to break existing setups that do not set the VTOC version, sanity and partition count entries. VTOC tables with more than 8 partitions will NOT be used. Signed-off-by: Mark Fortescue Signed-off-by: David S. Miller commit b65f0755fd08c92f377fb434076865284283e2c1 Author: Mark Fortescue Date: Wed Jul 25 23:45:10 2007 -0700 [SPARC]: Fix floppy on some sun4c systems. Add in code to support an 82077 FDC on sun4c systems. There is a problem with spurious interrupts but it does apear to work. Testing on my SS2 (82072A FDC) shows that the floppy driver is not 100% with sun4c any way (any spurious interrupt kills it, requiring a reboot to recover). Signed-off-by: Mark Fortescue Signed-off-by: David S. Miller commit a2d6ea0180531b5ace2dc1e64b6e22465ed51267 Author: David S. Miller Date: Wed Jul 25 23:30:16 2007 -0700 [SPARC64]: Fix sun4u PCI config space accesses on sun4u. Don't provide fake PCI config space for sun4u. Also, put back the funny host controller space handling that at least Sabre needs. You have to read PCI host controller registers at their nature size otherwise you get zeros instead of correct values. Signed-off-by: David S. Miller commit b84d879639f83d35d3fcd909222522c928bf974b Author: Mark Fortescue Date: Wed Jul 25 18:30:08 2007 -0700 [PARTITION] MSDOS: Fix Sun num_partitions handling. Correct the Solaris x86 number of partitions (slices) is a way that is backward compatible with the earlier size. This works without a new VTOC structure definition as the timestamp and v_asciilabel fields in the VTOC are not used by the kernel yet. Signed-off-by: Mark Fortescue Signed-off-by: David S. Miller commit cce933bc831c451f48ca26e5b0d9bfdfbfb327f8 Author: David S. Miller Date: Wed Jul 25 16:51:20 2007 -0700 [SPARC]: Update defconfig. Signed-off-by: David S. Miller commit 05ff09706bacc92ccadde3a74289118789581475 Author: Rusty Russell Date: Mon Jul 30 10:25:22 2007 +1000 Make lguest compile with CONFIG_BLOCK=n and CONFIG_NET=n Gabriel C reports lguest doesn't compile with CONFIG_BLOCK=n. Fix this by introducing a config var for the block device, which depends on LGUEST && BLOCK. Do the same for the net driver, rather then depending gratuitously on CONFIG_NET. Signed-off-by: Rusty Russell Cc: Gabriel C Signed-off-by: Linus Torvalds commit 4e950f6f0189f65f8bf069cf2272649ef418f5e4 Author: Alexey Dobriyan Date: Mon Jul 30 02:36:13 2007 +0400 Remove fs.h from mm.h Remove fs.h from mm.h. For this, 1) Uninline vma_wants_writenotify(). It's pretty huge anyway. 2) Add back fs.h or less bloated headers (err.h) to files that need it. As result, on x86_64 allyesconfig, fs.h dependencies cut down from 3929 files rebuilt down to 3444 (-12.3%). Cross-compile tested without regressions on my two usual configs and (sigh): alpha arm-mx1ads mips-bigsur powerpc-ebony alpha-allnoconfig arm-neponset mips-capcella powerpc-g5 alpha-defconfig arm-netwinder mips-cobalt powerpc-holly alpha-up arm-netx mips-db1000 powerpc-iseries arm arm-ns9xxx mips-db1100 powerpc-linkstation arm-assabet arm-omap_h2_1610 mips-db1200 powerpc-lite5200 arm-at91rm9200dk arm-onearm mips-db1500 powerpc-maple arm-at91rm9200ek arm-picotux200 mips-db1550 powerpc-mpc7448_hpc2 arm-at91sam9260ek arm-pleb mips-ddb5477 powerpc-mpc8272_ads arm-at91sam9261ek arm-pnx4008 mips-decstation powerpc-mpc8313_rdb arm-at91sam9263ek arm-pxa255-idp mips-e55 powerpc-mpc832x_mds arm-at91sam9rlek arm-realview mips-emma2rh powerpc-mpc832x_rdb arm-ateb9200 arm-realview-smp mips-excite powerpc-mpc834x_itx arm-badge4 arm-rpc mips-fulong powerpc-mpc834x_itxgp arm-carmeva arm-s3c2410 mips-ip22 powerpc-mpc834x_mds arm-cerfcube arm-shannon mips-ip27 powerpc-mpc836x_mds arm-clps7500 arm-shark mips-ip32 powerpc-mpc8540_ads arm-collie arm-simpad mips-jazz powerpc-mpc8544_ds arm-corgi arm-spitz mips-jmr3927 powerpc-mpc8560_ads arm-csb337 arm-trizeps4 mips-malta powerpc-mpc8568mds arm-csb637 arm-versatile mips-mipssim powerpc-mpc85xx_cds arm-ebsa110 i386 mips-mpc30x powerpc-mpc8641_hpcn arm-edb7211 i386-allnoconfig mips-msp71xx powerpc-mpc866_ads arm-em_x270 i386-defconfig mips-ocelot powerpc-mpc885_ads arm-ep93xx i386-up mips-pb1100 powerpc-pasemi arm-footbridge ia64 mips-pb1500 powerpc-pmac32 arm-fortunet ia64-allnoconfig mips-pb1550 powerpc-ppc64 arm-h3600 ia64-bigsur mips-pnx8550-jbs powerpc-prpmc2800 arm-h7201 ia64-defconfig mips-pnx8550-stb810 powerpc-ps3 arm-h7202 ia64-gensparse mips-qemu powerpc-pseries arm-hackkit ia64-sim mips-rbhma4200 powerpc-up arm-integrator ia64-sn2 mips-rbhma4500 s390 arm-iop13xx ia64-tiger mips-rm200 s390-allnoconfig arm-iop32x ia64-up mips-sb1250-swarm s390-defconfig arm-iop33x ia64-zx1 mips-sead s390-up arm-ixp2000 m68k mips-tb0219 sparc arm-ixp23xx m68k-amiga mips-tb0226 sparc-allnoconfig arm-ixp4xx m68k-apollo mips-tb0287 sparc-defconfig arm-jornada720 m68k-atari mips-workpad sparc-up arm-kafa m68k-bvme6000 mips-wrppmc sparc64 arm-kb9202 m68k-hp300 mips-yosemite sparc64-allnoconfig arm-ks8695 m68k-mac parisc sparc64-defconfig arm-lart m68k-mvme147 parisc-allnoconfig sparc64-up arm-lpd270 m68k-mvme16x parisc-defconfig um-x86_64 arm-lpd7a400 m68k-q40 parisc-up x86_64 arm-lpd7a404 m68k-sun3 powerpc x86_64-allnoconfig arm-lubbock m68k-sun3x powerpc-cell x86_64-defconfig arm-lusl7200 mips powerpc-celleb x86_64-up arm-mainstone mips-atlas powerpc-chrp32 Signed-off-by: Alexey Dobriyan Signed-off-by: Linus Torvalds commit 673d5b43daa00b42759cecc6b0760b8bf6be80d2 Author: Len Brown Date: Sat Jul 28 03:33:16 2007 -0400 ACPI: restore CONFIG_ACPI_SLEEP Restore the 2.6.22 CONFIG_ACPI_SLEEP build option, but now shadowing the new CONFIG_PM_SLEEP option. Signed-off-by: Len Brown [ Modified to work with the PM config setup changes. ] Signed-off-by: Linus Torvalds commit 296699de6bdc717189a331ab6bbe90e05c94db06 Author: Rafael J. Wysocki Date: Sun Jul 29 23:27:18 2007 +0200 Introduce CONFIG_SUSPEND for suspend-to-Ram and standby Introduce CONFIG_SUSPEND representing the ability to enter system sleep states, such as the ACPI S3 state, and allow the user to choose SUSPEND and HIBERNATION independently of each other. Make HOTPLUG_CPU be selected automatically if SUSPEND or HIBERNATION has been chosen and the kernel is intended for SMP systems. Also, introduce CONFIG_PM_SLEEP which is automatically selected if CONFIG_SUSPEND or CONFIG_HIBERNATION is set and use it to select the code needed for both suspend and hibernation. The top-level power management headers and the ACPI code related to suspend and hibernation are modified to use the new definitions (the changes in drivers/acpi/sleep/main.c are, mostly, moving code to reduce the number of ifdefs). There are many other files in which CONFIG_PM can be replaced with CONFIG_PM_SLEEP or even with CONFIG_SUSPEND, but they can be updated in the future. Signed-off-by: Rafael J. Wysocki Signed-off-by: Linus Torvalds commit b0cb1a19d05b8ea8611a9ef48a17fe417f1832e6 Author: Rafael J. Wysocki Date: Sun Jul 29 23:24:36 2007 +0200 Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION Replace CONFIG_SOFTWARE_SUSPEND with CONFIG_HIBERNATION to avoid confusion (among other things, with CONFIG_SUSPEND introduced in the next patch). Signed-off-by: Rafael J. Wysocki Signed-off-by: Linus Torvalds commit 647e50f38345525d8261c295a0d0629dcea23a9b Author: Wim Van Sebroeck Date: Sun Jul 29 18:46:50 2007 +0000 [WATCHDOG] Fix pcwd_init_module crash Fix for the problem detected by Ingo Molnar: enabling CONFIG_PCWATCHDOG=y crashes bzImage bootup. The reason for this can be found in drivers/makefile We first do: obj-y += char/ and later we do: obj-y += base/ block/ misc/ mfd/ net/ media/ So if we put a platform or isa or usb bus driver in char/watchdog (which is called from the Makefile in drivers/char/Makefile) then we didn't have the different device drivers initialized yet (they are in drivers/base and drivers/usb and ...) This fix makes sure that we compile the watchdog drivers after drivers/base, drivers/misc, drivers/pci and drivers/usb. We also do the compile after hwmon because in the future the watchdog temperature support will use the hwmon system. Signed-off-by: Wim Van Sebroeck commit 1655fc2e12ed7d208403c043428291b83aa833bb Author: Hoang-Nam Nguyen Date: Sat Jul 28 21:47:53 2007 -0700 IB/ehca: Move extern declarations from .c files to .h files Make sure declarations stay in sync with definitions by keeping all extern declarations in common .h files. Signed-off-by: Hoang-Nam Nguyen Signed-off-by: Roland Dreier commit e0f5d99e8dec3f157d3fff96c1e6a8b4abd24050 Author: Roland Dreier Date: Sat Jul 28 20:52:44 2007 -0700 IB/mlx4: Whitespace fix Remove extra dumb-looking blank line that snuck in somehow. Signed-off-by: Roland Dreier commit 6c8dca5d53f95009d4fff00195bf38f277dc4366 Author: Rusty Russell Date: Fri Jul 27 13:42:52 2007 +1000 Provide timespec to guests rather than jiffies clock. A non-periodic clock_event_device and the "jiffies" clock don't mix well: tick_handle_periodic() can go into an infinite loop. Currently lguest guests use the jiffies clock when the TSC is unusable. Instead, make the Host write the current time into the lguest page on every interrupt. This doesn't cost much but is more precise and at least as accurate as the jiffies clock. It also gets rid of the GET_WALLCLOCK hypercall. Also, delay setting sched_clock until our clock is set up, otherwise the early printk timestamps can go backwards (not harmful, just ugly). Signed-off-by: Rusty Russell Signed-off-by: Linus Torvalds commit a8a11f06973fa63ad692a8f97694cb5eeb70b3f3 Author: Rusty Russell Date: Fri Jul 27 13:35:43 2007 +1000 Fix lguest bzImage loading with CONFIG_RELOCATABLE=y Jason Yeh sent his crashing .config: bzImages made with CONFIG_RELOCATABLE=y put the relocs where the BSS is expected, and we crash with unusual results such as: lguest: unhandled trap 14 at 0xc0122ae1 (0xa9) Relying on BSS being zero was merely laziness on my part, and unfortunately, lguest doesn't go through the normal startup path (which does this in asm). Signed-off-by: Rusty Russell Signed-off-by: Linus Torvalds commit dfbab7540569679a91cf43208eff4ef3f4500a5f Author: Greg Ungerer Date: Fri Jul 27 10:38:16 2007 +1000 m68knommu: remove crap from machdep.h Removed unused dead crap from machdep.h header. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 15368d82251df279beb2a16085af492b2f3fdbd4 Author: Greg Ungerer Date: Fri Jul 27 10:38:01 2007 +1000 m68knommu: fix declaration of mach_sched_init Make declaration of mach_sched_init match definition (which is in arch/m68knommu/kernel/setup.c). Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 778f3dd5a13c9e1642e0b2efea4b769387a70afa Author: David Miller Date: Fri Jul 27 22:58:37 2007 -0700 Fix procfs compat_ioctl regression It is important to only provide the compat_ioctl method if the downstream de->proc_fops does too, otherwise this utterly confuses the logic in fs/compat_ioctl.c and we end up doing the wrong thing. Signed-off-by: David S. Miller Acked-by: Alexey Dobriyan Signed-off-by: Linus Torvalds commit 040b3a2df2dd26c3e401823f3b0ce3fe99e966c5 Author: Peter Zijlstra Date: Sat Jul 28 00:55:18 2007 +0200 audit: fix two bugs in the new execve audit code copy_from_user() returns the number of bytes not copied, hence 0 is the expected output. axi->mm might not be valid anymore when not equal to current->mm, do not dereference before checking that - thanks to Al for spotting that. Signed-off-by: Peter Zijlstra Tested-by: Steve Grubb Signed-off-by: Linus Torvalds commit 0af3678f7c5872836d1cc8d7c659abd62c3c5ae7 Author: Al Viro Date: Fri Jul 27 14:24:33 2007 +0100 rip some includes from linux/interrupt.h Signed-off-by: Al Viro Acked-by: Jeff Garzik Signed-off-by: Linus Torvalds commit 2d954d06acbcf9a5f7668a1897850c9b7be6b8f3 Author: Al Viro Date: Fri Jul 27 14:23:44 2007 +0100 fix preprocessor idiocy in reiserfs #x blocks expansion of macro argument, but it won't do you any good if it's already been expanded... As it is, RFALSE(cond, ....) ended up with stringified _expanded_ cond. Real fun when cond contains something like le32_to_cpu() and you are on a big-endian box... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 986c76036adb0b12cbe1bf1ce1f75586585ee227 Author: Al Viro Date: Fri Jul 27 14:19:52 2007 +0100 more include order horrors ... because somebody had added preempt.h -> list.h, resulting in asm/system.h -> hardirq.h -> preempt.h -> list.h -> asm/system.h on m68k, with smp_wmb() used in list.h and defined in asm/system.h below the include of hardirq.h. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 0a9c2df263b2ef487e6b4015644cc18012d7411b Author: Eric Miao Date: Thu Jul 26 02:01:04 2007 +0100 [ARM] 4527/1: pxa: fix pxa27x ac97 cold reset in ASoC due to CKEN change due to CKEN_xxx definition and pxa_set_cken() change, the pxa27x ac97 cold reset is broken in ASoC, fixed to use bit index instead of bit mask Signed-off-by: eric miao Signed-off-by: Russell King commit 03e5386e1e6e4f19c18c33fb69afd43054d448b2 Author: Quinn Jensen Date: Fri Jul 27 23:30:55 2007 +0100 [ARM] 4530/1: MXC: fix elf_hwcap compile breakage as in iop13xx MXC needs the same change as IOP. See [ARM] 4494/1 or commit 7dea1b20066cd30fb54da7e686b16b5e38b46b2d An undefined reference to elf_hwcap prevents linkage, due to changes made by f884b1cf578e079f01682514ae1ae64c74586602 and d1cbbd6b413510c6512f4f80ffd48db1a8dd554a Removing processor.h removes the extern definition of elf_hwcap, which fixes the link issue, but forgets cpu_relax(). So, instead, we'll call barrier() directly. Cc: Lennert Buytenhek Cc: Catalin Marinas Acked-by: Ross Wille Signed-off-by: Quinn Jensen Signed-off-by: Russell King commit cc46f659705c722ae6020dd7411c4ac39cec4408 Author: Kristoffer Ericson Date: Thu Jul 26 07:46:17 2007 +0100 [ARM] 4529/1: [HP Jornada 7XX] - Fix jornada720.c to use SSP driver This fixes the jornada720.c file : * ifdef for CONFIG_SA1100_JORNADA720_SSP since we dont want to include anything not selected in menyconfig. * add documentation for init for future reference * change platform driver name from jornada720_mcu -> jornada_ssp. * change maintainer in file. Signed-off-by: Kristoffer Ericson Signed-off-by: Russell King commit 05d989f948cda7398c9d5089d78a122502e644d2 Author: Hoang-Nam Nguyen Date: Sat Jul 28 08:36:32 2007 -0700 IB/ehca: Fix include order to better match kernel style Include headers after headers. Signed-off-by: Hoang-Nam Nguyen Signed-off-by: Roland Dreier commit 09120a8cd38dbdb0c9a59ff8456cf88b510e6baa Author: Prakash, Sathya Date: Tue Jul 24 15:49:05 2007 +0530 [SCSI] mpt fusion: Changes in mptctl.c for logging support This patch contains changes in mptctl.c to support logging in MPT fusion drivers The changes are majorly in debug printks, the existing debugprintk are modified accroding to new debug macros defined in the file mptbdebug.h signed-off-by: Sathya Prakash Signed-off-by: James Bottomley commit d6ecdd638aa840604b87195f2097cabbd095092c Author: Prakash, Sathya Date: Tue Jul 24 15:47:41 2007 +0530 [SCSI] mpt fusion: Changes in mptfc.c mptlan.c mptsas.c and mptspi.c for logging support This patch contains changes in mptfc.c, mptlan.c, mptsas.c and mptspi.c to support logging in MPT fusion drivers. The changes are majorly in debug printks, the existing debugprintk are modified accroding to new debug macros defined in the file mptbdebug.h signed-off-by: Sathya Prakash Signed-off-by: James Bottomley commit 0172e2e14c3c1df10ec0fa31d9f41c1bc3a472f3 Author: Jack Morgenstein Date: Thu Jul 26 11:16:58 2007 +0300 mlx4_core: Remove kfree() in mlx4_mr_alloc() error flow mlx4_mr_alloc() doesn't actually allocate mr (it just initializes the pointer that the caller passes in), so it shouldn't free it if an error occurs. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier commit 6757d6b4c0701866bbf2ac02c397f78879b75e58 Author: Prakash, Sathya Date: Wed Jul 25 11:14:01 2007 +0530 [SCSI] mpt fusion: Changes in mptscsih.c for logging support This patch contains changes in mptscsih.c to support logging in MPT fusion drivers. The changes are majorly in debug printks, the existing debugprintk are modified accroding to new debug macros defined in the file mptbdebug.h A new sysfs attribute is added to retrieve and modify the debug level. signed-off-by: Sathya Prakash Signed-off-by: James Bottomley commit 436ace725f35eb9af16b1986e3e9d776d384b7db Author: Prakash, Sathya Date: Tue Jul 24 15:42:08 2007 +0530 [SCSI] mpt fusion: Changes in mptbase.c for logging support This patch contains changes in mptbase.c to support logging in MPT fusion drivers. The changes are majorly in debug printks, the existing debugprintk are modified accroding to new debug macros defined in the file mptbdebug.h A new module parameter mpt_debug_level is added to pass the debug level as module parameter. signed-off-by: Sathya Prakash Signed-off-by: James Bottomley commit 5c1b91b9923d1b3d33576e391ff7b587bdff7a3e Author: Prakash, Sathya Date: Tue Jul 24 15:40:08 2007 +0530 [SCSI] mpt fusion: logging support in Kconfig, Makefile, mptbase.h and addition of mptdebug.h This patch adds a new file mptdebug.h in the fusion source directory, which contains different debug macros. The existing debug macros and flags are removed from the mptbase.h and Makefile In Kconfig a new configuration parameter FUSION_LOGGING is added to enable/disable the logging support during compile time. signed-off-by: Sathya Prakash Signed-off-by: James Bottomley commit 4e8e6ee380c3858151165d7455b4954782f145a0 Author: Tom Tucker Date: Tue Jul 24 14:31:52 2007 -0500 RDMA/amso1100: Initialize the wait_queue_head_t in the c2_qp structure Fix a crash if the driver has to wait for a QP reference to be dropped when destroying the QP. Signed-off-by: Ethan Burns Acked-by: Tom Tucker Signed-off-by: Roland Dreier commit 92631fa4d0afa64b82144eab714fbf2f4049dabe Author: Jesper Juhl Date: Sat Jul 28 01:13:33 2007 +0200 [SCSI] libsas: Fix potential NULL dereference in sas_smp_get_phy_events() In sas_smp_get_phy_events() we never test if the call to alloc_smp_req(RPEL_REQ_SIZE) succeeds or fails. That means we run the risk of dereferencing a NULL pointer if it does fail. Far better to test if we got NULL back and in that case return -ENOMEM just as we already do for the other memory allocation in that function. Signed-off-by: Jesper Juhl Signed-off-by: James Bottomley commit 99d4d0a9f251a87e0710c6f1fb46ac0d4bce12cb Author: Paul Mundt Date: Sat Jul 28 23:45:43 2007 +0900 [SCSI] bsg: Fix build for CONFIG_BLOCK=n BLK_DEV_BSG was added outside of the if BLOCK check, which allows it to be enabled when CONFIG_BLOCK=n. This leads to many screenlengths of errors, starting with a parse error on the request_queue_t definition. Obviously this wasn't intended for CONFIG_BLOCK=n usage, so just move the option back in to the block. Caught with a randconfig on sh. Signed-off-by: Paul Mundt Acked-by: Jens Axboe Acked-by: FUJITA Tomonori Signed-off-by: James Bottomley commit 9859c1aa7e16822c574e1be89d61fbfe6188b50f Author: Salyzyn, Mark Date: Fri Jul 27 10:29:26 2007 -0400 [SCSI] aacraid: fix Sunrise Lake reset handling The patch is *much* smaller than the description. I am attempting to answer to those that want to understand an issue that was reported in May this year. If a Sunrise Lake based card that requires an alternate reset mechanism is set up to ignore the commanded IOP_RESET it reports 0x00000010 (IOP_RESET ignored) instead of 0x3803000F (use alternate reset mechanism to reset all cores), and thus the reset platform function decides to switch to IOP_RESET_ALWAYS because the reset platform function parameters indicate that we *need* to reset the card. IOP_RESET_ALWAYS then responds with the 0x3803000F return code, but alas we treat this as an error instead of using the alternate reset mechanism (put a 0x03 into the register offset 0x38). The reset fails, but the fact that the IOP_RESET_ALWAYS command was issued has put the card in a purposeful shutdown state in preparation for the alternate hardware reset to be applied. Yuck. IOP_RESET is ignored in internal production cards, typically to ensure that we catch all adapter lockup issues without the driver progressing further, so this would not appear to be a field issue and thus this patch was destined to be only in the internal Adaptec source tree. IOP_RESET_ALWAYS is reserved for kexec/kdump/FirmwareUpdate/AutomatedTestFrames so we did not function as expected in any case. Also in the past we have had OEMs specifically request that cards not be resetable after a BlinkLED/FirmwareAssert for one reason or another and To head off the possibility that the Sunrise Lake based cards would suffer a similar fate, we propose the enclosed fix. Yinghai Lu of SUN had a pre-production card with IOP_RESET disabled when he reported an issue to the linux kernel list back in May regarding a kexec problem resulting from this reset being ignore. His fix was to update the Firmware to one that did not ignore the IOP_RESET. Previous kernels did not attempt to reset the adapter and that is why it surfaced as a regression in his hands. The current list of aacraid based cards that use Sunrise Lake: 9005:0285:9005:02b5 Adaptec 5445 9005:0285:9005:02b6 Adaptec 5805 9005:0285:9005:02b7 Adaptec 5085 9005:0285:9005:02c3 Adaptec 51205 9005:0285:9005:02c4 Adaptec 51605 9005:0285:9005:02ce Adaptec 51245 9005:0285:9005:02cf Adaptec 51645 9005:0285:9005:02d0 Adaptec 52445 9005:0285:9005:02d1 Adaptec 5405 9005:0285:9005:02b8 ICP ICP5445SL 9005:0285:9005:02b9 ICP ICP5085SL 9005:0285:9005:02ba ICP ICP5805SL 9005:0285:9005:02c5 ICP ICP5125SL 9005:0285:9005:02c6 ICP ICP5165SL 9005:0285:108e:7aac SUN STK RAID REM 9005:0285:108e:0286 SUN STK RAID INT 9005:0285:108e:0287 SUN STK RAID EXT 9005:0285:108e:7aae SUN STK RAID EM All of these are publicly released with IOP_RESET enabled. So there is no immediate need for this patch. Signed-off-by: Mark Salyzyn Signed-off-by: James Bottomley commit b90f90d2303f27b9b241ab78419a07b41de5ac62 Author: Salyzyn, Mark Date: Fri Jul 27 09:48:49 2007 -0400 [SCSI] aacraid: add SCSI SYNCHONIZE_CACHE range checking Customer running an application that issues SYNCHRONIZE_CACHE calls directly noticed the broad stroke of the current implementation in the aacraid driver resulting in multiple applications feeding I/O to the storage causing the issuing application to stall for long periods of time. By only waiting for the current WRITE commands, rather than all commands, to complete; and those that are in range of the SYNCHRONIZE_CACHE call that would associate more tightly with the issuing application before telling the Firmware to flush it's dirty cache, we managed to reduce the stalling. The Firmware itself still flushes all the dirty cache associated with the array ignoring the range, it just does so in a more timely manner. Signed-off-by: Mark Salyzyn Signed-off-by: James Bottomley commit 80b1c7bdc1cc69a804f416761f5faafcb6284086 Author: akpm@linux-foundation.org Date: Fri Jul 27 13:30:02 2007 -0700 [SCSI] add easyRAID to the no report luns blacklist According to http://bugzilla.kernel.org/show_bug.cgi?id=5953, the easyRAID returns rubbish to REPORT LUNS. Cc: Natalie Protasevich Cc: Hans-Christian Armingeon Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit 1e4dcd22efa7d24f637ab2ea3a77dd65774eb005 Author: Yoann Padioleau Date: Fri Jul 27 11:44:42 2007 +0200 [IA64] Compare pointer against NULL, not '0' When comparing a pointer, it's clearer to compare it to NULL than to 0. Signed-off-by: Yoann Padioleau Signed-off-by: Tony Luck commit 7a6c813594c9eb25a9afbcbd30c9865e38ee6f39 Author: Tony Luck Date: Fri Jul 27 15:35:43 2007 -0700 [IA64] Fix build failure in fs/quota.c b716395e2b8e450e294537de0c91476ded2f0395 added code to handle a compatability issue with 32bit quota tools, but the new compat routines are only needed when CONFIG_COMPAT=y (and with this set to 'n' there are compilation problems since some new typedefs are not visible). Reported by Doug Chapman. Fix tuned by a cast of thousands (Andi, Andreas, Arthur, HPA, Willy) Signed-off-by: Tony Luck commit 7091138fb762aed22317b4ff91eb211e7da3865c Author: Thomas Renninger Date: Fri Jul 27 15:38:31 2007 -0700 [IA64] Use new acpi_device_id struct for HID init in ia64/hp/common/sba_iommu.c Forgot to adjust this one with the acpi autoloading patches in commit 8c8eb78f673c07b60f31751e1e47ac367c60c6b7 Acked-by: Myron Stowe Acked-by: Len Brown Signed-off-by: Thomas Renninger Signed-off-by: Tony Luck commit 27c868c2233fe0d34b21ceb5287bb2f7617f1095 Author: Matthew Wilcox Date: Thu Jul 26 10:56:23 2007 -0400 [SCSI] advansys: lindent and other large, uninteresting changes - Run Lindent - Move advansys_detect and advansys_release to the end of the file - Split advansys_board_found out of advansys_detect - Rename a few variables, such as shp to shost and pci_devp to pdev - Turn STATIC into static Signed-off-by: Matthew Wilcox Signed-off-by: James Bottomley commit 0f82cb9211f800f77636af11f0670e5fc6de6256 Author: James Bottomley Date: Thu Jul 26 17:13:10 2007 -0400 [SCSI] aic79xx, aic7xxx: Fix incorrect width setting Wide transfers are required for every setting of PPR apart from QAS. It seems the DV code starts at the minimum, which turns on DT and Wide regardless of the setting of max_width. Redo the PPR and period setting routines to respect max_width (i.e. start at period = 10 if it is zero). This fixes bugzilla 8366 Acked-by: "Freels, James D." Signed-off-by: James Bottomley commit 281afe1947d855661754850de29d7530b2ff18dc Author: Seokmann Ju Date: Thu Jul 26 13:43:34 2007 -0700 [SCSI] qla2xxx: fix to honor ignored parameters in sysfs attributes This is a patch to fix 'segmentation fault' issue which was initiated by Richard Lary . Thanks again Richard. - on following sysfs attritute function, changes have made so that both count and offset input parameters are honored by the functions. = qla2x00_sysfs_read_nvram() = qla2x00_sysfs_read_vpd() - made changes so that NVRAM data to be cached to minimize H/W accesses during agent querying of the driver's. Signed-off-by: Seokmann Ju Signed-off-by: James Bottomley commit c835e3727b87115f98c612a5ecb8882826d2537e Author: Salyzyn, Mark Date: Thu Jul 26 14:20:02 2007 -0400 [SCSI] aacraid: draw line in sand, sundry cleanup and version update Minor unimportant cuttings from the floor bundled in with a version stamp update. Only controversial change is the dropping of Alan Cox copyright on the nark.c module since that file has no code written by him in it. Signed-off-by: Mark Salyzyn Signed-off-by: James Bottomley commit b6d44fe9582b9d90a0b16f508ac08a90d899bf56 Author: Mike Christie Date: Thu Jul 26 12:46:47 2007 -0500 [SCSI] iscsi_tcp: Turn off bounce buffers It was found by LSI that on setups with large amounts of memory we were bouncing buffers when we did not need to. If the iscsi tcp code touches the data buffer (or a helper does), it will kmap the buffer. iscsi_tcp also does not interact with hardware, so it does not have any hw dma restrictions. This patch sets the bounce buffer settings for our device queue so buffers should not be bounced because of a driver limit. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit e07264071f7f2b02a2973cb28d9fdf5eb8866cc1 Author: Mike Christie Date: Thu Jul 26 12:46:48 2007 -0500 [SCSI] libiscsi: fix cmd seqeunce number checking We should not be checking the cmd windown for just handling r2t responses. And if the window closes in on us, always have scsi-ml requeue the command from our queuecommand function. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 7974392c0b0d4e7a2a17ca3597d51a29b9841aa5 Author: Mike Christie Date: Thu Jul 26 12:46:46 2007 -0500 [SCSI] iscsi_tcp, ib_iser Enable module refcounting for iscsi host template This prevents the iscsi modules from being unloaded while there are active mounts from an iscsi target. Signed-off-by: Olaf Kirch Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 464bb99ea448dc2f017be9150a8be9ab1f021979 Author: Mike Christie Date: Thu Jul 26 12:46:45 2007 -0500 [SCSI] libiscsi: make sure session is not blocked when removing host When we logout we block the session since we are not taking any more commands, but when we call remove host we want to make sure any IO that got queued up and blocked gets failed upwards quickly, so we unblock the session and fail it. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 5aaaf9f0ed11882fe7c6bc4202f78da1baa8caba Author: Heiko Carstens Date: Fri Jul 27 12:29:22 2007 +0200 [S390] Fix sclp_vt220 error handling. Also convert to slab_is_available() as an indicator if get_zeroed_page() will work or not. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 4434a38c37dd30e5cd01456a136367a43d8da2dd Author: Cornelia Huck Date: Fri Jul 27 12:29:21 2007 +0200 [S390] cio: Reorganize initialization. - Localize more of the init calls in init_channel_subsystem(). - Print a warning if init_channel_subsystem() failed. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky commit 303fa9e39605c1d56971dd22cd04d2186dc42c98 Author: Cornelia Huck Date: Fri Jul 27 12:29:20 2007 +0200 [S390] cio: Make CIO_* macros safe if dbfs are not available. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky commit e556bbbd9d2ff2b158915945ac82e2ac7def4d2f Author: Cornelia Huck Date: Fri Jul 27 12:29:19 2007 +0200 [S390] cio: Clean up messages. - Remove unneeded messages. - Move some messages into the debug feature. - Use dev_* where appropriate. - Use "cio: " prefix consistently. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky commit b771aeac32a320ac52bc227252103d7d7fc48cad Author: Heiko Carstens Date: Fri Jul 27 12:29:18 2007 +0200 [S390] Fix IRQ tracing. If a machine check is pending and the external or I/O interrupt handler returns to userspace io_mcck_pending is going to call s390_handle_mcck. Before this happens a call to TRACE_IRQS_ON was already made since we know that we are going back to userspace and hence interrupts will be enabled. So there was an indication that interrupts are enabled while in reality they are still disabled. s390_handle_mcck will do a local_irq_save/restore pair and confuse lockdep which later complains about inconsistent irq tracing. To solve this just call trace_hardirqs_off before calling s390_handle_mcck and trace_hardirqs_on afterwards. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 2b3d8c9e06392d5539aa5d652f3a3c385fd19333 Author: Frank Munzert Date: Fri Jul 27 12:29:17 2007 +0200 [S390] vmur: fix diag14_read. Record length of spool file must be only stored in 1st SPLINK record Signed-off-by: Frank Munzert Signed-off-by: Martin Schwidefsky commit 7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4 Author: Martin Schwidefsky Date: Fri Jul 27 12:29:16 2007 +0200 [S390] Wire up sys_fallocate. This patch implements support of fallocate system call on s390(x) platform. A wrapper is added to address the issue which s390 ABI has with the arguments of this system call. Signed-off-by: Martin Schwidefsky commit cb1863a4619e5c80e43acad61b19cc5114b1c60d Author: Christian Borntraeger Date: Fri Jul 27 12:29:15 2007 +0200 [S390] add types.h include to s390_ext.h The header file for external interrupts uses the _u16 type. Make sure that _u16 is defined by including linux/types.h. This prevents compile failures, if asm/s390_ext.h is the first include file. Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky commit 8059862c636778bc1872c89ae307eb6bccd35581 Author: Cornelia Huck Date: Fri Jul 27 12:29:14 2007 +0200 [S390] cio: Remove deprecated rdc/rcd. http://marc.info/?l=linux-kernel&m=118481061928246&w=2 seems to indicate disfavour of "deprecated", so let's just kill it now. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky commit e62133b4ea0d85888d9883a3e1c396ea8717bc26 Author: Heiko Carstens Date: Fri Jul 27 12:29:13 2007 +0200 [S390] Get rid of new section mismatch warnings. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 3b74a87422cc8d1062529b58bc3891383d138e5e Author: Heiko Carstens Date: Fri Jul 27 12:29:12 2007 +0200 [S390] sclp: kill unused SCLP config option. sclp is always compiled in. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 36914e5d69c8f8851f6b99b2ec6d98b947d4ff32 Author: Cornelia Huck Date: Fri Jul 27 12:29:11 2007 +0200 [S390] cio: Remove remains of _ccw_device_get_device_number(). Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky commit 07c6a3386d8c09e8d6c58274bd69f640dda15833 Author: Cornelia Huck Date: Fri Jul 27 12:29:10 2007 +0200 [S390] cio: css_sch_device_register() can be made static. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky commit 8da1aecde00b74d63123e6031155bbb1424b338d Author: Heiko Carstens Date: Fri Jul 27 12:29:09 2007 +0200 [S390] Improve __smp_call_function_map. There is no need to disable bottom halves when holding call_lock. Also this could imply that it is legal to call smp_call_function* from bh context, which it is not. Also test if func will be executed locally before disabling and aterwards enabling interrupts again. It's not necessary to disable and enable interrupts each time __smp_call_function_map gets called. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 3bb447fc8bb6523cb1cec7a0277d831a2b0462b7 Author: Heiko Carstens Date: Fri Jul 27 12:29:08 2007 +0200 [S390] Convert to smp_call_function_single. smp_call_function_single now has the same semantics as s390's smp_call_function_on. Therefore convert to the *single variant and get rid of some architecture specific code. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 79685b8deea4541d18882d8c07d0e99e788292ab Author: Randy Dunlap Date: Fri Jul 27 08:08:51 2007 +0200 docbook: add pipes, other fixes Fix some typos in pipe.c and splice.c. Add pipes API to kernel-api.tmpl. Signed-off-by: Randy Dunlap Signed-off-by: Jens Axboe commit 7c2ff389bbb33074e7fde7a744f59da199a74af5 Author: Ingo Molnar Date: Wed Jul 25 13:07:10 2007 +0200 blktrace: use cpu_clock() instead of sched_clock() use cpu_clock() instead of sched_clock(). (the latter is not a proper clock-source) Signed-off-by: Ingo Molnar Signed-off-by: Jens Axboe commit 4d5d8e9d3e55100bc12cf17a5ebc8a3c70befd38 Author: Paul Mundt Date: Wed Jul 25 10:02:30 2007 +0200 bsg: Fix build for CONFIG_BLOCK=n BLK_DEV_BSG was added outside of the if BLOCK check, which allows it to be enabled when CONFIG_BLOCK=n. This leads to many screenlengths of errors, starting with a parse error on the request_queue_t definition. Obviously this wasn't intended for CONFIG_BLOCK=n usage, so just move the option back in to the block. Caught with a randconfig on sh. Signed-off-by: Paul Mundt -- block/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Signed-off-by: Jens Axboe commit 4e97182a22ed5ca6a5cbc39275d4752d5a4369da Author: Qi Yong Date: Wed Jul 25 08:45:51 2007 +0200 [patch] QUEUE_FLAG_READFULL QUEUE_FLAG_WRITEFULL comment fix The two comments were transposed. Signed-off-by: Qi Yong Signed-off-by: Jens Axboe commit f191f144079b0083c6fa7d01a4acbd7263fb5032 Author: Alan Hourihane Date: Fri Jul 27 10:56:43 2007 +1000 agp: AMD AGP is used on UP1100 & UP1500 alpha boxen Signed-off-by: Dave Airlie commit dde4787642ee3cb85aef80bdade04b6f8ddc3df8 Author: Zhenyu Wang Date: Thu Jul 26 09:18:09 2007 +0800 intel_agp: really fix 945/965GME Fix some missing places to check with device id info, which should probe the device gart correctly. Signed-off-by: Wang Zhenyu Signed-off-by: Dave Airlie commit a51b34593f691a0837d752a1394dcee19483c607 Author: Nick Piggin Date: Wed Jul 25 13:19:22 2007 +0200 agp: don't lock pages AGP should not need to lock pages. They are not protecting any race because there is no lock_page calls, only SetPageLocked. This is causing hangs with d00806b183152af6d24f46f0c33f14162ca1262a. Signed-off-by: Nick Piggin Signed-off-by: Dave Airlie commit c99c108ac362f5cc37f79fad7e9897bd9d033bcc Author: Chuck Ebbert Date: Fri Jul 27 10:46:20 2007 +1000 AGP: document boot options Add documentation for AGP boot options. Signed-off-by: Chuck Ebbert Signed-off-by: Dave Airlie commit 190644e180794208bc638179f4d5940fe419bf9c Author: Jesper Juhl Date: Sat Jul 21 17:39:11 2007 +0200 Fix "use after free" / "double free" bug in ati_create_gatt_pages / ati_free_gatt_pages Hi, Coverity spotted a "use after free" bug in drivers/char/agp/ati-agp.c::ati_create_gatt_pages(). The same one that was in drivers/char/agp/amd-k7-agp.c::amd_create_gatt_pages() The problem is this: If "entry = kzalloc(sizeof(struct ati_page_map), GFP_KERNEL);" fails, then there's a loop in the function to free all entries allocated so far and break out of the allocation loop. That in itself is pretty sane, but then the (now freed) 'tables' is assigned to ati_generic_private.gatt_pages and 'retval' is set to -ENOMEM which causes ati_free_gatt_pages(); to be called at the end of the function. The problem with this is that ati_free_gatt_pages() will then loop 'ati_generic_private.num_tables' times and try to free each entry in tables[] - this is bad since tables has already been freed and furthermore it will call kfree(tables) at the end - a double free. This patch removes the freeing loop in ati_create_gatt_pages() and instead relies entirely on the call to ati_free_gatt_pages() to free everything we allocated in case of an error. It also sets ati_generic_private.num_tables to the actual number of entries allocated instead of just using the value passed in from the caller - this ensures that ati_free_gatt_pages() will only attempt to free stuff that was actually allocated. Note: I'm in no way intimate with this code and I have no way to actually test this patch (besides compile test it), so while I've tried to be careful in reading the code and make sure the patch does the right thing an ACK from someone who actually knows the code in-depth would be very much appreciated. Signed-off-by: Jesper Juhl Signed-off-by: Dave Airlie commit 074ff856004819b942190606cc38ec97a4c3d9fd Author: Kenji Kaneshige Date: Thu Jul 26 15:32:38 2007 +0900 [IA64] Fix wrong return value in parse_vector_domain Fix wrong return value in parse_vector_domain(). Signed-off-by: Kenji Kaneshige Signed-off-by: Tony Luck commit 3c3738c874a2d42e84a2b02768f9807c334f3eff Author: Kenji Kaneshige Date: Thu Jul 26 15:31:34 2007 +0900 [IA64] Fix wrong assumption in acpi_gsi_to_irq The ia64's acpi_gsi_to_irq() function assumes irq == vector. But in fact irq can be different from vector. This patch fix this wrong assumption. Signed-off-by: Kenji Kaneshige Signed-off-by: Tony Luck commit 6bde71ec1ea1f37254892ef2058176f3171a0d62 Author: Kenji Kaneshige Date: Thu Jul 26 15:30:45 2007 +0900 [IA64] Add sanity check into __bind_irq_vector Add some sanity checks into __bind_irq_vector(). Signed-off-by: Kenji Kaneshige Signed-off-by: Tony Luck commit 286201dcabf7311d2e22a95829ba40744b15c81d Author: Wim Van Sebroeck Date: Thu Jul 26 21:11:28 2007 +0000 [WATCHDOG] ICH9 support for iTCO_wdt Add support for the ICH9 I/O chipsets to iTCO_wdt. Signed-off-by: Wim Van Sebroeck commit 7e0a86f7021c684a59c585828e7af1e29770b933 Author: Wim Van Sebroeck Date: Thu Jul 26 20:43:50 2007 +0000 [WATCHDOG] 631xESB/632xESB support for iTCO_wdt - add all LPC bridges Add all LPC bridges for the 631xESB/632xESB I/O chipset. The datasheet says: * Device Function = B0:D31:FO * Function Description = LPC interface * DEV ID = 267xh * Comment = 2670h-267Fh Signed-off-by: Wim Van Sebroeck commit 293a032eb95f3c6c212c1541e94c14b111731313 Author: Linus Torvalds Date: Thu Jul 26 13:44:58 2007 -0700 Don't force-enable suspend/hibernate support just for ACPI It's a totally independent decision for the user whether he wants suspend and/or hibernation support, and ACPI shouldn't care. Signed-off-by: Linus Torvalds commit 998e6787e6f6932fdd7525c828b8b1c9171ad8cb Author: Sergey Kononenko Date: Thu Jul 26 17:28:35 2007 +0300 [WATCHDOG] 631xESB/632xESB support for iTCO_wdt Add 631xESB/632xESB support to the iTCO_wdt driver. Signed-off-by: Sergey Kononenko Signed-off-by: Wim Van Sebroeck commit 58b3b71dfaaecbf7cff1fe10c049d663f0313e5f Author: Rafael J. Wysocki Date: Thu Jul 26 16:29:55 2007 +0200 Fix ThinkPad T42 poweroff failure introduced by by "PM: Introduce pm_power_off_prepare" Commit bd804eba1c8597cbb7cd5a5f9fe886aae16a079a ("PM: Introduce pm_power_off_prepare") caused problems in the poweroff path, as reported by YOSHIFUJI Hideaki / 吉藤英明. Generally, sysdev_shutdown() should be called after the ACPI preparation for powering the system off. To make it happen, we can separate sysdev_shutdown() from device_shutdown() and call it directly wherever necessary. Signed-off-by: Rafael J. Wysocki Tested-by: YOSHIFUJI Hideaki / 吉藤英明 Signed-off-by: Linus Torvalds commit 602033ed5907a59ce86f709082a35be047743a86 Author: Linus Torvalds Date: Thu Jul 26 12:07:21 2007 -0700 Revert most of "x86: Fix alternatives and kprobes to remap write-protected kernel text" This reverts most of commit 19d36ccdc34f5ed444f8a6af0cbfdb6790eb1177. The way to DEBUG_RODATA interactions with KPROBES and CPU hotplug is to just not mark the text as being write-protected in the first place. Both of those facilities depend on rewriting instructions. Having "helpful" debug facilities that just cause more problem is not being helpful. It just adds complexity and bugs. Not worth it. Reported-by: Rafael J. Wysocki Cc: Andi Kleen Cc: Andrew Morton Signed-off-by: Linus Torvalds commit 07d4e9af109221ab731c5aaf832e89776c64b013 Author: Bjorn Helgaas Date: Thu Jul 26 10:41:21 2007 -0700 PNP: fix up after Lindent These are manual fixups after running Lindent. No functional change. Signed-off-by: Bjorn Helgaas Cc: Len Brown Cc: Adam Belay Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9dd78466c956ac4b4f38e12032dc4249ccf57ad1 Author: Bjorn Helgaas Date: Thu Jul 26 10:41:20 2007 -0700 PNP: Lindent all source files Run Lindent on all PNP source files. Produced by: $ quilt new pnp-lindent $ find drivers/pnp -name \*.[ch] | xargs quilt add $ quilt add include/linux/{pnp.h,pnpbios.h} $ scripts/Lindent drivers/pnp/*.c drivers/pnp/*/*.c include/linux/pnp*.h $ quilt refresh --sort Signed-off-by: Bjorn Helgaas Cc: Len Brown Cc: Adam Belay Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8ec3cf7d29aef773eee5bc6cd9b0fa4d3fb42480 Author: Thomas Gleixner Date: Thu Jul 26 10:41:19 2007 -0700 x86_64: cleanup tsc.c merge artifact tsc_unstable is declared twice. Signed-off-by: Thomas Gleixner Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4fc09385c79fa95e97365d33de9b4e046d680b94 Author: Hirokazu Takata Date: Thu Jul 26 10:41:19 2007 -0700 m32r: Fix ei_tx_timeout() in drivers/net/lib8390.c Change INT0 trigger mode from edge-sense mode to level-sense mode, in order to fix the following timeout error: 'NETDEV WATCHDOG: eth0: transmit timed out'. This patch is required only for the Mappi platform. Signed-off-by: Hirokazu Takata Cc: Hitoshi Yamamoto Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b5445f956ec3c8c19b760775e9ff92a160e3a167 Author: Mel Gorman Date: Thu Jul 26 10:41:18 2007 -0700 Allow nodes to exist that only contain ZONE_MOVABLE With the introduction of kernelcore=, a configurable zone is created on request. In some cases, this value will be small enough that some nodes contain only ZONE_MOVABLE. On some NUMA configurations when this occurs, arch-independent zone-sizing will get the size of the memory holes within the node incorrect. The value of present_pages goes negative and the boot fails. This patch fixes the bug in the calculation of the size of the hole. The test case is to boot test a NUMA machine with a low value of kernelcore= before and after the patch is applied. While this bug exists in early kernel it cannot be triggered in practice. This patch has been boot-tested on a variety machines with and without kernelcore= set. Signed-off-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ee2077d97b2f392cfc0b884775ac58aa9b9b8c8f Author: Jiri Slaby Date: Thu Jul 26 10:41:17 2007 -0700 Char: cyclades, select FW_LOADER Fix link errors below by selecting FW_LOADER LD .tmp_vmlinux1 drivers/built-in.o: In function `cyz_load_fw': drivers/char/cyclades.c:4908: undefined reference to `request_firmware' drivers/char/cyclades.c:4979: undefined reference to `release_firmware' Cc: Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 252c01dc272c4b56bf1ab8582b3031682de153b3 Author: Sam Ravnborg Date: Thu Jul 26 10:41:16 2007 -0700 x86_64: fix section mismatch warnings in tce Fix the following two section mismatch warnings: WARNING: vmlinux.o(.text+0x1ce84): Section mismatch: reference to .init.text:free_bootmem (between 'free_tce_table' and 'build_tce_table') WARNING: vmlinux.o(.text+0x1d04d): Section mismatch: reference to .init.text:__alloc_bootmem_low (between 'alloc_tce_table' and 'kretprobe_trampoline_holder') In both cases the functions was used only from __init context so mark them __init. Signed-off-by: Sam Ravnborg Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ddcc3050bddc267f8d6e811bd930e885729f900b Author: Doug Thompson Date: Thu Jul 26 10:41:16 2007 -0700 drivers/edac: fix pasemi kconfig depends Fixed 'depends on PPC_PASEMI' in EDAC Kconfig. Module PASEMI depends ONLY on the PASEMI on PPC. Was previously enabled for ALL PPC Cc: Alan Cox Cc: Egor N. Martovetsky Signed-off-by: Doug Thompson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 39c29657fcf6060d71e04f1e52e5bb4b2999644f Author: Doug Thompson Date: Thu Jul 26 10:41:15 2007 -0700 include/asm-:mips add missing edac h file EDAC has a foundation to perform software memory scrubbing, but it requires a per architecture (atomic_scrub) function for performing an atomic update operation. Under X86, this is done with a lock: add [addr],0 in the file asm-x86/edac.h This patch provides the MIPS arch with that atomic function, atomic_scrub() in asm-mips/edac.h Cc: Alan Cox Cc: Ralf Baechle Signed-off-by: Doug Thompson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d4c1465b7de9686c4c5aa533b15c09ab014aab3a Author: Doug Thompson Date: Thu Jul 26 10:41:15 2007 -0700 drivers/edac: fix edac_pci sysfs This patch fixes sysfs exit code for the EDAC PCI device in a similiar manner and the previous fixes for EDAC_MC and EDAC_DEVICE. It removes the old (and incorrect) completion model and uses reference counts on per instance kobjects and on the edac core module. This pattern was applied to the edac_mc and edac_device code, but the EDAC PCI code was missed. In addition, this fixes a system hang after a low level driver was unloaded. (A cleanup function was called twice, which really screwed things up) Cc: Greg KH Cc: Alan Cox Signed-off-by: Doug Thompson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bce19683c17485b584b62b984d6dcf5332181588 Author: Doug Thompson Date: Thu Jul 26 10:41:14 2007 -0700 drivers/edac: fix reset edac_mc pollmsec This fixes a deadlock that could occur on a 'setup' and 'teardown' sequence of the workq for a edac_mc control structure instance. A similiar fix was previously implemented for the edac_device code. In addition, the edac_mc device code there was missing code to allow the workq period valu to be altered via sysfs control. This patch adds that fix on the code, and allows for the changing of the period value as well. Cc: Alan Cox Signed-off-by: Doug Thompson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 045e72acf16054c4ed2760e9a8edb19a08053af1 Author: Sam Ravnborg Date: Thu Jul 26 10:41:13 2007 -0700 fix 'dynreloc miscount' link error on Powerpc Nathan Lynch reported: 2.6.23-rc1 breaks the build for 64-bit powerpc for me (using maple_defconfig): LD vmlinux.o powerpc64-unknown-linux-gnu-ld: dynreloc miscount for kernel/built-in.o, section .opd powerpc64-unknown-linux-gnu-ld: can not edit opd Bad value make: *** [vmlinux.o] Error 1 However, I see a possibly related binutils patch: http://article.gmane.org/gmane.comp.gnu.binutils/33650 It was tracked down to be caused by the weak prototype declaration in mm.h: __attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma); But there is no need to make the declaration weak - only the definition needs to be marked weak. So drop the weak declaration. And in the process drop the duplicate definition in page.h for powerpc. Note: the arch_vma_name fix for x86_64 needs to be applied first to avoid breaking x86_64 Signed-off-by: Sam Ravnborg Cc: Nathan Lynch Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2ebc3cc920e7a076539aa8badbaf0919540a3438 Author: Roland McGrath Date: Thu Jul 26 10:41:12 2007 -0700 x86_64: fix arch_vma_name The function arch_vma_name() is declared weak and thus it was not noticed that x86_64 had two almost identical implementations. It was introduced in syscall32.c by: c633090e3105e779c97d4978e5e3d7d66b291cfb It was introduced in mm/init.c by: 2aae950b21e4bc789d1fc6668faf67e8748300b7 Signed-off-by: Roland McGrath Acked-by: Sam Ravnborg Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 26b97237f7eee977eb8beb59adbbf0a8ab4f8276 Author: Rafael J. Wysocki Date: Thu Jul 26 10:41:12 2007 -0700 chipsfb: use correct pm state chipsfb.c shouldn't use PM_SUSPEND_MEM in there, but PM_EVENT_SUSPEND. Cc: Cedric Le Goater Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 780dcdb21170ae8ad3faa640ede249261f216a8c Author: Eric Sandeen Date: Thu Jul 26 10:41:11 2007 -0700 fix inode_table test in ext234_check_descriptors ext[234]_check_descriptors sanity checks block group descriptor geometry at mount time, testing whether the block bitmap, inode bitmap, and inode table reside wholly within the blockgroup. However, the inode table test is off by one so that if the last block in the inode table resides on the last block of the block group, the test incorrectly fails. This is because it tests the last block as (start + length) rather than (start + length - 1). This can be seen by trying to mount a filesystem made such as: mkfs.ext2 -F -b 1024 -m 0 -g 256 -N 3744 fsfile 1024 which yields: EXT2-fs error (device loop0): ext2_check_descriptors: Inode table for group 0 not in group (block 101)! EXT2-fs: group descriptors corrupted! There is a similar bug in e2fsprogs, patch already sent for that. (I wonder if inside(), outside(), and/or in_range() should someday be used in this and other tests throughout the ext filesystems...) Signed-off-by: Eric Sandeen Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 98ac0e53facc851f8bc5110039ab05005c0c4736 Author: Adrian Bunk Date: Thu Jul 26 10:41:10 2007 -0700 xenbus_xs.c: fix a use-after-free This patch fixes an obvious use-after-free spotted by the Coverity checker. Signed-off-by: Adrian Bunk Acked-by: Jeremy Fitzhardinge Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4c6a1c130e00556a5c69101035bce4d9ab7c5c94 Author: Andrew Morton Date: Thu Jul 26 10:41:10 2007 -0700 edac is bust on mips drivers/edac/edac_stub.c:15:22: asm/edac.h: No such file or directory was it even supposed to work? Cc: Douglas Thompson Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f52e0ef47b22c18ff56f6233f814b329cb6e32cc Author: Andrew Morton Date: Thu Jul 26 10:41:09 2007 -0700 i2c: ds1682 warning fix ia64: drivers/i2c/chips/ds1682.c: In function `ds1682_show': drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long unsigned int arg (arg 3) drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long unsigned int arg (arg 3) Cc: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0ca56b4bb24e01158cb5d87adafa4b76da1f044d Author: Alessandro Zummo Date: Thu Jul 26 10:41:08 2007 -0700 Reorder RTC Makefile Alphabetic reordering of the drivers in the rtc subsys makefile. (akpm: merge this asap! Makefiles are the source of many patch conflicts..) Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3dd9fe8c397df68086e6a1b2160573abbe944813 Author: KAMEZAWA Hiroyuki Date: Thu Jul 26 10:41:08 2007 -0700 memory unplug: isolate_lru_page fix release_pages() in mm/swap.c changes page_count() to be 0 without removing PageLRU flag... This means isolate_lru_page() can see a page, PageLRU() && page_count(page)==0.. This is BUG. (get_page() will be called against count=0 page.) Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dc386d4d1e98bb39fb967ee156cd456c802fc692 Author: KAMEZAWA Hiroyuki Date: Thu Jul 26 10:41:07 2007 -0700 memory unplug: migration by kernel In usual, migrate_pages(page,,) is called with holding mm->sem by system call. (mm here is a mm_struct which maps the migration target page.) This semaphore helps avoiding some race conditions. But, if we want to migrate a page by some kernel codes, we have to avoid some races. This patch adds check code for following race condition. 1. A page which page->mapping==NULL can be target of migration. Then, we have to check page->mapping before calling try_to_unmap(). 2. anon_vma can be freed while page is unmapped, but page->mapping remains as it was. We drop page->mapcount to be 0. Then we cannot trust page->mapping. So, use rcu_read_lock() to prevent anon_vma pointed by page->mapping from being freed during migration. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 098284020c47c1212d211e39ae2b41c21182e056 Author: Davide Libenzi Date: Thu Jul 26 10:41:07 2007 -0700 make timerfd return a u64 and fix the __put_user Davi fixed a missing cast in the __put_user(), that was making timerfd return a single byte instead of the full value. Talking with Michael about the timerfd man page, we think it'd be better to use a u64 for the returned value, to align it with the eventfd implementation. This is an ABI change. The timerfd code is new in 2.6.22 and if we merge this into 2.6.23 then we should also merge it into 2.6.22.x. That will leave a few early 2.6.22 kernels out in the wild which might misbehave when a future timerfd-enabled glibc is run on them. mtk says: The difference would be that read() will only return 4 bytes, while the application will expect 8. If the application is checking the size of returned value, as it should, then it will be able to detect the problem (it could even be sophisticated enough to know that if this is a 4-byte return, then it is running on an old 2.6.22 kernel). If the application is not checking the return from read(), then its 8-byte buffer will not be filled -- the contents of the last 4 bytes will be undefined, so the u64 value as a whole will be junk. Signed-off-by: Davide Libenzi Cc: Michael Kerrisk Cc: Davi Arnaut Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a1cdd4a64f6ce15a1e81759ef99eed3a91f9acbe Author: Adrian Bunk Date: Thu Jul 26 10:41:05 2007 -0700 X86_POWERNOW_K8_ACPI must depend on ACPI This patch fixes the following compile error introduced by commit e8666b2718fdb5bf0ea7c3126f7e292bbbf2946b and reported by Alexey Dobriyan: <-- snip --> CC arch/i386/kernel/acpi/cstate.o In file included from arch/i386/kernel/acpi/cstate.c:17: include/acpi/processor.h:88: error: expected specifier-qualifier-list before 'acpi_integer' <-- snip --> If you select something you must ensure that the dependencies of what you are selecting are fulfilled. Signed-off-by: Adrian Bunk Cc: Alexey Dobriyan Cc: Joshua Hoblitt Cc: Dave Jones Cc: Michal Piotrowski Cc: Len Brown Cc: Andrew Morton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f56a384e98aa81065038c4e16f39ed989ccae687 Author: Rusty Russell Date: Thu Jul 26 10:41:05 2007 -0700 lguest: documentation VII: FIXMEs Documentation: The FIXMEs Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f8f0fdcd40449d318f8dc30c1b361b0b7f54134a Author: Rusty Russell Date: Thu Jul 26 10:41:04 2007 -0700 lguest: documentation VI: Switcher Documentation: The Switcher Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bff672e630a015d5b54c8bfb16160b7edc39a57c Author: Rusty Russell Date: Thu Jul 26 10:41:04 2007 -0700 lguest: documentation V: Host Documentation: The Host Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dde797899ac17ebb812b7566044124d785e98dc7 Author: Rusty Russell Date: Thu Jul 26 10:41:03 2007 -0700 lguest: documentation IV: Launcher Documentation: The Launcher Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e2c9784325490c878b7f69aeec1bed98b288bd97 Author: Rusty Russell Date: Thu Jul 26 10:41:03 2007 -0700 lguest: documentation III: Drivers Documentation: The Drivers Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b2b47c214f4e85ce3968120d42e8b18eccb4f4e3 Author: Rusty Russell Date: Thu Jul 26 10:41:02 2007 -0700 lguest: documentation II: Guest Documentation: The Guest Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f938d2c892db0d80d144253d4a7b7083efdbedeb Author: Rusty Russell Date: Thu Jul 26 10:41:02 2007 -0700 lguest: documentation I: Preparation The netfilter code had very good documentation: the Netfilter Hacking HOWTO. Noone ever read it. So this time I'm trying something different, using a bit of Knuthiness. Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dfb68689bf3e3d31dc9fb5c2bde5379a4ca9b0ec Author: Jeremy Fitzhardinge Date: Thu Jul 26 10:41:01 2007 -0700 xen: xen/page.h compile fix Fix: linux/include/xen/page.h: In function mfn_pte: linux/include/xen/page.h:149: error: __supported_pte_mask undeclared (first use in this function) linux/include/xen/page.h:149: error: (Each undeclared identifier is reported only once linux/include/xen/page.h:149: error: for each function it appears in.) Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bd16f9ebd083b965dcdfb6b762e206374d5b823b Author: David Brownell Date: Thu Jul 26 10:41:00 2007 -0700 rtc-ds1307: typo fix found by coverity Fix a typo turned up by a Coverity check: referring to the wrong register, which could cause problems with DS1338 RTCs whose oscillators halted. Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 47572b84aa3d4c9d44bceb43af8c58744b96af10 Author: Ben Dooks Date: Thu Jul 26 10:40:59 2007 -0700 fixup s3c24xx build after arch moves Fix the include files moved around during the s3c24xx arch moves. Signed-off-by: Ben Dooks Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 70f38db60cc5c8c6c3a95f0d2e6360272d6014a3 Author: Ryusuke Konishi Date: Thu Jul 26 10:40:59 2007 -0700 PM: fix compiler error of PPC dart_iommu A dummy inline function of register_nosave_region_late was accidentally removed by the recent PM patch that introduced suspend notifiers. This elimination causes the following compiler error on PPC machines. CC arch/powerpc/sysdev/dart_iommu.o arch/powerpc/sysdev/dart_iommu.c: In function 'iommu_init_late_dart': arch/powerpc/sysdev/dart_iommu.c:376: error: implicit declaration of function 'register_nosave_region_late' make[1]: *** [arch/powerpc/sysdev/dart_iommu.o] Error 1 make: *** [arch/powerpc/sysdev] Error 2 This patch fixes the problem. Signed-off-by: Ryusuke Konishi Acked-by: Rafael J. Wysocki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 415ad26d8c8665a0fcfc18552daf411a9bc1a41e Author: Christoph Lameter Date: Thu Jul 26 10:40:56 2007 -0700 Slab maintainer & Credits update Signed-off-by: Christoph Lameter Acked-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 61df47c8da1b4ba0f243975f11efc8956de0cba6 Author: Randy Dunlap Date: Thu Jul 26 10:40:56 2007 -0700 kernel-doc fix for kmod.c Fix kmod.c: Warning(linux-2.6.23-rc1//kernel/kmod.c:364): No description found for parameter 'envp' Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f50cadaa8ffa72ad430e5beabe02eb752f3f72a3 Author: Ulrich Drepper Date: Thu Jul 26 10:40:55 2007 -0700 tiny signalfd cleanup This is probably a leftover from a time when the return wasn't there yet. Now the extra assignment is just irritating. Signed-off-by: Ulrich Drepper Cc: Davide Libenzi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 87588dd6663b6f306f03f2deaec0d0fd3f0cb26e Author: Al Viro Date: Thu Jul 26 17:47:03 2007 +0100 more reiserfs endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 60262e58e305f27d05eefeda172117521514f364 Author: Al Viro Date: Thu Jul 26 17:46:19 2007 +0100 arm unaligned.h annotations Have put_unaligned() warn if types would be wrong for assignment, slap force-casts where needed. Cast the result of get_unaligned to typeof(*ptr). With that in place we get proper typechecking, both from gcc and from sparse, including that for bitwise types. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit e7cf261b447ed7edbf7c10c046e078bda799afaf Author: Al Viro Date: Thu Jul 26 17:42:59 2007 +0100 m68k {in,out}_le{16,32} endianness misannotation Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit c7b17cb13eaad6adf2f169840ccb193d4376e4b1 Author: Al Viro Date: Thu Jul 26 17:36:29 2007 +0100 ax88796 (address space): cast to unsigned long, not long Signed-off-by: Al Viro Acked-by: Jeff Garzik Signed-off-by: Linus Torvalds commit 5b26e64ea39e45802c5736c8261bf8a8704d212f Author: Al Viro Date: Thu Jul 26 17:36:19 2007 +0100 raw1394 __user annotation Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 0bd8496b5977f6acfd3c16358045c315d610b765 Author: Al Viro Date: Thu Jul 26 17:36:09 2007 +0100 drivers/ misc __iomem annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit ad690ef9e690f6c31f7d310b09ef1314bcec9033 Author: Al Viro Date: Thu Jul 26 17:35:59 2007 +0100 xfs ioctl __user annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 97f1e7f7d2cd950f90d64ac6920822e709095519 Author: Al Viro Date: Thu Jul 26 17:35:49 2007 +0100 make powerpc BUG_ON() OK with pointers and bitwise Since powerpc insists on printing the _value_ of condition and on casting it to long... At least let's make it a force-cast. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit fdd33961e983dd5b1983c54ef39d243c88a4bffc Author: Al Viro Date: Thu Jul 26 17:35:39 2007 +0100 amd64: fix get_user() on bitwise We really need force-cast when converting to final result type; unsigned long can be silently converted to integer types and to pointers, but not to bitwise. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit c47ffe3d3d841986108a8316f6e01792cb45d0d2 Author: Al Viro Date: Thu Jul 26 17:35:29 2007 +0100 make __chk_{user,io}_ptr() accept pointers to volatile Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 1f41bb3a5a24c82900b33071edcedec679b99de7 Author: Al Viro Date: Thu Jul 26 17:35:19 2007 +0100 cxgb3 gfp_t annotations Signed-off-by: Al Viro Acked-by: Jeff Garzik Signed-off-by: Linus Torvalds commit af3b162afd9fce69a94d79bd5b1f9c7c302212f4 Author: Al Viro Date: Thu Jul 26 17:35:09 2007 +0100 misannotation in pppol2tp Address of auto variable is not a userland pointer. A good thing, too, since if pppol2tp_tunnel_getsockopt() would _really_ get a userland pointer as argument, it would be an instant roothole... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 6aa8b04975e71fb3d67bec7fbe2995b9bf54a06e Author: Al Viro Date: Thu Jul 26 17:34:59 2007 +0100 cyclone.c: silly use of volatile, __iomem fixes u32* volatile cyclone_timer means volatile auto pointer to u32, which is clearly not what had been intended (we never even take the address of that variable, let alone pass it to something that could change it behind our back). u32 volatile * is what the authors apparently wanted to say, but in reality we don't need that qualifier there at all - it's (properly) only passed to iomem helpers which takes care of that stuff just fine. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 712aaa1cb1c0a83e5ffb5376e1d7ee3dd539f4e4 Author: Al Viro Date: Thu Jul 26 17:34:49 2007 +0100 use CLOCKSOURCE_MASK() instead of too large constant Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit d5c03726a7d0700222fe3c134c6ef834040974c5 Author: Al Viro Date: Thu Jul 26 17:34:39 2007 +0100 alpha: long constant Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 8dc946307c45ab9a6f56c56371e1ccfb7155015e Author: Al Viro Date: Thu Jul 26 17:34:29 2007 +0100 ia64 time.c: ANSIfy Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit ed5f6561436a1a0b38f4130bdb1fed00f14e60b5 Author: Al Viro Date: Thu Jul 26 17:34:19 2007 +0100 deal with alpha section warnings Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 55fe977187405edaaa9b2519b561e97ff1d2eeee Author: Al Viro Date: Thu Jul 26 17:34:09 2007 +0100 viohs: extern on function definition Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit b0a5ab93158586e599ecd0d24a9a72da74d23ddd Author: Al Viro Date: Thu Jul 26 17:33:59 2007 +0100 initramfs: missing __init Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit ca5c8cde93d65db3139604ca6b91bf8ff3f775e2 Author: Al Viro Date: Thu Jul 26 17:33:49 2007 +0100 lockd and nfsd endianness annotation fixes Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 582ee43dad8e411513a74f2d801255dcffc6d29e Author: Al Viro Date: Thu Jul 26 17:33:39 2007 +0100 net/* misc endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 704eae1f32274c0435f7f3924077afdb811edd1d Author: Al Viro Date: Thu Jul 26 17:33:29 2007 +0100 ip6_tunnel - endianness annotations Convert rel_info to host-endian before calling ip6_tnl_err(). The things become much more straightforward that way. The key observation (and the reason why that code actually worked) is that after ip6_tnl_err() we either immediately bailed out or had rel_info set to 0 or had it set to host-endian and guaranteed to hit (rel_type == ICMP_DEST_UNREACH && rel_code == ICMP_FRAG_NEEDED) case. So inconsistent endianness didn't really lead to bugs, but it had been subtle and prone to breakage. New variant is saner and obviously safe. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit a34c45896a723ee7b13128ac8bf564ea42fcd1eb Author: Al Viro Date: Thu Jul 26 17:33:19 2007 +0100 netfilter endian regressions no real bugs, just misannotations cropping up Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit e0e5de00b0ee5a3b652d829f2c1e89265e9c6a99 Author: Al Viro Date: Thu Jul 26 17:33:09 2007 +0100 sun userflash is PCI-dependent Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit 52cf875fb0f3a8a472eaa8be479777cf0a92e3ce Author: Al Viro Date: Thu Jul 26 17:32:59 2007 +0100 more VIRT_TO_BUS dependencies Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit c98dbe59ae4da701f81ba16eb02c94ed85e663c7 Author: Al Viro Date: Thu Jul 26 17:32:49 2007 +0100 fix missing arguments in drivers/rtc/rtc-stk17ta8.c struct bin_attribute * is needed in bin_attribute ->read()/->write() now. Incidentally, could people please run the fscking compiler before and after applying their patch and compare the build logs? That (and many, many other) would be caught immediately. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds commit be03e56b777362a70f29399aaff9989fc3f3de63 Author: Greg Ungerer Date: Fri Jul 27 01:09:00 2007 +1000 m68knommu: use setup_irq() in 68328 timer code Use setup_irq() instead of request_irq() to set up system timer in 68328 timer code. With the old m68knommu irq code this was safe, but it is not now within the generic irq framework. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 5c4525da3b43ab194b99ea13142fa1f98fcba2fe Author: Greg Ungerer Date: Fri Jul 27 01:09:00 2007 +1000 m68knommu: use setup_irq() in ColdFire PIT timer Use setup_irq() instead of request_irq() to set up system timer in ColdFire PIT timer code. With the old m68knommu irq code this was safe, but it is not now within the generic irq framework. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 65fdef9303a69dab1f693159f6262375322dd676 Author: Greg Ungerer Date: Fri Jul 27 01:09:00 2007 +1000 m68knommu: remove unused mach_trap_init Remove the unused mach_trap_init function pointer. All use of it removed with change to using generic irq framework. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit c52a2cda561fd40543d839e8e0c75b6d964a67ad Author: Greg Ungerer Date: Fri Jul 27 01:09:00 2007 +1000 m68knommu: use setup_irq() in ColdFire simple timer Use setup_irq() instead of request_irq() to set up system timer in ColdFire simple timer code. With the old m68knommu irq code this was safe, but it is not now within the generic irq framework. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 374c3f552d7c7731cf25b0d4938e9d14d9251bf4 Author: Greg Ungerer Date: Fri Jul 27 01:09:00 2007 +1000 m68knommu: remove use of colfire_trap_init The switch to using the generic irq framework removed the coldfire_trap_init() code, so remove all references to it. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit aa1f1d10e6f80362123fd7f736011f3ddd3acf25 Author: Greg Ungerer Date: Fri Jul 27 01:09:00 2007 +1000 m68knommu: use setup_irq() in 68360 timer code Use setup_irq() instead of request_irq() to set up system timer in 68360 timer code. With the old m68knommu irq code this was safe, but it is not now within the generic irq framework. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit c423941890daebe2205a11bca7b51907f2b13940 Author: Greg Ungerer Date: Fri Jul 27 01:09:00 2007 +1000 m68knommu: add prototype for ack_bad_irq Create prototype for ack_bad_irq() for m68knommu. Compilation of kernel/irq/handle.c fails without it. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 219e3dcd1dd34d5b9b663977136877dcb393626a Author: Kristoffer Ericson Date: Thu Jul 26 07:41:12 2007 +0100 [ARM] 4528/1: [HP Jornada 7XX] - Fix typo in jornada720_ssp.c Fixes TxDummy -> TXDUMMY typo. Makes Jornada720_ssp.c compile nicely again. Signed-off-by: Kristoffer Ericson Signed-off-by: Russell King commit a14ff99232f449e5f9e440757a9049be3fd9e23a Author: Russell King Date: Thu Jul 26 14:54:47 2007 +0100 [ARM] Remove CONFIG_IGNORE_FIQ IGNORE_FIQ does not appear in the Kconfig files, so can be removed. Signed-off-by: Russell King commit 1d1bbee61e4ecdaad450e9bf4d9983876ed53a43 Author: Jeff Garzik Date: Thu Jul 26 09:28:37 2007 -0400 [SCSI] libsas: Remove PCI dependencies Eliminate unnecessary PCI dependencies in libsas. It should use generic DMA and struct device like other subsystems. Signed-off-by: Jeff Garzik Signed-off-by: James Bottomley commit e692ab53473c93c0d0820618c97aa74a62ab67da Author: Nick Piggin Date: Thu Jul 26 13:40:43 2007 +0200 [PATCH] sched: debug feature - make the sched-domains tree runtime-tweakable debugging feature: make the sched-domains tree runtime-tweakable. Signed-off-by: Andrew Morton [ mingo@elte.hu: made it depend on CONFIG_SCHED_DEBUG & small updates ] Signed-off-by: Ingo Molnar commit d02c7a8cf208eb80a3ccbff40a6bebe8902af35a Author: Con Kolivas Date: Thu Jul 26 13:40:43 2007 +0200 [PATCH] sched: add above_background_load() function Add an above_background_load() function which can be used by other subsystems to detect if there is anything besides niced tasks running. Place it in sched.h to allow it to be compiled out if not used. Unused for now, but it is a useful hint to the IO scheduler and to swap-prefetch. Signed-off-by: Con Kolivas Cc: Peter Williams Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar commit b762f3ffb797c1281a38a1c82194534055fba5ec Author: Joachim Deguara Date: Thu Jul 26 13:40:43 2007 +0200 [PATCH] sched: update Documentation/sched-stats.txt While learning about schedstats I found that the documentation in the tree is old. I updated it and found some interesting stuff like schedstats version 14 is the same as version and version 13 never saw a kernel release! Also there are 6 fields in the current schedstats that are not used anymore. Nick had made them irrelevant in commit 476d139c218e44e045e4bc6d4cc02b010b343939 but never removed them. Thanks to Rick's perl script who I borrowed some of the updated descriptions from. Signed-off-by: Joachim Deguara Acked-by: Nick Piggin Cc: Rick Lindsley Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar commit f33734619371ae40f34bbce001938408e6634f05 Author: Josh Triplett Date: Thu Jul 26 13:40:43 2007 +0200 [PATCH] sched: mark sysrq_sched_debug_show() static Only sched.c uses sysrq_sched_debug_show, and sched.c includes sched_debug.c, so all uses of sysrq_sched_debug_show occur in the same source file. Eliminates a sparse warning: warning: symbol 'sysrq_sched_debug_show' was not declared. Should it be static? Signed-off-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar commit 2cd4d0ea19713304963dbb2de5073700bfe253f5 Author: Ingo Molnar Date: Thu Jul 26 13:40:43 2007 +0200 [PATCH] sched: make cpu_clock() not use the rq clock it is enough to disable interrupts to get the precise rq-clock of the local CPU. this also solves an NMI watchdog regression: the NMI watchdog calls touch_softlockup_watchdog(), which might deadlock on rq->lock if the NMI hits an rq-locked critical section. Signed-off-by: Ingo Molnar commit 018a2212950457b1093e504cd834aa0fe749da6c Author: Satoru Takeuchi Date: Thu Jul 26 13:40:43 2007 +0200 [PATCH] sched: remove unused rq->load_balance_class Remove unused rq->load_balance_class. Signed-off-by: Satoru Takeuchi Signed-off-by: Ingo Molnar commit e107be36efb2a233833e8c9899039a370e4b2318 Author: Avi Kivity Date: Thu Jul 26 13:40:43 2007 +0200 [PATCH] sched: arch preempt notifier mechanism This adds a general mechanism whereby a task can request the scheduler to notify it whenever it is preempted or scheduled back in. This allows the task to swap any special-purpose registers like the fpu or Intel's VT registers. Signed-off-by: Avi Kivity [ mingo@elte.hu: fixes, cleanups ] Signed-off-by: Ingo Molnar commit b47e8608a08766ef8121cd747d3aaf6c3dc22649 Author: Ingo Molnar Date: Thu Jul 26 13:40:43 2007 +0200 [PATCH] sched: increase SCHED_LOAD_SCALE_FUZZ increase SCHED_LOAD_SCALE_FUZZ that adds a small amount of over-balancing: to help distribute CPU-bound tasks more fairly on SMP systems. the problem of unfair balancing was noticed and reported by Tong N Li. 10 CPU-bound tasks running on 8 CPUs, v2.6.23-rc1: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2572 mingo 20 0 1576 244 196 R 100 0.0 1:03.61 loop 2578 mingo 20 0 1576 248 196 R 100 0.0 1:03.59 loop 2576 mingo 20 0 1576 248 196 R 100 0.0 1:03.52 loop 2571 mingo 20 0 1576 244 196 R 100 0.0 1:03.46 loop 2569 mingo 20 0 1576 244 196 R 99 0.0 1:03.36 loop 2570 mingo 20 0 1576 244 196 R 95 0.0 1:00.55 loop 2577 mingo 20 0 1576 248 196 R 50 0.0 0:31.88 loop 2574 mingo 20 0 1576 248 196 R 50 0.0 0:31.87 loop 2573 mingo 20 0 1576 248 196 R 50 0.0 0:31.86 loop 2575 mingo 20 0 1576 248 196 R 50 0.0 0:31.86 loop v2.6.23-rc1 + patch: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2681 mingo 20 0 1576 244 196 R 85 0.0 3:51.68 loop 2688 mingo 20 0 1576 244 196 R 81 0.0 3:46.35 loop 2682 mingo 20 0 1576 244 196 R 80 0.0 3:43.68 loop 2685 mingo 20 0 1576 248 196 R 80 0.0 3:45.97 loop 2683 mingo 20 0 1576 248 196 R 80 0.0 3:40.25 loop 2679 mingo 20 0 1576 244 196 R 80 0.0 3:33.53 loop 2680 mingo 20 0 1576 244 196 R 79 0.0 3:43.53 loop 2686 mingo 20 0 1576 244 196 R 79 0.0 3:39.31 loop 2687 mingo 20 0 1576 244 196 R 78 0.0 3:33.31 loop 2684 mingo 20 0 1576 244 196 R 77 0.0 3:27.52 loop so they now nicely converge to the expected 80% long-term CPU usage. Signed-off-by: Ingo Molnar commit c64ac9f0581a80b6200846e7007a33c3b24ef745 Author: David McCullough Date: Thu Jul 26 17:46:07 2007 +0900 sh: fix get_wchan() for SH kernels without framepointers Do not follow the frame pointers (/proc/X/task/1/stat) unless we were compiled with them. Signed-off-by: David McCullough Signed-off-by: Paul Mundt commit 1f25756a11d662a986553754bf398ccc38f3925e Author: David McCullough Date: Thu Jul 26 17:43:41 2007 +0900 sh: arch/sh/boot - fix shell usage Fix the shell call to explicitly use bash, since they are bash specific and not all systems have bash as the default. Signed-off-by: David McCullough Signed-off-by: Paul Mundt commit 699bc6614f4d5a68b8840d4d859e9ca205530a77 Author: Markus Brunner Date: Thu Jul 26 17:31:28 2007 +0900 rtc: rtc-sh: Correct sh_rtc_set_time() for some SH-3 parts. Some SH-3 parts (SH7720 and SH7705 at least) need to have the start bit explicitly cleared, as the reset is not enough. This is safe across all parts, so simply clear the start bit in the sh_rtc_set_time() path. Signed-off-by: Markus Brunner Signed-off by: Mark Jonas Signed-off-by: Paul Mundt commit d89ddd1c847637d91625c8cb6b0d064e1717057c Author: Magnus Damm Date: Wed Jul 25 11:42:56 2007 +0900 sh: remove support for sh7300 and solution engine 7300 This patch removes old dead code: - kill off sh7300 cpu support - get rid of broken solution engine 7300 board support Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 32582fa46020cd8940006a8d42dec083d72d6d8b Author: Paul Mundt Date: Wed Jul 25 11:27:05 2007 +0900 sh: Add sh to the CC_OPTIMIZE_FOR_SIZE dependencies. Presently we only use this with CONFIG_EXPERIMENTAL, but it is something that can be supported commonly. Signed-off-by: Paul Mundt commit e257ad062a3ceaf36b0e883d0ef00b185daf500e Author: Paul Mundt Date: Wed Jul 25 11:18:00 2007 +0900 sh: Kill off virt_to_bus()/bus_to_virt(). Wire up ARCH_NO_VIRT_TO_BUS, and kill off the remaining users. The dma-mapping code really wanted virt_to_phys()/phys_to_virt() anyways, there are no inherently special bus addresses. Signed-off-by: Paul Mundt commit 0fbde9509d7b2f71b9326f9c5807a0b4193c7c76 Author: Magnus Damm Date: Thu Jul 26 10:14:16 2007 +0900 sh: sh-sci - fix SH7708 support This patch makes sure the sci serial port driver compiles for sh7708. The approach taken is to treat the sh7708 as a subset of sh7706, sh7707, sh7709. sh7708 is very similar to sh7706, sh7707, sh7709, but only equipped with a single sci port. The platform data in setup-sh770x.c already limits the number of serial ports for sh7708 to a single one, so the non-existing scif ports pointed out in sh-sci.h will remain unused in case of sh7708. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit ac79fd58a25dbd9848f2c2857da6a79494dabb9a Author: Paul Mundt Date: Wed Jul 25 16:26:10 2007 +0900 sh: Restrict DSP support to specific CPUs. Not all CPUs support the DSP, and this leads to problems when mixing and matching CPU types and DSP opcodes. Fix this up by only allowing CONFIG_SH_DSP to be enabled for the CPUs that explicitly have such a block. Signed-off-by: Paul Mundt commit b067c50a7f58838d8a53670ea3c07e18d7391900 Author: Paul Mundt Date: Wed Jul 25 15:59:47 2007 +0900 sh: Silence sq compile warning on sh4 nommu. Signed-off-by: Paul Mundt commit 3c6b6c7fb7d8876f1c1e07fdb937980f05a98315 Author: Paul Mundt Date: Wed Jul 25 10:54:25 2007 +0900 sh: Kill the rest of the SE73180 cruft. There was a stray header, and the mach-type removal was also missed. Signed-off-by: Paul Mundt commit 9d78592ed72dbff1d8825207f8def07858a49768 Author: Christoph Hellwig Date: Wed Jul 25 21:31:09 2007 +1000 [POWERPC] spusched: Fix initial timeslice calculation Currently we calculate the first timeslice for every context incorrectly - alloc_spu_context calls spu_set_timeslice before we set ctx->prio so we always calculate the longest possible timeslice for the lowest possible priority. This patch makes sure to update the schedule-related fields before calculating the timeslice and also makes sure we update the timeslice for a non-running context when entering spu_run so a priority change affects the context as soon as possible. Signed-off-by: Christoph Hellwig Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 6f6a6dc0c8ebdb6514ab6bb58ba4b8739957b342 Author: Masato Noguchi Date: Wed Jul 25 13:20:15 2007 +1000 [POWERPC] spufs: Fix incorrect initialization of cbe_spu_info.spus We currently initialize cbe_spu_info[].spus in both init_spu_base and spu_sched_init. The initialise in spu_sched_init clears the SPU list, so we end up with no physical SPUs. Because of this, the spu_run syscall will block forever. This change removes the unnecessary initialization in spu_sched_init. Signed-off-by: Masato Noguchi Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras commit 17cd87c26bd86546ea3217397ef3428581970058 Author: Benjamin Herrenschmidt Date: Thu Jul 26 14:07:14 2007 +1000 [POWERPC] Fix Maple platform ISA bus The Maple platform has ISA IOs but didn't call the new functions to actually map those, thus crashing when trying to access the nvram. This fixes Maple and JS2x using SLOF. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 50747cb8189d54369d75e1bd73f84db431d39af8 Author: Benjamin Herrenschmidt Date: Thu Jul 26 14:07:13 2007 +1000 [POWERPC] Make pci_iounmap actually unmap things This patch uses the newly added functions for testing if an address is an ISA or PCI IO port to properly unmap things in pci_iounmap that aren't such ports. Without that, drivers using the iomap API will never actually unmap resources, which on IBM server machines will prevent hot-unplug of the corresponding HW adapters. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 6dfbde209171cd15407e7540d363a434a489aaca Author: Benjamin Herrenschmidt Date: Thu Jul 26 14:07:13 2007 +1000 [POWERPC] Add function to check if address is an IO port This adds a function that tells you if a given kernel virtual address is hitting a PCI or ISA IO port permanent mapping or not. This is to be used in the next patch to fix iomap APIs to properly unmap things. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit f5d834fc34e61f1a40435981062000e5d2b2baa8 Author: Alan Curry Date: Wed Jul 25 11:28:32 2007 +1000 [POWERPC] Fix Pegasos keyboard detection As of 2.6.22 the kernel doesn't recognize the i8042 keyboard/mouse controller on the PegasosPPC. This is because of a feature/bug in the OF device tree: the "device_type" attribute is an empty string instead of "8042" as the kernel expects. This adds a secondary detection which looks for a device whose *name* is "8042" if there is no device whose *type* is "8042". Signed-off-by: Alan Curry Acked-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras commit 16782a604c458e1edcefca52457a82395b788bed Author: Stephen Rothwell Date: Wed Jul 25 09:29:19 2007 +1000 [POWERPC] iSeries: Fix section mismatch warning in lpevents WARNING: vmlinux.o(.text+0x4f568): Section mismatch: reference to .init.text:.__alloc_bootmem (between '.setup_hvlpevent_queue' and '.process_hvlpevents') setup_hvlpevent_queue is only called from __init code so make it __init as well. Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras commit c40b91b59de079583cde5f0c8e2c96d8af0f76a7 Author: Stephen Rothwell Date: Wed Jul 25 09:27:35 2007 +1000 [POWERPC] iSeries: Fix section mismatch warnings WARNING: vmlinux.o(.text+0x8124): Section mismatch: reference to .init.text:.iSeries_early_setup (between '.__start_initialization_iSeries' and '.__mmu_off') WARNING: vmlinux.o(.text+0x8128): Section mismatch: reference to .init.text:.early_setup (between '.__start_initialization_iSeries' and '.__mmu_off') Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras commit 56a4c6e31a25a218c066d8da27558a86310bbfd7 Author: Stephen Rothwell Date: Mon Jul 23 11:55:32 2007 +1000 [POWERPC] iSeries: We need vio_enable_interrupts Commit 3d0e91f7ace12499c4b00088e9a6b1361e1bb0ca introduced a requirement for vio_enable_interrupts which iSeires has never needed. So create a dummy one. Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras commit f2d32db3443157e8f50c7c86b8ff1477c27d6e3e Author: Guennadi Liakhovetski Date: Sun Jul 22 08:43:11 2007 +1000 [POWERPC] Fix RTC and device tree on linkstation machines This fixes the RTC on linkstation ppc machines again, and updates the device tree: add rtc nodes on i2c, remove bogus 0-size cache-line declarations, rename interrupt-controller nodes, remove erroneous interrupt-parent line, accidentally introduced by a recent patch. Signed-off-by: G. Liakhovetski Signed-off-by: Paul Mackerras commit d13ae8620dfdedfa7e9ab6d1eec294adc0516065 Author: Guennadi Liakhovetski Date: Sat Jul 21 06:26:15 2007 +1000 [POWERPC] Add of_register_i2c_devices() Scan the device tree for i2c devices, check their "compatible" property against a hard-coded table, and, if found, register with i2c boardinfo. This provides the infrastructure needed to find i2c devices in the device tree and register them with the i2c subsystem. This and the following commit let the linkstation work with the new i2c API and thus fix a regression. Signed-off-by: G. Liakhovetski Signed-off-by: Paul Mackerras commit 56d6d1a73d9e5ddd9eb1a7baeeda30803ba44879 Author: Manish Ahuja Date: Tue Jul 10 05:03:45 2007 +1000 [POWERPC] Fix loop with unsigned long counter variable This fixes a possible infinite loop when the unsigned long counter "i" is used in lmb_add_region() in the following for loop: for (i = rgn->cnt-1; i >= 0; i--) by making the loop counter "i" be signed. Signed-off-by: Manish Ahuja Signed-off-by: Paul Mackerras commit 141707892e92dca69b7b8af65b9367da2d1f8120 Author: Kumar Gala Date: Thu Jul 26 00:46:15 2007 -0500 [POWERPC] Fix register labels on show_regs() message for 4xx/Book-E In a show_regs() message The DEAR and ESR were reported as DAR and DSISR which only exist on classic parts. Signed-off-by: Kumar Gala commit d1c813123f3beebcffb8446929e0e917defda67f Author: Kumar Gala Date: Thu Jul 26 00:43:36 2007 -0500 [POWERPC] Only allow building of BootX text support on PPC_MULTIPLATFORM BootX text code is only supported on systems with real OF at this point which is PPC_OF && PPC_MULTIPLATFORM. Signed-off-by: Kumar Gala commit 10ce8c69d09c8dcdebe926adb2e7d28f540e2939 Author: Roy Zang Date: Fri Jul 13 17:35:33 2007 +0800 [POWERPC] Fix the ability to reset on MPC8544 DS and MPC8568 MDS boards Add global-utilities node with has-rstcr on MPC8544 DS and MPC8568 MDS boards so they are able to reset properly. Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 006af9e229bf28b59c451e8370deca87c7cc3ee6 Author: Roy Zang Date: Wed Jul 11 14:39:17 2007 +0800 [POWERPC] Fix mpc7448hpc2 tsi108 device_type bug Fix mpc7448hpc2 tsi108 device_type bug. Wrong device type will break the board startup. Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 282045b45060d5a8be0ebd13c1506551c6a0a0b8 Author: Kumar Gala Date: Thu Jul 26 00:16:05 2007 -0500 [POWREPC] Fixup a number of modpost warnings on ppc32 Fixed the following warnings: WARNING: vmlinux.o(.text+0x2934): Section mismatch: reference to .init.text:__alloc_bootmem (between 'irq_alloc_host' and 'irq_set_default_host') WARNING: vmlinux.o(.text+0xb2aa): Section mismatch: reference to .init.data:boot_command_line (between 'register_early_udbg_console' and 'udbg_printf') WARNING: vmlinux.o(.text+0xb2b2): Section mismatch: reference to .init.data:boot_command_line (between 'register_early_udbg_console' and 'udbg_printf') WARNING: vmlinux.o(.text+0xe354): Section mismatch: reference to .init.text:__alloc_bootmem (between 'pcibios_alloc_controller' and 'pci_domain_nr') WARNING: vmlinux.o(.text+0x12768): Section mismatch: reference to .init.text:update_bridge_resource (between 'quirk_fsl_pcie_transparent' and 'indirect_read_config') WARNING: vmlinux.o(.text+0x127a8): Section mismatch: reference to .init.text:update_bridge_resource (between 'quirk_fsl_pcie_transparent' and 'indirect_read_config') WARNING: vmlinux.o(.text+0x17566c): Section mismatch: reference to .init.text:pcibios_fixup_bus (between 'pci_scan_child_bus' and 'pci_scan_bus_parented') Signed-off-by: Kumar Gala commit 9a9bcf4e00281cd135e69f8d996acbbeb5aef6d0 Author: Kumar Gala Date: Thu Jul 26 00:07:36 2007 -0500 [POWERPC] Fix ethernet PHY support on MPC8544 DS The MPC8544 dts needed to set the new phy-connection-type to rgmii-id for the Vitesse PHY on the board to work properly. Signed-off-by: Kumar Gala commit 2052d6d25decc04dc05beb99348b3d78f6e3490d Author: Kumar Gala Date: Wed Jul 25 00:44:11 2007 -0500 [POWERPC] Don't try to allocate resources for a Freescale POWERPC PHB The Freescale PCI PHBs actual report back values in the BAR registers this causes issues in that we try to allocate resources for them and will get error messages like the following on MPC8544 DS: PCI: Failed to allocate mem resource #1:80000000@0 for 0000:00:00.0 To address this if we are class PCI_CLASS_PROCESSOR_POWERPC, a normal header type, and the PHB we clear out all the resources. Signed-off-by: Kumar Gala commit 77926826f301fbd8ed96d3cd9ff17a5b59560dfb Author: Paul Mackerras Date: Thu Jul 26 13:44:36 2007 +1000 Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()" This reverts commit fd6e9d3945ee122eb513ada8b17296d243c1ce5e. Having #size-cells == 0 in a node indicates that things under the node aren't directly accessible, and therefore we shouldn't try to translate addresses for devices under the node into CPU physical addresses. Some drivers, such as the nvram driver for powermacs, rely on of_address_to_resource failing if they are called for a node representing a device whose resources aren't directly accessible by the CPU. These drivers were broken by commit fd6e9d39, resulting in the "Lombard" powerbook hanging early in the boot process. Signed-off-by: Paul Mackerras commit 393618510d5349e07d71dc28fb6fc49baf0d96a0 Author: Adrian Bunk Date: Wed Jul 25 00:40:58 2007 +0200 drivers/mmc/core/: make 3 functions static This patch makes the following needlessly global functions static: - sd_ops.c: mmc_app_cmd() - core.c: __mmc_release_bus() - core.c: mmc_start_request() Signed-off-by: Adrian Bunk Signed-off-by: Pierre Ossman commit facba9179e3cd5fa91ff40bbc555c5cd4c101092 Author: Pierre Ossman Date: Tue Jul 24 21:53:43 2007 +0200 mmc: add missing printk levels Some printk:s were missing an explicit level. Signed-off-by: Pierre Ossman commit 462f104ba6a65ea2128462e2ef0c3adb18609954 Author: Pierre Ossman Date: Tue Jul 24 21:47:47 2007 +0200 mmc: remove redundant debug information from sdhci and wbsd Remove the extra debugging output that now is properly printed by the core. Signed-off-by: Pierre Ossman commit e4d217087458914a6d5d9fd034d7237e6530c619 Author: Pierre Ossman Date: Tue Jul 24 21:46:49 2007 +0200 mmc: proper debugging output in core Make sure that the debugging output in the core is complete. This should allow us to clean up all the extra debug output that each and every other host driver seems to contain. Signed-off-by: Pierre Ossman commit 109b5bed18441599b5ab0e1f3623efa5715a4703 Author: Pierre Ossman Date: Mon Jul 23 00:12:10 2007 +0200 mmc: be more verbose about card insertions/removal Let the user know that the kernel actually detected the card by printing some basic information in dmesg. Signed-off-by: Pierre Ossman commit 2986d0bf23d97d68804ccfa80965073ccf1af242 Author: Pierre Ossman Date: Sun Jul 22 17:52:06 2007 +0200 mmc: Don't hold lock when releasing an added card When the card has been added to the device model, it might be bound to a card driver. Therefore, we have to release the host lock when trying to remove it as we otherwise might deadlock with the driver. Signed-off-by: Pierre Ossman commit cf795bfb3ad4e2f8f6bb346aa8edb8272d4c70a2 Author: Pierre Ossman Date: Wed Jul 11 20:28:02 2007 +0200 mmc: add a might_sleep() to mmc_claim_host() In the normal case, the host lock can be claimed directly. When it cannot, the caller will sleep. Make sure we don't have any latent bugs by always calling might_sleep(). Signed-off-by: Pierre Ossman commit 67a61c484735de9bf4f099830ecb4ef2eca95c38 Author: Pierre Ossman Date: Wed Jul 11 20:22:11 2007 +0200 mmc: update kerneldoc Make sure the kerneldoc comments are up to date and relevant. Signed-off-by: Pierre Ossman commit 70f10482c668301c483acded13bf68780ad352b9 Author: Pierre Ossman Date: Wed Jul 11 20:04:50 2007 +0200 mmc: update header file paths Make sure all headers in the files reflect their true position in the tree. Signed-off-by: Pierre Ossman commit b8352260d28b30cb2bb2df99814fb9c360e38901 Author: Leandro Dorileo Date: Wed Jul 25 23:47:04 2007 +0200 sdhci: add support to ENE-CB714 Added its pci_id and implemented a quirk for it because this controller needs to reset cmd and data when setting ios. Signed-off-by: Leandro Dorileo Signed-off-by: Otavio Salvador Signed-off-by: Pierre Ossman commit 43b58b36b7e6554b8a96be6b9f63542c583c06e5 Author: Pierre Ossman Date: Wed Jul 25 23:15:27 2007 +0200 mmc: check error bits before command completion Some controllers signal "command complete" even on failures (which they are allowed to do according to the spec). Make sure we check the error bits first so we don't get any false positives. Signed-off-by: Pierre Ossman commit cb7e51d8b1f8e2390970f4bb7d095c414b1bf3cf Author: Sam Ravnborg Date: Wed Jul 25 22:24:52 2007 +0200 kbuild: fix modpost warnings for xtensa The Xtensa architecture places literal pools in sections separate from the instructions. The corresponsing text sections, therefore, reference the .literal section, and we have to suppress those warnings. The naming convention defines the name for a literal section as .SECTION.literal, unless .SECTION is .text. In that case the name is only .literal. Using strncmp() instead of strcmp() to compare the from-section with .SECTION.init.refok in pattern 0 should not cause any regressions for other architectures. We also need to suppress warnings for two informational sections (.xt.lit and .xt.prop) used by the Xtensa architecture. Signed-off-by: Chris Zankel Signed-off-by: Sam Ravnborg commit fd3adb2ae8e16a02dfd5ed68f50fcf76fcdaff0b Author: FUJITA Tomonori Date: Mon Jul 23 09:40:54 2007 +0900 [SCSI] simscsi: convert to use the data buffer accessors - remove the unnecessary map_single path. - convert to use the new accessors for the sg lists and the parameters. Signed-off-by: FUJITA Tomonori Acked-by: Tony Luck Signed-off-by: James Bottomley commit cb2e0912f714b116812ef5834b5ba80d894ac967 Author: Tony Luck Date: Fri Jul 20 16:14:28 2007 -0700 [IA64] Nail two more simple section mismatch errors pcibios_setup (between 'pci_setup' and 'quirk_mellanox_tavor') setup_profiling_timer (between 'write_profile' and 'delayed_put_task_struct') Signed-off-by: Tony Luck commit 9d6f40b86b47928ffde8a41cb2ef332da34b3de2 Author: Tony Luck Date: Fri Jul 20 14:39:24 2007 -0700 [IA64] fix section mismatch warnings In 741f98fe298a73c9d47ed53703c1279a29718581 Sam added full checking across the entire vmlinux image. This flushed out a dozen new section mismatch warnings. Start the whack-a-mole game again to stomp them out. Signed-off-by: Tony Luck commit 3b74d18e54e20fc1d398eb391bea5b9aed22aca5 Author: akpm@linux-foundation.org Date: Tue Jul 24 19:44:55 2007 -0700 [IA64] rename partial_page Jens has added a partial_page thing in splice whcih conflicts with the ia64 one. Rename ia64 out of the way. (ia64 chose poorly). Signed-off-by: Andrew Morton Signed-off-by: Tony Luck commit 83cda2bb37cb8476cd84659d9698ab48553be974 Author: Sam Ravnborg Date: Wed Jul 25 21:52:31 2007 +0200 kbuild: be more foregiving on init section naming In the whitelist function of modpost now use the same check to identify init_section as in other places of modpost. This has the effect that we now recognize sections named .init.text.19 as init sections and we no longer warn when we see these. At the same time make surrounding code readable by dropping use of temporary flags. Signed-off-by: Sam Ravnborg commit 2f5ee619045d923de9137b6a263a99cc2428391a Author: Sam Ravnborg Date: Wed Jul 25 21:46:40 2007 +0200 kbuild: rearrange a few function in modpost This is a preparational patch that just move two functions and add one (for now unused) function. Signed-off-by: Sam Ravnborg commit 114f51577724b782a30f4f5ceaee9880de93d776 Author: Roland McGrath Date: Mon Jul 23 01:12:08 2007 -0700 kbuild: use LDFLAGS_MODULE only for .ko links Sam Ravnborg pointed out that Documentation/kbuild/makefiles.txt already says this is what it's for. This patch makes the reality live up to the documentation. This fixes the problem of LDFLAGS_BUILD_ID getting into too many places. Signed-off-by: Roland McGrath Signed-off-by: Sam Ravnborg commit 1edf1c00acf8d9b60d436d6a0a55e395353a446c Author: Sam Ravnborg Date: Sat Jul 21 00:05:26 2007 +0200 kconfig: remove unused members from struct symbol dep and dep2 in struct symbol was unused - remove them. Signed-off-by: Sam Ravnborg Cc: Roman Zippel commit 03d29122738f0bd81afd44b1f566e64ebf8d06fe Author: Sam Ravnborg Date: Sat Jul 21 00:00:36 2007 +0200 kconfig: attach help text to menus Roman Zippel wrote: > A simple example would be > help texts, right now they are per symbol, but they should really be per > menu, so archs can provide different help texts for something. This patch does this and at the same time introduce a few API funtions used to access the help text. The relevant api functions are introduced in the various frontends. Signed-off-by: Sam Ravnborg Cc: Roman Zippel commit 4a645d5ea65baaa5736bcb566673bf4a351b2ad8 Author: Jesper Juhl Date: Fri Jul 20 02:49:23 2007 +0200 kbuild: fix up printing of Linux C Library version in scripts/ver_linux I noticed, when running scripts/ver_linux on both a Gentoo system and a Slackware system, that the line printing the C library version looked a little odd. So I fixed it up to be in line with all the rest. Old output: Linux C Library > libc.2.5 New output: Linux C Library 2.5 Signed-off-by: Jesper Juhl Signed-off-by: Sam Ravnborg commit 8d8d8289df65cb116d2721becafb37272074f25a Author: Sam Ravnborg Date: Fri Jul 20 22:36:56 2007 +0200 kbuild: do not do section mismatch checks on vmlinux in 2nd pass We already check and warn about section mismatches from vmlinux (build as vmlinux.o) during first pass so skip the checks during the 2nd pass where we process modules. Signed-off-by: Sam Ravnborg commit 4bf3b0bc3e98f77de88b336fd8d673649601b557 Author: H. Peter Anvin Date: Wed Jul 25 11:06:02 2007 -0700 [x86 setup] Make struct apm_bios_info cross-architecture struct apm_bios_info uses "unsigned short" and "unsigned long" to mean u16 and u32 respectively. Correct. Signed-off-by: H. Peter Anvin commit 238b706da1c6ebacc55986ac8668f3ede4621f2c Author: H. Peter Anvin Date: Wed Jul 18 17:19:30 2007 -0700 [x86 setup] Make struct ist_info cross-architecture, and use in setup code Make "struct ist_info" valid on both i386 and x86-64, and use the structure by name in the setup code. Additionally, "Intel SpeedStep IST" is redundant, refer to it as IST consistently. Signed-off-by: H. Peter Anvin commit f77b1ab383c8745447a3385e25729b92f2ec58a4 Author: H. Peter Anvin Date: Wed Jul 18 17:16:19 2007 -0700 [x86 setup] Fix typos in struct efi_info Fix missing letters in the structure members of struct efi_info. Signed-off-by: H. Peter Anvin commit 1a13286b104faeeb4f4bc3bfbf4d4fcdcd2569ed Author: H. Peter Anvin Date: Mon Jul 23 15:37:14 2007 -0700 [x86 setup] APM: BX should be zero when disconnecting For APM calls, BX contains the device index, which is zero for the system BIOS. Disconnect requres BX = 0. Signed-off-by: H. Peter Anvin commit 1514ab09edb071345fe17cd230c97f9e72c9478e Author: Mikael Pettersson Date: Tue Jul 24 00:25:59 2007 +0200 [x86 setup] APM detection logic bug fix Starting with kernel 2.6.23-rc1, the i386 APM driver fails on several of my machines with the message: apm: BIOS not found This happens because of a bug in the i386 boot code rewrite from assembler to C. The original assembly code had the following code in its APM BIOS presence test (boot/setup.S): andw $0x02, %cx # Is 32 bit supported? je done_apm_bios # No 32-bit, no (good) APM BIOS That is, the code bails out if bit 2 is zero. In the new C version, this is coded as (boot/apm.c): if (cx & 0x02) /* 32 bits supported? */ return -1; Here we see that the test has been accidentally inverted. The fix is to negate the test. I've verified that this allows the APM driver to work again on my affected machines. Signed-off-by: Mikael Pettersson Signed-off-by: H. Peter Anvin commit a07ee86205808d36973440e68c7277f9ed63b87f Author: Horms Date: Wed Jul 25 16:06:25 2007 +0900 [IA64] Ensure that machvec is set up takes place before serial console Parse the machvec command line option outside of the early_param() so that ia64_mv is set before any console intialisation that may result from early_param parsing. Signed-off-by: Simon Horman Signed-off-by: Tony Luck commit 6ffbc82351c62eeeeaeb9e817ddf93049353493d Author: Kenji Kaneshige Date: Wed Jul 25 17:59:22 2007 +0900 [IA64] vector-domain - fix vector_table Fix wrong access to vector_table[]. Signed-off-by: Kenji Kaneshige Signed-off-by: Tony Luck commit 8f5ad1a8227aa110d633b5ed04dde535381c16c7 Author: Yasuaki Ishimatsu Date: Tue Jul 24 22:09:09 2007 +0900 [IA64] vector-domain - handle assign_irq_vector(AUTO_ASSIGN) This change fixes a panic when assign_irq_vector(irq) is called with irq = AUTO_ASSIGN. Signed-off-by: Yasuaki Ishimatsu Signed-off-by: Tony Luck commit bc72450aebe73587f80bbae8fc0b62c3d81b85fe Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: make BOOTPARAM setup common Currently most of the m68knommu cpu/board setup files are handling the setup of fixed boot parameters (via CONFIG_BOOTPARAM) themselves. Move all this into the common setup code. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 020f9e16c306f929382ad81e5a0ecf4f41887616 Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: fix reset register address casting Fix types used for reset register address setup. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 906a2621fc14005ac6e29a2b85aa8685b68bb016 Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: add configure support for Intec boards Add configure support for the Intec Wildfire and WildFireMod boards. Signed-Off-By: Steve Bennett Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 7160a67305f08d52284b333f1403abbf8b0a1970 Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: simplify ColdFire resume code It is useless to preserve THREAD_SR in `resume'. The real user's sr is actually in the stack. We also don't need to disable interrupts : we'll never be in an invalid state, the sp switch is atomic. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 063586a6b1e877eb10621d191aeb67e361383d77 Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: create hw_irq.h Need an include/asm-m68knommu/hw_irq.h for kernel/hrtimer.c Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit a6fcafd09959cf9204f0cdb7a2545ffd7d95d5dd Author: Philippe De Muyter Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: fix definition of MCFDMA_DIR_INV Fix a small typo in the definition of MCFDMA_DIR_INV (MCF5272 specific). Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 33e7a72a9c7ebb822d419a07840c3546513feff0 Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: add build support for more Arcturus boards Add build support for the new Arcturus boards. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 85e026bc0d9c9962de5ad65e3be40733f0f8d99c Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: need to include linux/device.h in dma.c Need to explicitly include linux/device.h. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 5c4f5264d503f0650c954a181b0ba255913bb382 Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: fix tick timer definition for coldfire CLOCK_TICK_RATE should give the underlying frequency of the tick timer, to make ntp happy. For Coldfires, that's the main clock. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 36995223872df6642e604aab2be84377a5d12a19 Author: David Wu Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: add configure support for more Arcturus boards Add configure support for the Arcturus UC5272 and UC5282 boards. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 931f9cde5c3f9dc7827759db258eaf979bfa92b6 Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: fix workqueues in 68328 serial driver Fix workqueues in 68328 serial driver. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit a427138712f388987aa13475bf591685b6b8cd46 Author: Greg Ungerer Date: Wed Jul 25 22:07:20 2007 +1000 m68knommu: remove legacy power managament from 68328 serial driver Remove the legacy power management code from the 68328 serial driver. It is not used, and there is no current kernel support for power management on the 68328. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds commit 17c38b7490b3f0300c7812aefdae2ddda7ab4112 Author: john stultz Date: Tue Jul 24 18:38:34 2007 -0700 Cache xtime every call to update_wall_time This avoids xtime lag seen with dynticks, because while 'xtime' itself is still not updated often, we keep a 'xtime_cache' variable around that contains the approximate real-time that _is_ updated each time we do a 'update_wall_time()', and is thus never off by more than one tick. IOW, this restores the original semantics for 'xtime' users, as long as you use the proper abstraction functions (ie 'current_kernel_time()' or 'get_seconds()' depending on whether you want a timespec or just the seconds field). [ Updated Patch. As penance for my sins I've also yanked another #ifdef that was added to avoid the xtime lag w/ hrtimers. ] Signed-off-by: John Stultz Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Linus Torvalds commit 2c6b47de17c75d553de3e2fb426d8298d2074585 Author: john stultz Date: Tue Jul 24 17:47:43 2007 -0700 Cleanup non-arch xtime uses, use get_seconds() or current_kernel_time(). This avoids use of the kernel-internal "xtime" variable directly outside of the actual time-related functions. Instead, use the helper functions that we already have available to us. This doesn't actually change any behaviour, but this will allow us to fix the fact that "xtime" isn't updated very often with CONFIG_NO_HZ (because much of the realtime information is maintained as separate offsets to 'xtime'), which has caused interfaces that use xtime directly to get a time that is out of sync with the real-time clock by up to a third of a second or so. Signed-off-by: John Stultz Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Linus Torvalds commit 910949a66839ff5f59fede5b7cb68ecf1453e22c Author: Venkat Yekkirala Date: Tue Jul 24 09:53:23 2007 -0500 SELinux: null-terminate context string in selinux_xfrm_sec_ctx_alloc xfrm_audit_log() expects the context string to be null-terminated which currently doesn't happen with user-supplied contexts. Signed-off-by: Venkat Yekkirala Acked-by: Stephen Smalley Signed-off-by: James Morris commit d37c85571904a622cbabc7a2e04b8c919de75ac0 Author: Aurelien Jarno Date: Wed Jul 25 10:19:54 2007 +0200 KVM: disable writeback for 0x0f 0x01 instructions. 0x0f 0x01 instructions (ie lgdt, lidt, smsw, lmsw and invlpg) does not use writeback. This patch set no_wb=1 when emulating those instructions. This fixes a regression booting the FreeBSD kernel on AMD. Signed-off-by: Aurelien Jarno Signed-off-by: Avi Kivity commit 4c981b43d7ec18818754bf85b829865abd0ce340 Author: Avi Kivity Date: Wed Jul 25 09:22:12 2007 +0300 KVM: Fix removal of nx capability from guest cpuid Testing the wrong bit caused kvm not to disable nx on the guest when it is disabled on the host (an mmu optimization relies on the nx bits being the same in the guest and host). This allows Windows to boot when nx is disabled on te host (e.g. when host pae is disabled). Signed-off-by: Avi Kivity commit 7cfa4b0a43286b1da3afa4f5f99d52e65a8f30fc Author: Avi Kivity Date: Mon Jul 23 18:33:14 2007 +0300 Revert "KVM: Avoid useless memory write when possible" This reverts commit a3c870bdce4d34332ebdba7eb9969592c4c6b243. While it does save useless updates, it (probably) defeats the fork detector, causing a massive performance loss. Signed-off-by: Avi Kivity commit 5e58cfe41c7e5902c32bb7f62993d43fb4c48ccf Author: Rusty Russell Date: Mon Jul 23 17:08:21 2007 +1000 KVM: Fix unlikely kvm_create vs decache_vcpus_on_cpu race We add the kvm to the vm_list before initializing the vcpu mutexes, which can be mutex_trylock()'ed by decache_vcpus_on_cpu(). Signed-off-by: Rusty Russell Signed-off-by: Avi Kivity commit b0fcd903e6f3f47189baddf3fe085bdf78c9644c Author: Avi Kivity Date: Sun Jul 22 18:48:54 2007 +0300 KVM: Correctly handle writes crossing a page boundary Writes that are contiguous in virtual memory may not be contiguous in physical memory; so split writes that straddle a page boundary. Thanks to Aurelien for reporting the bug, patient testing, and a fix to this very patch. Signed-off-by: Aurelien Jarno Signed-off-by: Avi Kivity commit 7659c038d3d0a635b5aeff04aed523d7b6c1dde8 Author: Kumar Gala Date: Wed Jul 25 00:29:53 2007 -0500 [POWERPC] Fix PCI indirect for big-endian cfg_addr We didn't actually propogate the flag we pass into setup_indirect_pci() to set indirect_type and thus were getting the wrong endianness if PPC_INDIRECT_TYPE_BIG_ENDIAN was set. Also, we need to or in additional flags rather than just doing a direct assignment. Signed-off-by: Kumar Gala commit e8b2fd01228f690c3e0cb3f14facfa8d93d4adae Author: Len Brown Date: Tue Jul 24 22:26:33 2007 -0400 ACPI: Kconfig: remove CONFIG_ACPI_SLEEP from source As it was a synonym for (CONFIG_ACPI && CONFIG_X86), the ifdefs for it were more clutter than they were worth. For ia64, just add a few stubs in anticipation of future S3 or S4 support. Signed-off-by: Len Brown commit c30c620ee1cc351bcc149c4280e1166998df0064 Author: Len Brown Date: Wed Jul 25 00:57:46 2007 -0400 ACPI: quiet ACPI Exceptions due to no _PTC or _TSS ACPI Exception (processor_throttling-0084): AE_NOT_FOUND, Evaluating _PTC [20070126] ACPI Exception (processor_throttling-0147): AE_NOT_FOUND, Evaluating _TSS [20070126] These methods are optional, so Linux should not alarm users when they are not found. http://bugzilla.kernel.org/show_bug.cgi?id=8802 Signed-off-by: Len Brown Acked-by: Luming Yu commit 870e8a24380cf1854dc1bb5fa5abebb44d82674b Author: Magnus Damm Date: Wed Jul 25 10:49:21 2007 +0900 sh: remove support for sh73180 and solution engine 73180 This patch removes old dead code: - kill off sh73180 cpu support - get rid of broken solution engine 73180 board support Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 347b9bdddbc38cfd46c27b3345e7facf651ecb92 Author: Magnus Damm Date: Wed Jul 25 10:46:32 2007 +0900 sh: remove old broken pint code The code in arch/sh/kernel/cpu/irq/pint.c doesn't compile, so let's get rid of it to make space for a future pint implementation on top of intc. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit f0b859e3d63a07995f0db294864c2f3c9228f1e4 Author: Paul Mundt Date: Wed Jul 25 10:43:47 2007 +0900 sh: Reclaim beginning of P3 space for vmalloc area. The first 1MB of P3 space was reserved and used for page colouring, as we've reworked that to use fixmaps, we can reclaim the space and hand it back to VMALLOC_START. Signed-off-by: Paul Mundt commit 3836df6b520a2f93033bf53200b12a2cb5137395 Author: Jens Axboe Date: Tue Jul 24 10:17:50 2007 +0200 ocfs2: bad kunmap_atomic() kunmap_atomic() takes the virtual address, not the mapped page as argument. Signed-off-by: Jens Axboe Cc: Mark Fasheh Signed-off-by: Linus Torvalds commit 147e505e23a2bda35689876af48f201d527dde91 Author: Chip Coldwell Date: Wed May 23 14:41:38 2007 -0700 [SCSI] sym53c8xx: don't claim cpqarray device Apropos this thread http://marc.theaimsgroup.com/?l=linux-scsi&m=115591706804045&w=2 which led to this patch http://www.kernel.org/git/?p=linux/kernel/git/jejb/scsi-rc-fixes-2.6.git;a=commit;h=b2b3c121076961333977f485f0d54c22121df920 We also need to fix sym53c8xx only to bind to the PCI ID if it is of device class PCI_CLASS_STORAGE_SCSI (otherwise it will be the cpqarray RAID device). Signed-off-by: Chip Coldwell Cc: Matthew Wilcox Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit 3f5f4346b6d3c8bc33780a941da2473c4be2c989 Author: Andrew Morton Date: Tue Jul 24 15:37:11 2007 -0700 [8021Q]: vlan_ioctl_handler: fix return value net/8021q/vlan.c: In function 'vlan_ioctl_handler': net/8021q/vlan.c:700: warning: 'err' may be used uninitialized in this function The warning is incorrect, but from my reading this ioctl will return -EINVAL on success. Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 79d310d01ec2a55e0ac1810aee56886ebee58c53 Author: Thomas Graf Date: Tue Jul 24 15:34:53 2007 -0700 [GENETLINK]: Correctly report errors while registering a multicast group Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 2c04ddb707b4d50c314186249f466b6720ee4289 Author: Thomas Graf Date: Tue Jul 24 15:33:51 2007 -0700 [GENETLINK]: Fix adjustment of number of multicast groups The current calculation of the maximum number of genetlink multicast groups seems odd, fix it. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 79dc4386aec655ad829f320ab90888bacbc7037b Author: Thomas Graf Date: Tue Jul 24 15:32:46 2007 -0700 [GENETLINK]: Fix race in genl_unregister_mc_groups() family->mcast_groups is protected by genl_lock so it must be held while accessing the list in genl_unregister_mc_groups(). Requires adding a non-locking variant of genl_unregister_mc_group(). Signed-off-by: Thomas Graf Signed-off-by: David S. Miller commit 85ccc365e91de9f0053c94de4cbc6ce97f8170e7 Author: Jesper Juhl Date: Tue Jul 24 15:31:05 2007 -0700 [NETFILTER]: Clean up duplicate includes in net/netfilter/ This patch cleans up duplicate includes in net/netfilter/ Signed-off-by: Jesper Juhl Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 62c7931873f203ce4ad8f62942b43a1126b37378 Author: Jesper Juhl Date: Tue Jul 24 15:30:30 2007 -0700 [NETFILTER]: Clean up duplicate includes in net/bridge/ This patch cleans up duplicate includes in net/bridge/ Signed-off-by: Jesper Juhl Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit 7e2acc7e2711d51705373ac201333c9a0ebd3950 Author: Patrick McHardy Date: Tue Jul 24 15:29:55 2007 -0700 [NETFILTER]: Fix logging regression Loading one of the LOG target fails if a different target has already registered itself as backend for the same family. This can affect the ipt_LOG and ipt_ULOG modules when both are loaded. Reported and tested by: Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller commit ca983cefd950ec929582dd95ba6e46d12c2c6959 Author: YOSHIFUJI Hideaki Date: Tue Jul 24 15:27:30 2007 -0700 [TCPv6] MD5SIG: Ensure to reset allocation count to avoid panic. After clearing all passwords for IPv6 peers, we need to set allocation count to zero as well as we free the storage. Otherwise, we panic when a user trys to (re)add a password. Discovered and fixed by MIYAJIMA Mitsuharu . Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 1966287dfa07b2aa125009587a5d2b8375775c53 Author: David S. Miller Date: Tue Jul 24 15:17:33 2007 -0700 [SPARC64]: Mark most of initial bootup asm as .text.init.ref_ok We can't mark the whole thing init because there are dependencies in bootloaders that assume that _start, or whatever the image entry value, is 2 instructions before the "HdrS" signature. In fact, TILO assumes this entry is always at 0x4000, yikes! Also, right after the bootloader info area there are OBP strings and values that get used later in the boot process, and those are not all provably .init yet. Signed-off-by: David S. Miller commit 1bf1496d41756496db2fcf4c8f1932b9762232f6 Author: Wim Van Sebroeck Date: Tue Jul 24 21:55:06 2007 +0000 [WATCHDOG] omap_wdt.c - default error for IOCTL is -ENOTTY The default value for an unknown ioctl call is -ENOTTY. Signed-off-by: Wim Van Sebroeck commit 6abe78bf195c633f67f6349e3d09b2bcd5d32a79 Author: Wim Van Sebroeck Date: Tue Jul 24 21:38:37 2007 +0000 [WATCHDOG] Return value of nonseekable_open Return the value of the nonseekable_open function and not 0. Signed-off-by: Wim Van Sebroeck commit f18699940cf2952ce6bc4ea79eda6d37616275e0 Author: Dale Farnsworth Date: Tue Jul 24 11:31:25 2007 -0700 [WATCHDOG] mv64x60_wdt: Rework the timeout register manipulation Consolidate the timeout config register modification into a single function. Also, use the enabled flag in the config register to determine whether the timer is enabled instead of a separately maintained flag, MV64x60_WDOG_FLAG_ENABLED. Add spinlock protection around enabling/disabling the watchdog timer. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit 2422df5e26fbf40449d393e01d257badf211a61a Author: Dale Farnsworth Date: Tue Jul 24 11:19:47 2007 -0700 [WATCHDOG] mv64x60_wdt: disable watchdog timer when driver is probed Make sure that we disable the watchdog at start-up. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit bf2fc92cae3630301d98b9faa38c1a98bb57d801 Author: Dale Farnsworth Date: Tue Jul 24 11:18:14 2007 -0700 [WATCHDOG] mv64x60_wdt: Support the WDIOF_MAGICCLOSE feature Disallow disabling of the watchdog timer unless a particular character ('V') was recently written to the watchdog device. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit d37a5c3ddf7f57fdc0632e279eabb1772f89dfc5 Author: Dale Farnsworth Date: Tue Jul 24 11:17:23 2007 -0700 [WATCHDOG] mv64x60_wdt: Add a module parameter to change nowayout setting Also, use the WATCHDOG_NOWAYOUT macro, rather than #ifdefs, and use __module_get to prevent module unloading if WATCHDOG_NOWAYOUT is set. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit 85d57238d2ff9d95892dd1f266b85d2359d48dcc Author: Dale Farnsworth Date: Tue Jul 24 11:16:29 2007 -0700 [WATCHDOG] mv64x60_wdt: Add WDIOC_SETOPTIONS ioctl support Allow the watchdog timer to be enabled or disabled via the WDIOC_SETOPTIONS ioctl. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit 94796f908788b3ea2b6e60e5272f4e26cea3fc22 Author: Dale Farnsworth Date: Tue Jul 24 11:15:26 2007 -0700 [WATCHDOG] mv64x60_wdt: Support for WDIOC_SETTIMEOUT ioctl Add the ability to modify the watchdog timer timeout interval. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit 264f09915a6ad9e274abd027459232881742cb1a Author: Dale Farnsworth Date: Tue Jul 24 11:14:21 2007 -0700 [WATCHDOG] mv64x60_wdt: Fix WDIOC_GETTIMEOUT return value WDIOC_GETTIMEOUT returns seconds, not jiffies. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit 861e5137708be1a7988f024a09d81c2f6accfb75 Author: Dale Farnsworth Date: Tue Jul 24 11:13:26 2007 -0700 [WATCHDOG] mv64x60_wdt: Check return value of nonseekable_open Return the value of the nonseekable_open function and not 0. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit 7e07a15913e2e1fd99fb77c4c848437bd99a8d5f Author: Dale Farnsworth Date: Tue Jul 24 11:12:24 2007 -0700 [WATCHDOG] mv64x60_wdt: Add arch/powerpc platform support Add support for arch/powerpc, specifically for the prpmc2800 platform. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit 8a5cfa648347ab04e63a7f5e3699768d1f9bf00d Author: Dale Farnsworth Date: Tue Jul 24 11:09:18 2007 -0700 [WATCHDOG] mv64x60_wdt: Get register address from platform data Previously, the address of the watchdog timer registers was retrieved by calling a global function, mv64x60_get_bridge_vbase(). That function doesn't exist in arch/powerpc. Instead, we now get the register address from a platform data resource and ioremap the registers within the driver. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit 64a8170975947978ea4094dd6c4b1f41119d6ae6 Author: Alan Cox Date: Tue Jul 24 15:17:48 2007 +0100 pata_hpt37x: Fix 2.6.22 clock PLL regression Just one version of Linux ago The PLL code broke - oh no! But set the right mode And fix up the code Makes the PLL timing sync go [whatever happened to the sailor from Nantucket, hero of many limericks? -jg] Closes-bug: #8791 Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit 5c8d52015c09b42632a73896f8a80cff64c5c1d1 Author: Alan Cox Date: Fri Jul 20 15:34:49 2007 +0100 pata_ali: Correct HP detect Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik commit b8b275efc28e34f9b1d1e382d0b02dfa381b2a79 Author: Tejun Heo Date: Tue Jul 10 15:55:43 2007 +0900 ata_piix: fix suspend/resume for some TOSHIBA laptops ACPI implementations in several TOSHIBA laptops are weird and burn cpu cycles for tens of seconds while trying to suspend if the PCI device for the ATA controller is disabled when the ACPI suspend is called. This patch uses DMI to match those machines and bypass device disable on those machines during suspend. As the device needs to be put into enabled state on resume without affecting PCI enable count, matching resume callback uses __pci_reenable_device(). This bug is reported in bugzilla bug 7780. http://bugzilla.kernel.org/show_bug.cgi?id=7780 Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit f0a664bbd1839fbe9f57564983f39bfc6c6f931d Author: Tejun Heo Date: Tue Jul 10 15:36:05 2007 +0900 PCI: export __pci_reenable_device() Some odd ACPI implementations choke if certain controller is disabled when ACPI suspend is invoked but we still need to make sure the PCI device is enabled during resume. Simply using pci_enable_device() unbalances device enable count. Export __pci_reenable_device(). Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit f61698e6489f229f9fcfe29e68f228389a772993 Author: Alexander Shmelev Date: Tue Jul 24 13:41:44 2007 -0700 [SPARC32]: Fix bug in sparc optimized memset. Sparc optimized memset (arch/sparc/lib/memset.S) does not fill last byte of the memory area, if area size is less than 8 bytes and start address is not word (4-bytes) aligned. Here is code chunk where bug located: /* %o0 - memory address, %o1 - size, %g3 - value */ 8: add %o0, 1, %o0 subcc %o1, 1, %o1 bne,a 8b stb %g3, [%o0 - 1] This code should write byte every loop iteration, but last time delay instruction stb is not executed because branch instruction sets "annul" bit. Patch replaces bne,a by bne instruction. Error can be reproduced by simple kernel module: -------------------- #include #include #include #include #include static void do_memset(void **p, int size) { memset(p, 0x00, size); } static int __init memset_test_init(void) { char fooc[8]; int *fooi; memset(fooc, 0xba, sizeof(fooc)); do_memset((void**)(fooc + 3), 1); fooi = (int*) fooc; printk("%08X %08X\n", fooi[0], fooi[1]); return -1; } static void __exit memset_test_cleanup(void) { return; } module_init(memset_test_init); module_exit(memset_test_cleanup); MODULE_LICENSE("GPL"); EXPORT_NO_SYMBOLS; -------------------- Signed-off-by: Alexander Shmelev Signed-off-by: David S. Miller commit 88accb498fc92998d7b30b7515ba39f3e6070978 Author: Geert Uytterhoeven Date: Fri Jul 20 18:40:45 2007 +0200 netdev: i82596 Ethernet needs netdev: i82596 Ethernet needs on m68k drivers/net/82596.c: In function 'init_rx_bufs': drivers/net/82596.c:552: error: implicit declaration of function 'cache_clear' drivers/net/82596.c: In function 'i596_start_xmit': drivers/net/82596.c:1104: error: implicit declaration of function 'cache_push' The driver still compiles on ia32 (CONFIG_APRICOT=y) Signed-off-by: Geert Uytterhoeven Signed-off-by: Jeff Garzik commit 1398661b0d5f8570704fc267c9323cf1dde61e0a Author: Ayaz Abdulla Date: Sun Jul 22 20:43:26 2007 -0400 forcedeth: mcp73 device addition This patch contains new device settings for MCP73 chipset. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit 6a0e09af44ef0ee7bf68bf89c8fd65eed0092d7a Author: Ayaz Abdulla Date: Sun Jul 22 20:43:15 2007 -0400 forcedeth: new device ids in pci_ids.h This patch contains new device ids for MCP73 chipset. Signed-Off-By: Ayaz Abdulla Signed-off-by: Jeff Garzik commit 3d2557f681162ff6a483ae689072f9811e6a6d8d Author: Chris Snook Date: Mon Jul 23 16:38:39 2007 -0400 atl1: make atl1_init_ring_ptrs static Sparse (correctly) thinks this function should be static. Make it so. Signed-off-by: Chris Snook Signed-off-by: Jeff Garzik commit 8d22c9711aa5e704fc5f89027f5cf64838767c98 Author: Jan-Bernd Themann Date: Mon Jul 23 16:05:03 2007 +0200 eHEA: net_poll support net_poll support for eHEA added Signed-off-by: Jan-Bernd Themann Signed-off-by: Jeff Garzik commit dde9f93c205a791c5647c14d43003c578ebf6f2d Author: Adrian Bunk Date: Mon Jul 23 10:02:32 2007 +0200 drivers/net/acenic.c: fix check-after-use The Coverity checker noted that we've already dereferenced "dev" when we check whether it's NULL. Since it's impossible that "dev" is NULL at this place this patch removes the NULL check. Signed-off-by: Adrian Bunk Signed-off-by: Jeff Garzik commit fcdff13905934874016f1899b15a9221c055d6ea Author: Maciej W. Rozycki Date: Fri Jul 20 13:14:07 2007 +0100 defxx: Use __maybe_unused rather than a local hack This is a change to remove a local hack in favour to __maybe_unused that has been recently added. Signed-off-by: Maciej W. Rozycki Signed-off-by: Jeff Garzik commit 52cb1c2b70d9d2a81e842b90456b7a8158541ffd Author: Andy Fleming Date: Wed Jul 18 01:06:28 2007 -0500 Fix error checking in Vitesse IRQ config phy_read() returns a negative number if there's an error, but the error-checking code in the Vitesse driver's config_intr function triggers if phy_read() returns non-zero. Correct that. Signed-off-by: Andy Fleming Signed-off-by: Jeff Garzik commit fe6d3a4049ec9d859d75ddfcc6865a0f58178924 Author: Masakazu Mokuno Date: Fri Jul 20 17:39:25 2007 +0900 ps3: reduce allocation size of rx skb buffers Reduced allocation size for rx skb buffers, from 2308 bytes to 1356 per buffer. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit a3093d9b07101f2461f88dfd0a20aaaa8853e976 Author: Jay Cliburn Date: Thu Jul 19 18:45:14 2007 -0500 atl1: use kernel provided ethernet length constants Use constants already provided by the kernel for ethernet related lengths. Signed-off-by: Jay Cliburn Signed-off-by: Jeff Garzik commit ef76e3e2505db01f7d4b537854f4a177220c26c8 Author: Jay Cliburn Date: Thu Jul 19 18:45:13 2007 -0500 atl1: fix typo in dma_req_block s/dam/dma Signed-off-by: Jay Cliburn Signed-off-by: Jeff Garzik commit 91a500ac5654766e4d9a6502dfcceb7e0a235f98 Author: Jay Cliburn Date: Thu Jul 19 18:45:12 2007 -0500 atl1: change cmb write threshold Change the threshold number of descriptors used to trigger CMB writes. The vendor reports that under certain conditions this will reduce the number of unnecessary tx interrupts and improve rx performance. This change is lifted directly from vendor version 1.2.40.2 of the L1 driver. Signed-off-by: Jay Cliburn Signed-off-by: Jeff Garzik commit 3f516c00d416bd39aab6cfb348b68919e295fe23 Author: Jay Cliburn Date: Thu Jul 19 18:45:11 2007 -0500 atl1: fix typo in DMA engine setup The DMA engine setup contains a typo that can result in an incorrect dmaw_block setting. Signed-off-by: Jay Cliburn Signed-off-by: Jeff Garzik commit e6a7ff4a617ad3f6a59e2576d430b9292299d067 Author: Jay Cliburn Date: Thu Jul 19 18:45:10 2007 -0500 atl1: change tpd_avail function name Change tpd_avail() to atl1_tpd_avail(). Signed-off-by: Jay Cliburn Signed-off-by: Jeff Garzik commit 583aae1094d28aa1d58360318388c11d2ae7ed9c Author: Masakazu Mokuno Date: Fri Jul 20 17:35:54 2007 +0900 ps3: fix rare issue that reenabling rx DMA fails Fixed rare issue that 'lv1_net_start_rx_dma failed, status=-9" was shown in dmesg. This meant restarting rx DMA had been rejected by the hypervisor. This issue would caused if the guest os requested starting DMA when the hypervisor thought the DMA was in progress. The state machine for DMA status of the hypervisor would be updated by processing interrupt in the hypervisor. Thus we should wait for the interrupt delivery before restarting DMA. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit 39a3d2d19cc8dc9d7ec3a1fefe95d7de0c6dc317 Author: Masakazu Mokuno Date: Fri Jul 20 17:34:07 2007 +0900 ps3: removed calling netif_poll_enable() in open() Removed use of netif_poll_enable() in open function. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit f0861f82d9976fab8624f056fa6880e6f420e89f Author: Masakazu Mokuno Date: Fri Jul 20 17:33:02 2007 +0900 ps3: use ethX as the name of irq Use net_device name for registration of irq as many network drivers do. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit 92548d601c45d76db337795d71c34846631dc7d6 Author: Masakazu Mokuno Date: Fri Jul 20 17:31:07 2007 +0900 ps3: use net_device_stats of net_device structure Removed the statistics information from private structre. Instead, use net_device_stats in net_device structure. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit 78f710dc186f34fb14d8b22a33749a56013e7b85 Author: Masakazu Mokuno Date: Fri Jul 20 17:28:59 2007 +0900 ps3: removed conditional ethtool support Removed conditional ethtool support. Always enabled. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit b3bd6fe96da32e4e818b51826f04349cee9b15ba Author: Masakazu Mokuno Date: Fri Jul 20 17:27:12 2007 +0900 ps3: removed defines no longer used Removed defines no longer used. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit 48544cc267da96a85e4d38aa1999a011229948d6 Author: Masakazu Mokuno Date: Fri Jul 20 17:24:56 2007 +0900 ps3: tx descriptor handling cleanup gelic: TX descriptor handling cleanup - Emitted return value of NETDEV_TX_LOCKED when DMA map or kick failure. Now it would free the skb, update drop packet statistics and return OK. Requested from Jeff Garzik. - Enable tx queue if number of free descriptors are more than 2 - Fixed descriptor leak if dma map for second descriptor failed - Stopped calling xmit handler from interrupt handler in order to recheck tx queue. Instead, call appropriate helper functions. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit ea6992aa1f6ed514fe450f46befa56d8d2b6a7fb Author: Masakazu Mokuno Date: Fri Jul 20 17:22:51 2007 +0900 ps3: some minor cleanups - Removed the embarrassing definition which was used in only one place. - Fixed wrong initialization of dmac_cmd_status. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit 9f6c9a8c50bc84ec748fec779ead321ee2b2debc Author: Masakazu Mokuno Date: Fri Jul 20 17:20:54 2007 +0900 ps3: fix wrong calculation of rx descriptor address Fixed the bug that calculation of the address of rx descriptor was wrong. Signed-off-by: Masakazu Mokuno Signed-off-by: Jeff Garzik commit ceded32f097ba753fb4d339ad5c74f265ea8a03d Author: dhananjay@netxen.com Date: Thu Jul 19 14:41:09 2007 +0530 netxen: Load firmware during probe, dma watchdog fix. The firmware should be loaded after resetting hardware during PCI probe, besides module unload. This fixes issue with 2nd port of multiport adapter on powerpc blades. This patch also fixes a bug that PCI resources are not freed if dma watchdog shutdown failed. The dma watchdog poll messages during module unload are also suppressed. Signed-off-by: Dhananjay Phadke Signed-off-by: Milan Bag Signed-off-by: Wen Xiong Signed-off-by: Jeff Garzik commit 890de95e8fe617a978e0fcad3c5dd2be99db4532 Author: Li Yang Date: Thu Jul 19 11:48:29 2007 +0800 ucc_geth: add support to netif message level Adds netif message level control to the ucc_geth driver. The level can be set by module parameter and ethtool. Signed-off-by: Li Yang Signed-off-by: Jeff Garzik commit ac421852b3a01e7440ac7bb2e635b60a99d0a391 Author: Li Yang Date: Thu Jul 19 11:47:47 2007 +0800 ucc_geth: add ethtool support The patch enables statistics in ucc_geth and adds ethtool support to ucc_geth driver. Signed-off-by: Li Yang Signed-off-by: Jeff Garzik commit 1b64e7abe742c0d32cdb1545d9a67f80cc6e81f3 Author: David S. Miller Date: Sun Jul 22 19:25:03 2007 -0700 [SPARC64]: Update defconfig. Signed-off-by: David S. Miller commit 0c0d345e2516dd6285834e6b0d54825e40823d5a Author: David S. Miller Date: Sun Jul 22 19:19:05 2007 -0700 [SPARC]: Add missing NOTES section. This fixes boot failures when the build-id LD option is actually used, because without it we end up with multiple PT_LOAD sections which the SILO boot loader cannot handle. Signed-off-by: David S. Miller commit 86ac92ee694e3cd5991c076bab2f4c63526f38bc Author: Al Viro Date: Sun Jul 22 00:38:24 2007 -0700 [SPARC32]: missing exports Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 2240598c24683df1e1a6cdd1f461efd85547903c Author: Al Viro Date: Sun Jul 22 00:37:48 2007 -0700 [SPARC32]: Deal with rtc/sun_mostek_rtc conflict. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 719be62903a6e6419789557cb3ed0e840d3e4ca9 Author: Alan Cox Date: Mon Jul 23 14:51:05 2007 +0100 aacraid: fix security hole On the SCSI layer ioctl path there is no implicit permissions check for ioctls (and indeed other drivers implement unprivileged ioctls). aacraid however allows all sorts of very admin only things to be done so should check. Signed-off-by: Alan Cox Acked-by: Mark Salyzyn Signed-off-by: Linus Torvalds commit b8c1c5da1520977cb55a358f20fc09567d40cad9 Author: Andrew Morton Date: Tue Jul 24 12:02:40 2007 -0700 slab: correctly handle __GFP_ZERO Use the correct local variable when calling into the page allocator. Local `flags' can have __GFP_ZERO set, which causes us to pass __GFP_ZERO into the page allocator, possibly from illegal contexts. The page allocator will later do prep_zero_page()->kmap_atomic(..., KM_USER0) from irq contexts and will then go BUG. Cc: Mike Galbraith Acked-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 01e457cfcd5b6b6f18d0bb8cec0c5d43df56557e Author: Arnd Bergmann Date: Mon Jul 23 18:44:00 2007 -0700 loop.h build fix include/linux/loop.h:66: error: expected specifier-qualifier-list before 'request_queue_t' Cc: Sebastian Siewior Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ab3ee7b1cd5c91eb2272764f9d7d1fe4749681e Author: Ken Chen Date: Mon Jul 23 18:44:00 2007 -0700 fix hugetlb page allocation leak dequeue_huge_page() has a serious memory leak upon hugetlb page allocation. The for loop continues on allocating hugetlb pages out of all allowable zone, where this function is supposedly only dequeue one and only one pages. Fixed it by breaking out of the for loop once a hugetlb page is found. Signed-off-by: Ken Chen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit be1ff386e768ee4fc19bb7da48cee4fc4cb4e75b Author: David Brownell Date: Mon Jul 23 18:43:57 2007 -0700 minor gpio doc update Fix doc bug noted by Uwe Kleine-König: gpio_set_direction() is long gone, replaced by gpio_direction_input() and gpio_direction_output(). Signed-off-by: David Brownell Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6570c45995a6339597462434a81f358a38941ac4 Author: Rusty Russell Date: Mon Jul 23 18:43:56 2007 -0700 link lguest example launcher non-static S.Caglar Onur points out that many distributions don't ship a static zlib. Unfortunately the launcher currently maps virtual device memory where shared libraries want to go. The solution is to pre-scan the args to figure out how much memory we have, then allocate devices above that, rather than down from the top possible address. This also turns out to be simpler. Signed-off-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6ddb23c78aeef40f549c5ad22a3e8dfa1f8297e0 Author: Stephen Rothwell Date: Mon Jul 23 18:43:55 2007 -0700 fault_inject: silence a warning lib/fault-inject.c:168: warning: 'debugfs_create_ul_MAX_STACK_TRACE_DEPTH' defined but not used Signed-off-by: Stephen Rothwell Cc: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d316ee5787153765980ca0f55ee864ec883979ab Author: Al Viro Date: Mon Jul 23 18:43:54 2007 -0700 Fix failure exits in asus-laptop Fallout from f8a7c6fe14f556ca8eeddce258cb21392d0c3a2f. However, looking at it shows that checks done in ASUS_LED_UNREGISTER() can't trigger at all (we never get to asus_led_exit() if registration fails) and if that registration fails, we actually leak stuff. IOW, it's worse than just replacing class_dev with dev in there - the tests themselves had been papering over the lousy cleanup logics. Signed-off-by: Al Viro Michal Piotrowski Cc: Corentin Chary Cc: Karol Kozimor Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c51aea80a9fbb423b49d432e89e515257bb2b983 Author: Adrian Bunk Date: Mon Jul 23 18:43:54 2007 -0700 include/asm-xtensa/io.h must #include CC kernel/time/clocksource.o In file included from /home/bunk/linux/kernel-2.6/linux-2.6.22-rc6-mm1/include/linux/clocksource.h:18, from /home/bunk/linux/kernel-2.6/linux-2.6.22-rc6-mm1/kernel/time/clocksource.c:27: include2/asm/io.h: In function 'virt_to_phys': include2/asm/io.h:46: error: implicit declaration of function '__pa' include2/asm/io.h: In function 'phys_to_virt': include2/asm/io.h:51: error: implicit declaration of function '__va' include2/asm/io.h:51: warning: return makes pointer from integer without a cast make[3]: *** [kernel/time/clocksource.o] Error 1 Signed-off-by: Adrian Bunk Cc: Christian Zankel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b2c863bd2daa2b2e36d66db58bc1e18f37151829 Author: Christoph Hellwig Date: Mon Jul 23 18:43:53 2007 -0700 spusched: fix mismerge in spufs.h spufs.h now has two enums for the sched_flags leading to identical values for SPU_SCHED_WAS_ACTIVE and SPU_SCHED_NOTIFY_ACTIVE. Merge them into a single enum as they were in the IBM development tree. Signed-off-by: Christoph Hellwig Acked-by: Arnd Bergmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cb276805803b8e0616159d80a441ab26a931ada4 Author: J. Bruce Fields Date: Mon Jul 23 18:43:52 2007 -0700 nfsd: fix possible oops on re-insertion of rpcsec_gss modules The handling of the re-registration case is wrong here; the "test" that was returned from auth_domain_lookup will not be used again, so that reference should be put. And auth_domain_lookup never did anything with "new" in this case, so we should just clean it up ourself. Thanks to Akinobu Mita for bug report, analysis, and testing. Cc: Akinobu Mita Signed-off-by: "J. Bruce Fields" Cc: Neil Brown Cc: Trond Myklebust Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d1709e477f203c0538f94c4d1ac981d08325eebf Author: Ralf Baechle Date: Mon Jul 23 18:43:50 2007 -0700 Fix Au1100 fb dependencies, add helptext Signed-off-by: Ralf Baechle Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 97a1fcbb20fcbb0177567fd2dbcc6ed1bcc450ce Author: Jeff Dike Date: Mon Jul 23 18:43:48 2007 -0700 uml: more __init annotations 2.6.23-rc1 turned up another batch of references from non-__init code to __init code. In most cases, these were missing __init annotations. In one case (os_drop_memory), the annotation was present but wrong. init_maps is __init, but for some reason was being very careful about the mechanism by which it allocated memory, checking whether it was OK to use kmalloc (at this point in the boot, it definitely isn't) and using either alloc_bootmem_low_pages or kmalloc/vmalloc. So, the kmalloc/vmalloc code is removed. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit da3e30e78ed9652322dccb49fa149e7b4e985f74 Author: Jeff Dike Date: Mon Jul 23 18:43:47 2007 -0700 uml: fix aio compilation bug Restructure do_aio thanks to commments from Ulrich and Al. Uli started this by seeing that UML's initialization of a struct iocb initialized fields that it shouldn't. Al followed up by adding the following cleanups: eliminating a variable by just using an anonymous structure in its place. hoisting a duplicated line out of the switch. simplifying the error checking at the end. I added a severity to the printk. Signed-off-by: Jeff Dike Cc: Al Viro Cc: Ulrich Drepper Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1a65f493c335abc3822291b52f3565776ce39a1b Author: Jeff Dike Date: Mon Jul 23 18:43:46 2007 -0700 uml: fix string exporting on UML/i386 In 2.6.23-rc1, i386 fiddled its string support such that UML started getting undefined references from modules. The UML asm/string.h was including the i386 string.h, which defined __HAVE_ARCH_STR*, but the corresponding implementations weren't being pulled in. This is fixed by adding arch/i386/lib/string.h to the list of host architecture files to be pulled in to UML. A complication is that the libc exports file assumed that the generic strlen and strstr weren't in use (i.e. __HAVE_ARCH_STR is defined), then they aren't exported. This is untrue for strlen, which is exported in either case, so this logic is not needed. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0d786d4a2773f06a791e8c3730d049077fb81df6 Author: Ulrich Drepper Date: Mon Jul 23 18:43:46 2007 -0700 fallocate syscall interface deficiency The fallocate syscall returns ENOSYS in case the filesystem does not support the operation and expects the userlevel code to fill in. This is good in concept. The problem is that the libc code for old kernels should be able to distinguish the case where the syscall is not at all available vs not functioning for a specific mount point. As is this is not possible and we always have to invoke the syscall even if the kernel doesn't support it. I suggest the following patch. Using EOPNOTSUPP is IMO the right thing to do. Cc: Amit Arora Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4f640efb3170dbcf99a37a3cc99060647b95428c Author: Josh Boyer Date: Mon Jul 23 18:43:44 2007 -0700 Use resource_size_t for serial port IO addresses At present, various parts of the serial code use unsigned long to define resource addresses. This is a problem, because some 32-bit platforms have physical addresses larger than 32-bits, and have mmio serial uarts located above the 4GB point. This patch changes the type of mapbase in both struct uart_port and struct plat_serial8250_port to resource_size_t, which can be configured to be 64 bits on such platforms. The mapbase in serial_struct can't safely be changed, because that structure is user visible. Signed-off-by: David Gibson Signed-off-by: Josh Boyer Cc: Russell King Cc: Paul Mackerras Cc: Jason Wessel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 422db8d229affd429b5a7389600877aa7dea2704 Author: Dale Farnsworth Date: Tue Jul 24 11:07:38 2007 -0700 [WATCHDOG] mv64x60_wdt: set up platform_device in platform code The driver previously registered its platform device data in its own init function--that's bogus. Move that code to platform-specific code in arch/ppc. This is being done so that the platform code can decide at runtime whether to initialize this driver or not. Signed-off-by: Dale Farnsworth Signed-off-by: Wim Van Sebroeck commit a4ee0df8b3d007f0d685d38a56dc0b91e01aaaf7 Author: James Bottomley Date: Mon Jul 23 09:53:51 2007 -0500 [SCSI] bsg: fix unused variable warnings for BLK_DEV_BSG=n Just using #defines for the bsg_register_queue()/bsg_unregister_queue() can cause undefined variables when they're defined to nothing. Use dummy inline functions instead. Signed-off-by: James Bottomley commit 28dd1b0b9191ac9cd0b96fa4d09d951498bfbadb Author: Pdraig Brady Date: Tue Jul 24 11:49:27 2007 +0100 [WATCHDOG] ensure mouse and keyboard ignored in w83627hf_wdt 1. Ensure that the mouse and keyboard do not ping the watchdog. This is the default operation of the w83627, but some BIOSes change this. 2. Increase the max timeout from 63 seconds to 255 seconds as supported by the w83627 chip 3. Comment that the watchdog supports the w83627hg version of the chip Signed-Off-By: Pdraig Brady Tested-by: Tomas Hodek Signed-Off-By: Wim Van Sebroeck commit b430708ad67f9325dadd7a86e007e353ab7e5acd Author: Ben Dooks Date: Tue Jul 24 13:28:01 2007 +0100 [WATCHDOG] s3c2410_wdt: fixup after arch include moves Fixup the s3c2410 watchdog driver after moving some of the arch specific includes it has been relying on. Signed-off-by: Ben Dooks commit 2cd614c8732172524c36cd5245620338928062b6 Author: Darrick J. Wong Date: Tue Jul 24 09:33:49 2007 -0700 [SCSI] libsas: SMP request handler shouldn't crash when rphy is NULL sas_smp_handler crashes when smp utils are used with an aic94xx host because certain devices (the sas_host itself, specifically) lack rphy structures. No rphy means no SMP target support, but we shouldn't crash here. Signed-off-by: Darrick J. Wong Signed-off-by: James Bottomley commit 4e24f4edb6e04677c04fc5b456eb4be95d93f2cd Author: Andrew Morton Date: Tue Jul 24 00:07:27 2007 -0700 [WATCHDOG] git-watchdog-typo From: Andrew Morton This driver isn't very coding-style friendly. Signed-off-by: Wim Van Sebroeck Signed-off-by: Andrew Morton commit e58712111fe6eb7573fd6dd12d80de3bec13f277 Author: Kumar Gala Date: Mon Jul 23 15:47:26 2007 -0500 [POWERPC] 85xx: Added needed MPC85xx PCI device IDs Added the MPC85xx PCI device IDs that we need for the quirks we have. Also, fixed the MPC8567E, MPC8567 device IDs which had the wrong value. Signed-off-by: Kumar Gala commit c26c372cdbe7de1b9d0c88adce2ae21ef9249e9a Author: Jon Loeliger Date: Mon Jun 4 12:27:14 2007 -0500 [POWERPC] Add Freescale PCI VENDOR ID and 8641 device IDs Also add 8641/8641D device IDs as well. All of which already exist or have been submitted to The Linux PCI ID Repository at: http://pci-ids.ucw.cz/ CC-to: pci-ids@ucw.cz Signed-off-by: Jon Loeliger Signed-off-by: Kumar Gala commit 6af012574207bd35455f4a4ba0437cf5b9deaee5 Author: Randy Vinson Date: Tue Jul 17 16:37:12 2007 -0700 [POWERPC] 85xxCDS: MPC8548 DTS cleanup. Added the P2P bridge present on the Arcadia base board and moved the VIA Southbridge behind the bridge to reflect its actual position in the bus organization. Added the RTC that's in the VIA Southbridge and expanded the ranges array for the SOC node to allow proper address translation of the RTC registers. Signed-off-by: Randy Vinson Signed-off-by: Kumar Gala commit 8d7bc8f9d1c23fdfbf60a6554027c40d66e66d11 Author: Randy Vinson Date: Thu Jul 19 10:40:53 2007 -0700 [POWERPC] 85xxCDS: Misc 8548 PCI Corrections. Setting the host bridge @8000 as primary. Also fixing a bug in setting the USB interrupt numbers. Signed-off-by: Randy Vinson Signed-off-by: Kumar Gala commit bca03c6bddc03bba893c86fdf735ecef418159ea Author: Randy Vinson Date: Thu Jun 14 11:02:54 2007 -0700 [POWERPC] 85xxCDS: Delay 8259 cascade hookup. The interrupts of an E100 card inserted in PCI slot 4 may be on at bootup. The resulting interrupt flood interacts with the 8259 cascade handler and prevents proper boot up. There is a quirk for the E100 that will disable the E100's interrupts but to use it, the 8259 cascade hookup must be delayed until after the quirk has run. This patch delays the 8259 cascade hookup by registering a device_initcall() which runs after the PCI quirk for the E100. Signed-off-by: Randy Vinson Signed-off-by: Kumar Gala commit 50ad147aa09c829cd452fae6ca99396c0b5b0695 Author: Rafael J. Wysocki Date: Tue Jul 24 11:58:39 2007 +0200 ACPI: Remove references to ACPI_STATE_S2 from acpi_pm_enter Remove references to ACPI_STATE_S2, introduced by acpi-implement-the-set_target-callback-from-pm_ops.patch, from acpi_pm_enter(). Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown commit cdcc9eb5e014a58aba047193a73a0de8b61b988d Author: Atsushi Nemoto Date: Mon Jul 23 00:07:34 2007 +0900 [MIPS] Fix marge error due to conflict in arch/mips/kernel/head.S __INIT directive just before kernel_entry was ignored for most platforms. This patch fixes it and get rid of this warning: WARNING: vmlinux.o(.text+0x478): Section mismatch: reference to .init.text:start_kernel (between '_stext' and 'run_init_process') Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 18d0e9b4799ff6e43613a068eba289ba4e002535 Author: Yoichi Yuasa Date: Tue Jul 24 16:38:04 2007 +0900 [MIPS] ARC: Remove unused arch/mips/arc/console.c Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit cbe7b45c1d0fbf51eea19452ffb56aa3002fe90c Author: Thomas Bogendoerfer Date: Tue Jul 24 03:49:27 2007 +0200 [MIPS] SNI: sniprom - fix compile error due to missing #include - fix section mismatch warning Signed-off-by: Thomas Bogendoerfer Signed-off-by: Ralf Baechle commit 34ec6e76a6354b04df3d2e94cd34d27af76a07bc Author: Yoichi Yuasa Date: Sun Jul 22 13:06:49 2007 +0900 [MIPS] Jazz: remove unneeded reset functions Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit eeea55163dac3e891558253751fcbfa0815a2e1a Author: Ralf Baechle Date: Tue Jul 24 16:02:47 2007 +0100 [MIPS] Whitespace cleanup. Signed-off-by: Ralf Baechle commit 4614c32645c536e30eaf895c7e0cd42dfb145634 Author: Atsushi Nemoto Date: Tue May 1 01:49:20 2007 +0900 [MIPS] Make resources for ds1742 "static __initdata" We can make resources for platform_device_register_simple() "static __initdata". Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit f5dbeaf5ed3938beea8e58ee473982a4bcadc172 Author: David Rientjes Date: Sun Jul 22 01:01:39 2007 -0700 [MIPS] Replace __attribute_used__ with __used Replaces the deprecated __attribute_used__ with __used. Also makes some style adjustments to abide by the kernel coding conventions. Cc: Ralf Baechle Signed-off-by: David Rientjes Signed-off-by: Ralf Baechle commit fce2303166a8f214a890bd405e0088febdce765f Author: Yoichi Yuasa Date: Sun Jul 22 13:03:37 2007 +0900 [MIPS] Jazz: Remove unused arch/mips/jazz/io.c Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit fb4bb133ada7423b2504bb64bb6cc95c079a7d9d Author: Atsushi Nemoto Date: Sun Jul 22 23:44:20 2007 +0900 [MIPS] Mark prom_free_prom_memory as __init_refok > WARNING: vmlinux.o(.text+0xbf20): Section mismatch: reference to > .init.text:prom_free_prom_memory (between 'free_initmem' and 'copy_from_user_page') prom_free_prom_memory() is called _before_ freeing init sections, so it is false positive. __init_refok can be used for such cases. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle commit 9a0f3b73601a146998236237d82b55ae80337f10 Author: Yoichi Yuasa Date: Fri Jul 13 16:36:57 2007 +0900 [MIPS] MIPSsim: Fix cflags Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle commit 981d0f3952c977d799c2bb72e083cb9306ccb797 Author: Eric Miao Date: Tue Jul 24 01:22:43 2007 +0100 [ARM] 4526/1: pxa: make ARCH_PXA select GENERIC_CLOCKEVENTS make ARCH_PXA select GENERIC_CLOCKEVENTS to fix the building issue due to merge of clockevents based PXA timer Signed-off-by: eric miao Signed-off-by: Russell King commit 71f65e6bd7651610d2d6aeb3c12aab63667ace30 Author: Jens Axboe Date: Tue Jul 24 10:29:42 2007 +0200 [BLOCK] Add request_queue_t and mark it deprecated Andrew thinks I should be nice and allow outside code to at least just compile, so add the request_queue_t typedef back and mark it deprecated. It'll warn people that this type is going away soonish. Signed-off-by: Jens Axboe commit 27b92bdbd589cf3f59244bf5e848e7be254a2e4c Author: Michael Hennerich Date: Tue Jul 24 15:56:17 2007 +0800 Input Serio: Blackfin doesnt support I8042 - make sure it doesnt get selected Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu commit d8e715428fe70f5005829d3bad3a0a3fb8a747b2 Author: Bryan Wu Date: Wed Jul 25 16:58:03 2007 +0800 Blackfin arch: add BF54x I2C/TWI TWI0 driver support Signed-off-by: Bryan Wu commit 165125e1e480f9510a5ffcfbfee4e3ee38c05f23 Author: Jens Axboe Date: Tue Jul 24 09:28:11 2007 +0200 [BLOCK] Get rid of request_queue_t typedef Some of the code has been gradually transitioned to using the proper struct request_queue, but there's lots left. So do a full sweet of the kernel and get rid of this typedef and replace its uses with the proper type. Signed-off-by: Jens Axboe commit 7c5aa6642fa26641ebf286966a165aec71c91991 Author: Len Brown Date: Tue Jul 24 02:25:03 2007 -0400 ACPI: Kconfig: always enable CONFIG_ACPI_SLEEP on X86 The SMP dependency on HOTPLUG_CPU and SUSPEND_SMP caused more harm than good -- making ACPI sleep support vanish for configs missing those options. So simply select them on the (ACPI && SMP && X86) systems that need them. Also, remove the prompt for ACPI_SLEEP, virtually nobody (intentionally) enables ACPI without it. Signed-off-by: Len Brown commit 43532c8a46ae313c2da3baa7598a1de4d403ba83 Author: Len Brown Date: Tue Jul 24 02:16:50 2007 -0400 ACPI: Kconfig: fold /proc/acpi/sleep under CONFIG_ACPI_PROCFS /proc/acpi/sleep has had its own "default n" option, ACPI_SLEEP_PROC_SLEEP, for many months. Time to delete ACPI_SLEEP_PROC_SLEEP. Users that still need /proc/acpi/sleep can still get it along with the other deprecated /proc/acpi files by enabling CONFIG_ACPI_PROCFS. Also delete ACPI_SLEEP_PROC_FS, which was an umbrella for /proc/acpi/sleep, wakeup, alarm, because it was effectively just a synonym for ACPI_SLEEP. Signed-off-by: Len Brown commit fb804714560463534ebcb538a3b0a3c687a830ec Author: Len Brown Date: Tue Jul 24 01:50:46 2007 -0400 ACPI: Kconfig: CONFIG_ACPI_PROCFS now defaults to N delete "default y" from CONFIG_ACPI_PROCFS (effectively making the default 'N') List exactly what /proc files this option controls, and clarify that it doesn't change non-deprecated files. Signed-off-by: Len Brown commit eb695dbf00d572a770358305dae4de2a0680db8f Author: Adrian McMenamin Date: Tue Jul 24 13:30:55 2007 +0900 sh: Fix Dreamcast DMA issues. The current SH DMA API is somewhat broken, not correctly matching virtual channel to the correct SH DMAC. This wasn't noticeable when using g2 DMA for the sound driver - one channel 0 is as good as any other! - but caused the pvr2 driver to fail. This patch fixes the pvr2 problem and consequently fixes the sound driver to ensure it continues to function. Signed-off by: Adrian McMenamin Signed-off-by: Paul Mundt commit 8cf1a74305688c85fc8d23ab7432a0c447ee6413 Author: Paul Mundt Date: Tue Jul 24 13:28:26 2007 +0900 sh: Add kmap_coherent()/kunmap_coherent() interface for SH-4. This wires up kmap_coherent() and kunmap_coherent() on SH-4, and moves away from the p3map_mutex and reserved P3 space, opting to use fixmaps for colouring instead. The copy_user_page()/clear_user_page() implementations are moved to this, which fixes the nasty blowups with spinlock debugging as a result of having some of these calls nested under the page table lock. Signed-off-by: Paul Mundt commit 637e9e13a1f87d414954c854bcf8c5b16dc6face Author: Randy Vinson Date: Fri Mar 23 15:43:37 2007 -0700 [POWERPC] 85xxCDS: Make sure restart resets the PCI bus. The current 85xxCDS restart code fails to reset the PCI bus which can lead to odd behavior after the restart. This patch uses the VIA Super Southbridge to perform a PCI reset which will reset the entire system. NOTE: Since the VIA chip is behind a PCI-to-PCI bridge which can be disabled with a switch setting, it may not be possible to perform the PCI bus reset. In this case, the code defaults to the previous restart mechanism. Signed-off-by: Randy Vinson Signed-off-by: Kumar Gala commit 3620fc1da28ad32d10d7c83eab33f48ec5b1da54 Author: Randy Vinson Date: Wed Jun 6 16:26:15 2007 -0700 [POWERPC] 85xxCDS: Allow 8259 cascade to share an MPIC interrupt line. The Freescale MPC8555CDS and MPC8548CDS reference hardware has a legacy 8259 interrupt controller pair contained within a VIA VT82C686B Southbridge on the main carrier board. The processor complex plugs into the carrier card using a PCI slot which limits the available interrupts to the INTA-INTD PCI interrupts. The output of the 8259 cascade pair is routed through a gate array and connected to the PCI INTA interrupt line. The normal interrupt chaining hook (set_irq_chained_handler) does not allow sharing of the chained interrupt which prevents the use of PCI INTA by PCI devices. This patch allows the 8259 cascade pair to share their interrupt line with PCI devices. NOTE: The addition of the .end routine for the MPIC is not strictly necessary for this patch. It's there so this code will run from within the threaded interrupt context used by the Real Time patch. Signed-off-by: Randy Vinson Signed-off-by: Kumar Gala commit eb12af43333dd9d54158f35147a79628c41152db Author: Kumar Gala Date: Fri Jul 20 16:29:09 2007 -0500 [POWERPC] FSL: Add support for PCI-X controllers Some set of 85xx platforms have PCI-X controllers. The old arch/ppc code setup these controllers and we haven't moved it over to arch/powerpc. We use the PCI-X Capabilties to know if we are in PCI-X mode instead of the Global Utilities PORDEVSR. Signed-off-by: Kumar Gala commit 7391ff35b241dbcba471e05059b5c05fdc8196db Author: Kumar Gala Date: Fri Jul 20 13:49:29 2007 -0500 [POWERPC] Make sure virtual P2P bridge registers are setup on PCIe PHB For the Freescale PCIe PHBs Not all firmwares setup the virtual P2P bridge registers properly. Make sure they get setup based on what the struct pci_controller got from the device tree. Signed-off-by: Kumar Gala commit f64fddbeac737bfc8d966423f067a9af9eeec887 Author: Kumar Gala Date: Fri Jul 20 13:35:34 2007 -0500 [POWERPC] Provide ability to setup P2P bridge registers from struct resource We need the ability to set P2P bridge registers to properly setup the virtual P2P bridges that exist in PCIe controllers for some of the embedded setups. Signed-off-by: Kumar Gala commit f16dab981aa9d423bdfe096e3422acd33d905c1e Author: Roy Zang Date: Fri Jul 13 18:05:08 2007 +0800 [POWERPC] Add basic PCI/PCI Express support for 8544DS board Add basic support for the PCIe PHB and enable the ULI bridge. Signed-off-by: York Sun Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 2e56ff206b7c6c28b847ccdbe46ad69b3263ac32 Author: Kumar Gala Date: Thu Jul 19 16:07:35 2007 -0500 [POWERPC] Make endianess of cfg_addr for indirect pci ops runtime Make it so we do a runtime check to know if we need to write cfg_addr as big or little endian. This is needed if we want to allow 86xx support to co-exist in the same kernel as other 6xx PPCs. Signed-off-by: Kumar Gala commit bbf17d6483a7feb4c1eeef9fd553976d4f394e4c Author: Salyzyn, Mark Date: Mon Jul 23 10:13:48 2007 -0400 [SCSI] aacraid: sysfs adapter reset/status format change. We need to newline terminate responses from nodes within the sysfs tree, the Adapter status value reported by the reset adapter node is adjusted. Signed-off-by: Mark Salyzyn Signed-off-by: James Bottomley commit 60395bb60e0b5e4e0808ac8eb07a92f6c9cdea1f Author: Alan Cox Date: Mon Jul 23 14:51:05 2007 +0100 [SCSI] aacraid: Fix security hole On the SCSI layer ioctl path there is no implicit permissions check for ioctls (and indeed other drivers implement unprivileged ioctls). aacraid however allows all sorts of very admin only things to be done so should check. Signed-off-by: Alan Cox Acked-by: "Salyzyn, Mark" Signed-off-by: James Bottomley commit 1079ddcb07e0c39b576cd60174ca00ed9545c163 Author: FUJITA Tomonori Date: Mon Jul 23 09:33:27 2007 +0900 [SCSI] bsg: remove unnecessary code and comments - kill uhdr in bsg_command structure - it's not necessary to put SG v4 stuff to block/scsi_ioctl.c Signed-off-by: FUJITA Tomonori Signed-off-by: James Bottomley commit 598443a2124618fc8fe5a8bae32c129666ac3eab Author: FUJITA Tomonori Date: Mon Jul 23 09:33:26 2007 +0900 [SCSI] bsg: use lib/idr.c to find a unique minor number This replaces the current linear search for a unique minor number with lib/idr.c. Signed-off-by: FUJITA Tomonori Acked-by: Jens Axboe Signed-off-by: James Bottomley commit 4b39c1d98327b0a572392cdb0ee22db1de0e7cb9 Author: Boaz Harrosh Date: Sun Jul 22 17:28:55 2007 +0300 [SCSI] qla2xxx: Data accessors Cleanup of last merge - Left overs from last code merges of qla2xxx Signed-off-by: Boaz Harrosh Acked-by: Andrew Vasquez Signed-off-by: James Bottomley commit 1ba90e3a87c46500623afdc3898573e4a5ebb21b Author: Thomas Renninger Date: Mon Jul 23 14:44:41 2007 +0200 ACPI: autoload modules - Create __mod_acpi_device_table symbol for all ACPI drivers modpost is going to use these to create e.g. acpi:ACPI0001 in modules.alias. Signed-off-by: Thomas Renninger Signed-off-by: Len Brown commit 29b71a1ca74491fab9fed09e9d835d840d042690 Author: Thomas Renninger Date: Mon Jul 23 14:43:51 2007 +0200 ACPI: autoload modules - Create ACPI alias interface Modify modpost (file2alias.c) to add acpi*:XYZ0001: alias in modules.alias like: grep acpi /lib/modules/2.6.22-rc4-default/modules.alias alias acpi*:SNY5001:* sony_laptop alias acpi*:SNY6001:* sony_laptop for e.g. the sony_laptop module. This module matches against all ACPI devices with a HID or CID of SNY5001 or SNY6001 Export an uevent and modalias sysfs file containing the string: [MODALIAS=]acpi:PNP0C0C: additional CIDs are concatenated at the end. Signed-off-by: Thomas Renninger Signed-off-by: Kay Sievers Signed-off-by: Len Brown commit 8c8eb78f673c07b60f31751e1e47ac367c60c6b7 Author: Thomas Renninger Date: Mon Jul 23 14:43:32 2007 +0200 ACPI: autoload modules - ACPICA modifications Define standardized HIDs - Rename current acpi_device_id to acpica_device_id Signed-off-by: Thomas Renninger Signed-off-by: Len Brown commit c0e962f93d0b6ecc594dc75bb28ee744143cdbe4 Author: Wim Van Sebroeck Date: Fri Jul 20 20:13:43 2007 +0000 [WATCHDOG] Clean-up Kconfig+Makefile Clean-up of the watchdog's Kconfig and makefile files. Signed-off-by: Wim Van Sebroeck commit 3b0d71170d37878bbb1203ebc3f92e36d6151a80 Author: Al Viro Date: Mon Jul 23 11:21:34 2007 +0100 ACPI: asus-laptop: Fix failure exits > Subject : drivers/misc/asus-laptop.c:*: error: 'struct led_classdev' has no member named 'class_dev' > References : http://lkml.org/lkml/2007/7/22/299 > Submitter : Gabriel C Fallout from f8a7c6fe14f556ca8eeddce258cb21392d0c3a2f. However, looking at it shows that checks done in ASUS_LED_UNREGISTER() can't trigger at all (we never get to asus_led_exit() if registration fails) and if that registration fails, we actually leak stuff. IOW, it's worse than just replacing class_dev with dev in there - the tests themselves had been papering over the lousy cleanup logics. Signed-off-by: Al Viro Signed-off-by: Len Brown commit 5c4eb61b375ce16fc7af5055d8ab7bc19e788361 Author: Wim Van Sebroeck Date: Sat Jul 21 13:42:18 2007 +0000 [WATCHDOG] WDIOC_GETSTATUS and WDIOC_GETBOOTSTATUS clean-up Add mandatory WDIOC_GETSTATUS and WDIOC_GETBOOTSTATUS ioctl's for drivers that don't have them yet. Signed-off-by: Wim Van Sebroeck commit ec9505a7ecadc0ab8f8e3c4c5fa900d57467e391 Author: Wim Van Sebroeck Date: Fri Jul 20 20:41:37 2007 +0000 [WATCHDOG] VFS clean-up All watchdog device drivers are VFSs (Virtual File Systems). We thus return a nonseekable_open(inode, file) when we open the VFS. Signed-off-by: Wim Van Sebroeck commit f1a08cc9a1a8f1da79ca751469ecff82be110482 Author: Wim Van Sebroeck Date: Fri Jul 20 21:47:55 2007 +0000 [WATCHDOG] davinci_wdt clean-up * Remove the redundant check for pwrite(), given that the open() routine already invokes nonseekable_open(). * The WDIOF_CARDRESET flag can only be used when you can read this status via the WDIOC_GETSTATUS ioctl call. * Add the mandatory WDIOC_GETBOOTSTATUS ioctl call. Signed-off-by: Wim Van Sebroeck commit de81225a8719494f5149980ea8a50de28da653f6 Author: Wim Van Sebroeck Date: Fri Jul 20 21:22:58 2007 +0000 [WATCHDOG] mpc5200_wdt clean-up * Add MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); * Add mandatory WDIOC_GETSTATUS and WDIOC_GETBOOTSTATUS ioctl's. * If unknown ioctl is used we should return -ENOTTY. * All watchdog device drivers are VFSs (Virtual File Systems). We thus return a nonseekable_open(inode, file) when we open the VFS. * Make sure that /dev/watchdog can be opened by 1 parent * Add spin-locking to prevent that forked children can disturb each other's operations. Signed-off-by: Wim Van Sebroeck commit 7d831bf59a6991f399170bd2934dad4450891024 Author: Vladimir Barinov Date: Tue Jun 12 18:09:50 2007 +0400 [WATCHDOG] davinci watchdog driver Add watchdog support for TI Davinci DM644x/DM646x processors. Signed-off-by: Vladimir Barinov Signed-off-by: Kevin Hilman Signed-off-by: Wim Van Sebroeck commit 1e6d320f40685694708cef872edb10f4f9175989 Author: Bryan Wu Date: Sun Jul 15 02:50:02 2007 +0800 [WATCHDOG] Blackfin on-chip watchdog driver This patch implements the driver necessary use the Analog Devices Blackfin processor's on-chip watchdog controller, supports BF53[123]/BF53[467]/BF54[2489]/BF561. Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu Signed-off-by: Wim Van Sebroeck commit 8cf18971ec6ad96cce4a9eb896047581985cf99e Author: Domen Puncer Date: Mon Jun 18 08:17:57 2007 +0200 [WATCHDOG] mpc5200 watchdog (GPT0) Driver for internal mpc5200 watchdog on general purpose timer 0. For IPB clock of 132 MHz the maximum timeout is about 32 seconds. Signed-off-by: Domen Puncer Signed-off-by: Wim Van Sebroeck commit 3cc2649b879f0e83fd51b14c82bad5f8f208591e Author: Luming Yu Date: Mon Jul 23 12:39:28 2007 -0400 ACPI: fix oops due to typo in new throttling code Signed-off-by: Luming Yu Signed-off-by: Andrew Morton Signed-off-by: Len Brown commit d5269966e57484548bc5d38e117f161bf2f56ce9 Author: Kumar Gala Date: Thu Jul 19 15:44:52 2007 -0500 [POWERPC] Removed setup_indirect_pci_nomap We don't use setup_indirect_pci_nomap in arch/powerpc and it appears the users that needed it from arch/ppc are now using setup_indirect_pci. Signed-off-by: Kumar Gala commit 4e7982115e8e426ee885f48c8aedd5e533e23c5b Author: Kumar Gala Date: Thu Jul 19 15:39:24 2007 -0500 [POWERPC] 85xx: Add quirk to ignore bogus FPGA on CDS The newer Arcadia boards for CDS have an FPGA that shows up on PCI however isn't a real PCI device. Add a quirk to just ignore the FPGA. This is based on the following patch from Andy & York: http://ozlabs.org/pipermail/linuxppc-dev/2007-February/032042.html Signed-off-by: Kumar Gala commit aa3c112146e387dcd68bea2a8354514fe725da0d Author: Kumar Gala Date: Mon Jul 16 10:45:07 2007 -0500 [POWERPC] 85xx: Added 8568 PCIe support Added the PCIe device node to the 8568 dts and the needed quirk entries. Signed-off-by: Kumar Gala commit 6c0a11c118471f79795202348fbd0e6580341794 Author: Kumar Gala Date: Thu Jul 19 15:29:53 2007 -0500 [POWERPC] Fixup resources on pci_bus for PCIe PHB when no device is connected On the 85xx/86xx PCIe controllers if there is no device connected to the PHB we will still allocate a pci_bus for downstream bus of the virtual P2P bridge. However the resources allocated to the downstream bus are not correct and so we just mimic the resources from the upstream pci_bus. Signed-off-by: Kumar Gala commit 66afe8780f297edb4c4716bc326e127ec2923422 Author: Roy Zang Date: Tue Jul 10 18:47:52 2007 +0800 [POWERPC] Add basic PCI node for mpc8568mds board Signed-off-by: Haiying Wang Signed-off-by: Ebony Zhu Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 3f6c5dae277d43b4fe2dd77a5984b0ef9aee52c6 Author: Roy Zang Date: Tue Jul 10 18:47:06 2007 +0800 [POWERPC] Use Freescale pci/pcie common code for 85xx boards Switch the 85xx platform over to using the FSL generic PCI code. This gets ups PCIe support in addition to base PCI support. Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 344ffde71e65fb0ef4b73590015362005a59b3c0 Author: Roy Zang Date: Tue Jul 10 18:47:21 2007 +0800 [POWERPC] Update PCI nodes in the 83xx/85xx boards device tree Updated the 83xx & 85xx device tree PCI related compartible property. Used the following compatible properties: PCI "fsl,mpc8349-pci" PCI "fsl,mpc8540-pci" PCI-X: "fsl,mpc8540-pcix" PCIe: "fsl,mpc8548-pcie" Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 02edff59c9383acd01f4f2205d663c8abc57070f Author: Roy Zang Date: Tue Jul 10 18:46:47 2007 +0800 [POWERPC] Add 8548 CDS PCI express controller node and PCI-X device node Add 8548 CDS PCI express controller node and PCI-X device node. The current dts file is suitable for 8548 Rev 2.0 board with Arcadia 3.1. This kind of board combination is the most popular. Used the following compatible properties: PCI "fsl,mpc8540-pci" PCI-X: "fsl,mpc8540-pcix" PCIe: "fsl,mpc8548-pcie" Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 957ecffc2527ebd414c6e35b65f0f744739b012d Author: Kumar Gala Date: Wed Jul 11 13:31:58 2007 -0500 [POWERPC] FSL: Cleanup how we detect if we are a PCIe controller Use the PCI capabilities to determine if we are PCIe PHB. Also use PPC_INDIRECT_TYPE_NO_PCIE_LINK since the Freescale PCIe controllers will lock the system if they don't have link and you try to do a config access to anything but the PHB. Signed-off-by: Kumar Gala commit 62c66c8e55fae40d93d8f79d60e2ed50379e46f9 Author: Kumar Gala Date: Wed Jul 11 13:22:41 2007 -0500 [POWERPC] Added indirect quirk to handle PCIe PHB that have issue w/no link Added PPC_INDIRECT_TYPE_NO_PCIE_LINK flag to the indirect pci handling code to ensure that we don't talk to any device other than the PHB if we don't have PCIe link. Some controllers will lockup if they try to do a config cycle to any device on the bus except the PHB. Signed-off-by: Kumar Gala commit 38805e5f096162867a70c7468c654d7f9bb507da Author: Kumar Gala Date: Tue Jul 10 23:37:45 2007 -0500 [POWERPC] Add the ability to find PCI capabilities early on Added early_find_capability that wraps pci_bus_find_capability and uses fake_pci_bus() to allow us to call it before we've fully setup the pci_controller. Signed-off-by: Kumar Gala commit 9ac4dd301eebb3cd8de801e02bfc91f296e56f63 Author: Zang Roy-r61911 Date: Tue Jul 10 18:46:35 2007 +0800 [POWERPC] Rewrite Freescale PCI/PCIe support for 8{3,5,6}xx Rewrite the Freescale PCI code to support PCI on 83xx/85xx/86xx and PCIe on 85xx/86xx. Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 55c44991e2910519bab274c857d95a08100ff5f7 Author: Roy Zang Date: Tue Jul 10 18:44:34 2007 +0800 [POWERPC] Create common fsl pci/e files based on 86xx platforms Move arch/powerpc/platforms/86xx/pci.c -> arch/powerpc/sysdev/fsl_pci.c arch/powerpc/sysdev/fsl_pcie.h -> arch/powerpc/sysdev/fsl_pci.h as the base to unify 83xx/85xx/86xx pci and pcie. Add CONFIG_FSL_PCI to build fsl_pci.c for Freescale pci and pcie option. The code still works for 86xx platforms. Signed-off-by: Roy Zang Signed-off-by: Kumar Gala commit 0ec8abd7086ee4f760cb1b477fe376805b17558c Author: Jesper Juhl Date: Sat Jul 21 00:12:44 2007 +0200 SELinux: fix memory leak in security_netlbl_cache_add() Fix memory leak in security_netlbl_cache_add() Note: The Coverity checker gets credit for spotting this one. Signed-off-by: Jesper Juhl Signed-off-by: James Morris Acked-by: Stephen Smalley commit 5048bcba4d27d975593ef5c55f217aafe015ec3b Author: Russell King Date: Mon Jul 23 12:59:46 2007 +0100 [ARM] setup_profiling_timer must not be __init It's called by writes to /proc/profile, so it must not be marked __init Signed-off-by: Russell King commit a1da5f4f1beb8cae83104a65f36afe527184a4ef Author: Paul Mackerras Date: Sun Jul 22 10:41:39 2007 +1000 Don't compile the PMU power driver on 64-bit PowerPC As reported by Stephen Rothwell, an allmodconfig build on 64-bit PowerPC reports these errors: ERROR: "pmu_batteries" [drivers/power/pmu_battery.ko] undefined! ERROR: "pmu_battery_count" [drivers/power/pmu_battery.ko] undefined! ERROR: "pmu_power_flags" [drivers/power/pmu_battery.ko] undefined! This fixes the problem by not building pmu_battery.ko on ppc64. There are no battery-powered ppc64 machines with an Apple PMU, and we can be reasonably confident there never will be. Signed-off-by: Paul Mackerras Signed-off-by: David Woodhouse commit 10b3dcae0f275e2546e55303d64ddbb58cec7599 Author: Shaohua Li Date: Fri Jul 20 10:03:25 2007 +0800 ACPI: ignore _PSx method for hotplugable PCI devices If the ACPI device has _EJ0, ignore the device. _PSx will set power for the slot, and the hotplug driver will take care of _PSx. Signed-off-by: Shaohua Li Signed-off-by: Len Brown commit ab826ca4cf2fe8ebcfd21189ca8bfeb47ca88359 Author: Shaohua Li Date: Fri Jul 20 10:03:22 2007 +0800 ACPI: Use ACPI methods to select PCI device suspend state applied after Rafel's 'PM: Update global suspend and hibernation operations framework' patch set Signed-off-by: Shaohua Li Signed-off-by: Len Brown commit fc30e68e88baf463683bde43347756889ba2ffae Author: Shaohua Li Date: Fri Jul 20 10:03:20 2007 +0800 ACPI, PNP: hook ACPI D-state to PNP suspend/resume applied after Rafel's 'PM: Update global suspend and hibernation operations framework' patch set Signed-off-by: Shaohua Li Signed-off-by: Len Brown commit fd4aff1a28eecbd729b409bf7d3eff5948f20414 Author: Shaohua Li Date: Tue Jul 17 22:40:25 2007 +0200 ACPI: Add acpi_pm_device_sleep_state helper routine Based on the David Brownell's patch at http://marc.info/?l=linux-acpi&m=117873972806360&w=2 updated by: Rafael J. Wysocki Add a helper routine returning the lowest power (highest number) ACPI device power state that given device can be in while the system is in the sleep state indicated by acpi_target_sleep_state . Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Len Brown commit e9b3aba887f47f9cd64de20fec9c333a932b70dc Author: Rafael J. Wysocki Date: Tue Jul 17 22:40:06 2007 +0200 ACPI: Implement the set_target() callback from pm_ops In the future some drivers may need to use ACPI to determine the low power states in which to place their devices, but to provide the drivers with this information the ACPI core needs to know what sleep state the system is going to enter. Namely, the device's state should not be too high power for given system sleep state and, if the device is supposed to be able to wake up the system, its state should not be too low power for the wake up to be possible). For this purpose, the ACPI core needs to implement the set_target() method in 'struct pm_ops' and store the target system sleep state passed by the PM core in a variable. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Acked-by: David Brownell Signed-off-by: Len Brown commit 2c95cd71f8df36de4a063cec879d49fb8b462e8e Author: Mike Frysinger Date: Sun Jul 15 02:33:26 2007 +0800 Blackfin On-Chip RTC driver update for supporting BF54x Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu commit 4af4b84088696777e222a5b0e3f55a81935bc9cc Author: Michael Hennerich Date: Wed Jul 25 14:09:54 2007 +0800 Blackfin Ethernet MAC driver: fix bug Report returned -ENOMEM upwards (in case L1/uncached memory alloc fails) Bug tracker: https://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3399 Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu commit 50e163ce8e3cb17d41367899fbf50a17e358cc89 Author: Michael Hennerich Date: Tue Jul 24 16:17:28 2007 +0800 Blackfin arch: add error message when IRQ no available Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu commit 8be80ed3f74a60e1af5a30e6b4fa4f744911676e Author: Bernd Schmidt Date: Wed Jul 25 14:44:49 2007 +0800 Blackfin arch: Initialize the exception vectors early in the boot process Initialize the exception vectors early in the boot process, so that CPLB faults can be handled when memory protection is enabled. Signed-off-by: Bernd Schmidt Signed-off-by: Bryan Wu commit d6e274ddb51fa0f9241d7348813351051275d71b Author: Bryan Wu Date: Tue Jul 24 15:38:16 2007 +0800 Blackfin arch: fix a compiling warning about dma-mapping Signed-off-by: Bryan Wu commit 12a7991180f44e7d993a3a0a442890fc3de67f57 Author: Mike Frysinger Date: Wed Jul 25 10:25:29 2007 +0800 Blackfin arch: switch to using proper defines this time THREAD_SIZE and PAGE_SIZE instead of just PAGE_SIZE everywhere Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu commit 0fa63ad7d1450a7ea2b5e5f60bbc64f5ed5a5adc Author: Bernd Schmidt Date: Wed Jul 25 10:19:59 2007 +0800 Blackfin arch: fix bug which unaligns the init thread's stack and causes the current macro to fail. switch to using proper defines this time (THREAD_SIZE and PAGE_SIZE) instead of just PAGE_SIZE everywhere Signed-off-by: Mike Frysinger Signed-off-by: Bernd Schmidt Signed-off-by: Bryan Wu commit f1b927dc851a2eb1e13a8d21aca18036f6cb8629 Author: Bernd Schmidt Date: Tue Jul 24 18:17:15 2007 +0800 Blackfin arch: Load P0 before storing through it Fortunately this function is only used on old 533 revisions. Signed-off-by: Bernd Schmidt Signed-off-by: Bryan Wu commit 64c5cb8608a8b393bfc80214e4593738b60638c5 Author: Sonic Zhang Date: Wed Jul 25 10:46:45 2007 +0800 Blackfin arch: fix KGDB bug, dont forget last parameter. Signed-off-by: Sonic Zhang Signed-off-by: Bryan Wu commit e2dd3f1ecd95dc0a4f352f7c0b0d561cf62bc5c5 Author: Mike Frysinger Date: Tue Jul 24 18:20:18 2007 +0800 Blackfin arch: add selections for BF544 and BF542 Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu commit e5b6bd61f2b38fbadf72ea7835ee1b1de6d7530b Author: Mike Frysinger Date: Tue Jul 24 16:59:37 2007 +0800 Blackfin arch: use bfin_read_SWRST() now that BF561 provides it Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu commit 315a8e34f7c12609947f9b435faae451aaa5dd41 Author: Mike Frysinger Date: Tue Jul 24 15:58:41 2007 +0800 Blackfin arch: setup aliases for some core Core A MMRs setup aliases for some core Core A MMRs to ease porting in cases where common code would actually want Core A (or Core B MMR is reserved) Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu