[PATCH v2, part2 00/10] simplify initialization of highmem pages

2013-03-10 Thread Jiang Liu
The original goal of this patchset is to fix the bug reported by https://bugzilla.kernel.org/show_bug.cgi?id=53501 Now it has also been expanded to reduce common code used by memory initializion. This is the second part, which applies to the previous part at:

[PATCH v2, part2 03/10] mm/FRV: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Also fix a bug that totalhigh_pages should be increased when freeing a highmem page into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: David Howells dhowe...@redhat.com Cc: Andrew Morton

[PATCH v2, part2 07/10] mm/PPC: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: Jiang Liu jiang@huawei.com Cc: Andrew Morton a...@linux-foundation.org

[PATCH v2, part2 09/10] mm/um: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Jeff Dike jd...@addtoit.com Cc: Richard Weinberger rich...@nod.at Cc: user-mode-linux-de...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org ---

[PATCH -mmotm] scsi: fix the wrong position of the comment

2013-03-10 Thread Akinobu Mita
This fixes the wrong position of the comment introduced by scsi-rename-random32-to-prandom_u32.patch in the -mm tree. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: James E.J. Bottomley jbottom...@parallels.com Cc: Andrew Vasquez andrew.vasq...@qlogic.com ---

[PATCH -mmotm] brcm80211: fix the misaligned indentation

2013-03-10 Thread Akinobu Mita
This fixes the misaligned indentation introduced by drivers-net-rename-random32-to-prandom_u32.patch in the -mm tree. This also remove unneeded parentheses in order not to cause line over 80 characters. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: David S. Miller da...@davemloft.net

[PATCH v2, part2 10/10] mm/x86: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@redhat.com Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: Cong Wang amw...@redhat.com Cc:

[PATCH v2, part2 08/10] mm/SPARC: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: David S. Miller da...@davemloft.net Cc: Sam Ravnborg s...@ravnborg.org Cc: Andrew Morton a...@linux-foundation.org Cc: sparcli...@vger.kernel.org Cc:

[PATCH v2, part2 06/10] mm/MIPS: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Ralf Baechle r...@linux-mips.org Cc: David Daney david.da...@cavium.com Cc: Cong Wang amw...@redhat.com Cc: Arnd Bergmann a...@arndb.de Cc:

[PATCH v2, part2 02/10] mm/ARM: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Linus Walleij linus.wall...@linaro.org cc: Marek Szyprowski m.szyprow...@samsung.com Cc: Stephen Boyd sb...@codeaurora.org

[PATCH v2, part2 05/10] mm/microblaze: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Michal Simek mon...@monstr.eu Cc: microblaze-ucli...@itee.uq.edu.au Cc: linux-kernel@vger.kernel.org --- arch/microblaze/mm/init.c |6 +- 1 file changed,

[PATCH v2, part2 01/10] mm: introduce free_highmem_page() helper to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Introduce helper function free_highmem_page(), which will be used by architectures with HIGHMEM enabled to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Andrew Morton a...@linux-foundation.org Cc: Mel Gorman mgor...@suse.de Cc: Michel Lespinasse

[PATCH v2, part2 04/10] mm/metag: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Jiang Liu
Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Cc: James Hogan james.ho...@imgtec.com Cc: linux-kernel@vger.kernel.org --- arch/metag/mm/init.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-)

Re: [PATCH -mmotm] scsi: fix the wrong position of the comment

2013-03-10 Thread James Bottomley
[missing SCSI cc added] On Sun, 2013-03-10 at 17:09 +0900, Akinobu Mita wrote: This fixes the wrong position of the comment introduced by scsi-rename-random32-to-prandom_u32.patch in the -mm tree. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: James E.J. Bottomley

Re: kernel BUG at fs/sysfs/group.c:65!

2013-03-10 Thread Ming Lei
On Sun, Mar 10, 2013 at 12:36 AM, Tommi Rantala tt.rant...@gmail.com wrote: [ 40.089036] [81222e29] sysfs_get_dirent+0x39/0x80 [ 40.089036] [81224ad9] sysfs_remove_group+0x29/0x100 [ 40.089036] [8113f2c4] blk_trace_remove_sysfs+0x14/0x20 [ 40.089036]

Re: [PATCH -mmotm] scsi: fix the wrong position of the comment

2013-03-10 Thread Andrew Morton
On Sun, 10 Mar 2013 08:22:47 + James Bottomley jbottom...@parallels.com wrote: [missing SCSI cc added] On Sun, 2013-03-10 at 17:09 +0900, Akinobu Mita wrote: This fixes the wrong position of the comment introduced by scsi-rename-random32-to-prandom_u32.patch in the -mm tree.

Re: [PATCH -mmotm] scsi: fix the wrong position of the comment

2013-03-10 Thread James Bottomley
On Sun, 2013-03-10 at 00:57 -0800, Andrew Morton wrote: On Sun, 10 Mar 2013 08:22:47 + James Bottomley jbottom...@parallels.com wrote: [missing SCSI cc added] On Sun, 2013-03-10 at 17:09 +0900, Akinobu Mita wrote: This fixes the wrong position of the comment introduced by

Re: [PATCH v3 1/2] Input: atmel_mxt_ts - Support for touchpad variant

2013-03-10 Thread Henrik Rydberg
Hi Benson, From: Daniel Kurtz djku...@chromium.org This same driver can be used by atmel based touchscreens and touchpads (buttonpads). Platform data may specify a device is a touchpad using the is_tp flag. This will cause the driver to perform some touchpad specific initializations,

Re: [PATCH v2, part1 12/29] mm/m68k: use common help functions to free reserved pages

2013-03-10 Thread Geert Uytterhoeven
On Sun, Mar 10, 2013 at 7:26 AM, Jiang Liu liu...@gmail.com wrote: Use common help functions to free reserved pages. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Geert Uytterhoeven ge...@linux-m68k.org 24 bytes of text size saved! Acked-by: Geert Uytterhoeven ge...@linux-m68k.org

Re: [PATCH 17/31] workqueue: implement attribute-based unbound worker_pool management

2013-03-10 Thread Lai Jiangshan
On 02/03/13 11:24, Tejun Heo wrote: This patch makes unbound worker_pools reference counted and dynamically created and destroyed as workqueues needing them come and go. All unbound worker_pools are hashed on unbound_pool_hash which is keyed by the content of worker_pool-attrs. When an

Re: [PATCH 07/31] workqueue: restructure pool / pool_workqueue iterations in freeze/thaw functions

2013-03-10 Thread Lai Jiangshan
On 02/03/13 11:23, Tejun Heo wrote: The three freeze/thaw related functions - freeze_workqueues_begin(), freeze_workqueues_busy() and thaw_workqueues() - need to iterate through all pool_workqueues of all freezable workqueues. They did it by first iterating pools and then visiting all pwqs

Re: [PATCH 12/31] workqueue: update synchronization rules on workqueue-pwqs

2013-03-10 Thread Lai Jiangshan
On 02/03/13 11:24, Tejun Heo wrote: Make workqueue-pwqs protected by workqueue_lock for writes and sched-RCU protected for reads. Lockdep assertions are added to for_each_pwq() and first_pwq() and all their users are converted to either hold workqueue_lock or disable preemption/irq.

Re: [PATCH 14/31] workqueue: replace POOL_MANAGING_WORKERS flag with worker_pool-manager_mutex

2013-03-10 Thread Lai Jiangshan
On 02/03/13 11:24, Tejun Heo wrote: POOL_MANAGING_WORKERS is used to synchronize the manager role. Synchronizing among workers doesn't need blocking and that's why it's implemented as a flag. It got converted to a mutex a while back to add blocking wait from CPU hotplug path - 6037315269

[PATCH] mtd: nand: fix the partial page write condition

2013-03-10 Thread Tao Hou
When writelen is mtd-writesize - 1, it is still a partial page write Signed-off-by: Tao Hou hotfor...@gmail.com Cc: Thomas Gleixner t...@linutronix.de Cc: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/mtd/nand/nand_base.c |2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 1/4 v4] ARM: AT91SAM9G45: same platform data structure for all crypto peripherals

2013-03-10 Thread Herbert Xu
On Wed, Feb 20, 2013 at 05:10:23PM +0100, Nicolas Royer wrote: Only AES use DMA in AT91SAM9G45 (TDES and SHA use PDC). However latest Atmel TDES and SHA IP releases use DMA instead of PDC. -- Atmel TDES and SHA drivers need DMA platform data for those IP releases. Goal of this patch is

Re: [PATCH] Update the links to the white papers on CRC32C calculations with PCLMULQDQ instructions.

2013-03-10 Thread Herbert Xu
On Thu, Feb 21, 2013 at 11:04:22AM -0800, Tim Chen wrote: Herbert, The following patch update the stale link to the CRC32C white paper that was referenced. Patch applied. -- Email: Herbert Xu herb...@gondor.apana.org.au Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

Re: [PATCH] crypto: caam - fix typo CRYPTO_AHASH

2013-03-10 Thread Herbert Xu
On Thu, Mar 07, 2013 at 06:51:27PM -0600, Kim Phillips wrote: On Tue, 5 Mar 2013 14:33:16 +0100 Paul Bolle pebo...@tiscali.nl wrote: The Kconfig entry for CAAM's hash algorithm implementations has always selected CRYPTO_AHASH. But there's no corresponding Kconfig symbol. It seems it

Re: [RESEND PATCH 6/6] doc: Fix a wrong comment in Documentation/hw_random.txt

2013-03-10 Thread Herbert Xu
On Thu, Mar 07, 2013 at 06:38:17PM +0800, Tang Chen wrote: Seeing from the comment, there should be three reasons for removing request_mem_region. Change the comment two to three. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com Acked-by: Rob Landley r...@landley.net Patch applied. --

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-10 Thread Francesco Lavra
On 02/28/2013 05:49 AM, Mike Turquette wrote: Dynamic voltage and frequency scaling (dvfs) is a common power saving technique in many of today's modern processors. This patch introduces a common clk rate-change notifier handler which scales voltage appropriately whenever clk_set_rate is

Re: [PATCH v2 08/20] x86, ACPI: Find acpi tables in initrd early from head_32.S/head64.c

2013-03-10 Thread Pekka Enberg
On Sun, Mar 10, 2013 at 8:44 AM, Yinghai Lu ying...@kernel.org wrote: +void __init x86_acpi_override_find(void) +{ + unsigned long ramdisk_image, ramdisk_size; + unsigned char *p = NULL; + +#ifdef CONFIG_X86_32 + struct boot_params *boot_params_p; + + /* +

Re: [PATCHSET wq/for-3.10-tmp] workqueue: implement workqueue with custom worker attributes

2013-03-10 Thread Lai Jiangshan
On 02/03/13 11:23, Tejun Heo wrote: Hi, Tejun, I agree almost the whole design.(only except some locks) And I found only a little problems for current review. This patchset contains the following 31 patches. 0001-workqueue-make-sanity-checks-less-punshing-using-WAR.patch

Re: [PATCH v2, part2 10/10] mm/x86: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Pekka Enberg
On Sun, Mar 10, 2013 at 10:01 AM, Jiang Liu liu...@gmail.com wrote: Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com --- arch/x86/mm/highmem_32.c |1 - arch/x86/mm/init_32.c| 10 +- 2 files

Re: [PATCH v2, part2 10/10] mm/x86: use free_highmem_page() to free highmem pages into buddy system

2013-03-10 Thread Pekka Enberg
On Sun, Mar 10, 2013 at 12:32 PM, Pekka Enberg penb...@kernel.org wrote: On Sun, Mar 10, 2013 at 10:01 AM, Jiang Liu liu...@gmail.com wrote: Use helper function free_highmem_page() to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com ---

Re: [PATCH v2, part2 01/10] mm: introduce free_highmem_page() helper to free highmem pages into buddy system

2013-03-10 Thread Pekka Enberg
On Sun, Mar 10, 2013 at 10:01 AM, Jiang Liu liu...@gmail.com wrote: Introduce helper function free_highmem_page(), which will be used by architectures with HIGHMEM enabled to free highmem pages into the buddy system. Signed-off-by: Jiang Liu jiang@huawei.com Reviewed-by: Pekka Enberg

[PATCH] irq: fix typo in a header file.

2013-03-10 Thread Kevin Wilson
This patch fixes a typo in include/linux/irq.h. Signed-off-by: Kevin Wilson wkev...@gmail.com --- include/linux/irq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/irq.h b/include/linux/irq.h index bc4e066..c2b7e51 100644 --- a/include/linux/irq.h +++

[PATCH 0/5] HID: roccat: Support for new devices and further code removals

2013-03-10 Thread Stefan Achatz
This patchset adds support for two new devices. While more functionality gets moved to userland the code for older modules gets again stripped down further to minimum functionality. The userland-tools supporting these changes are up for download nearly a month now. -- To unsubscribe from this

[PATCH 1/5] HID: roccat: Added support for Roccat Kone Pure gaming mouse

2013-03-10 Thread Stefan Achatz
Userland-tools can already be found at http://sourceforge.net/projects/roccat Signed-off-by: Stefan Achatz erazor...@users.sourceforge.net --- .../ABI/testing/sysfs-driver-hid-roccat-konepure | 105 +++ drivers/hid/Makefile |4 +- drivers/hid/hid-core.c

[PATCH 5/5] HID: roccat: Fixed comments on chardevice

2013-03-10 Thread Stefan Achatz
Fixed parameter documentations Signed-off-by: Stefan Achatz erazor...@users.sourceforge.net --- drivers/hid/hid-roccat.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/hid/hid-roccat.c b/drivers/hid/hid-roccat.c index d7437ef..b59b3df 100644 ---

[PATCH 3/5] HID: roccat: Removed profile change reports for outside changes

2013-03-10 Thread Stefan Achatz
Userland-tools don't need to be notified about changes they issued themselves anymore. Signed-off-by: Stefan Achatz erazor...@users.sourceforge.net --- drivers/hid/hid-roccat-isku.c |6 -- drivers/hid/hid-roccat-kone.c | 16 +--- drivers/hid/hid-roccat-koneplus.c |

[PATCH 2/5] HID: roccat: Removed actual profile from chardev reports

2013-03-10 Thread Stefan Achatz
Userland-tools now keep track of actual profile themselves. Spared out Pyra, which is a harder case. Signed-off-by: Stefan Achatz erazor...@users.sourceforge.net --- drivers/hid/hid-roccat-arvo.c | 25 +++--- drivers/hid/hid-roccat-arvo.h |4 +--

[PATCH 4/5] HID: roccat: Added support for IskuFX

2013-03-10 Thread Stefan Achatz
Extending isku module with one additional and one changed sysfs attr. IskuFX has larger light sysfs attr. Made the code size tolerant so both devices can be handled. Signed-off-by: Stefan Achatz erazor...@users.sourceforge.net --- .../ABI/testing/sysfs-driver-hid-roccat-isku | 12

[PATCH] epoll: fix sparse error on RCU assignment

2013-03-10 Thread Eric Wong
This fixes the following sparse error when using CONFIG_SPARSE_RCU_POINTER=y and make C=2 fs/eventpoll.o fs/eventpoll.c:514:17: error: incompatible types in comparison expression (different address spaces) Cc: Al Viro v...@zeniv.linux.org.uk Cc: Andrew Morton a...@linux-foundation.org Cc:

WARNING: at drivers/tty/tty_buffer.c:428 flush_to_ldisc

2013-03-10 Thread Thomas Meyer
[25693.253108] [ cut here ] [25693.253117] WARNING: at drivers/tty/tty_buffer.c:428 flush_to_ldisc+0x162/0x170() [25693.253118] Hardware name: Aspire 1810T [25693.253119] tty is NULL [25693.253148] Modules linked in: fuse ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6

Re: Suggestion for fixing the variable length array used in the kernel.

2013-03-10 Thread Dan Carpenter
On Sat, Mar 09, 2013 at 03:00:54PM -0800, Christopher Li wrote: On Sat, Mar 9, 2013 at 2:34 PM, Dan Carpenter dan.carpen...@oracle.com wrote: The problems is if we go over the 8k stack. So big arrays are bad. Also if the dynamically sized array is inside a loop then normally GCC frees it

Re: [PATCH] x86: kvm: reset the bootstrap processor when it gets an INIT

2013-03-10 Thread Gleb Natapov
On Sat, Mar 09, 2013 at 07:48:33AM +0100, Paolo Bonzini wrote: After receiving an INIT signal (either via the local APIC, or through KVM_SET_MP_STATE), the bootstrap processor should reset immediately and start execution at 0xfff0. Also, SIPIs have no effect on the bootstrap processor.

Re: kernel BUG at fs/sysfs/group.c:65!

2013-03-10 Thread Tejun Heo
(cc'ing Jens) Hello, On Sun, Mar 10, 2013 at 04:53:11PM +0800, Ming Lei wrote: On Sun, Mar 10, 2013 at 12:36 AM, Tommi Rantala tt.rant...@gmail.com wrote: [ 40.089036] [81222e29] sysfs_get_dirent+0x39/0x80 [ 40.089036] [81224ad9] sysfs_remove_group+0x29/0x100 [

[PATCH] epoll: use RCU protect wakeup_source in epitem

2013-03-10 Thread Eric Wong
Eric Dumazet eric.duma...@gmail.com wrote: On Sun, 2013-03-10 at 01:11 +, Eric Wong wrote: static void ep_destroy_wakeup_source(struct epitem *epi) { - wakeup_source_unregister(epi-ws); - epi-ws = NULL; + struct wakeup_source *ws = epi-ws; + +

[char-misc 0/2][3.9] Lynx Point LP Bug Fixes for 3.9

2013-03-10 Thread Tomas Winkler
Hi Greg Please, if possible schedule these patches for 3.9 update. The patches fix the reset/initialization for Lynx Point LP (dev_id: 0x9C3A) devices to be found in the Haswell systems. This not a regression per se but it's a fix for a new device. Tomas Winkler (2): mei: ME hw reset need to

[char-misc 1/2][3.9] mei: ME hardware reset needs to be synchronized

2013-03-10 Thread Tomas Winkler
This fixes failure during initialization on Lynx Point LP devices. ME driver needs to release the device from the reset only after the FW has completed its flow and indicated it by delivering an interrupt to the host. This is the correct behavior for all the ME devices yet the the previous

[char-misc 2/2][3.9] mei: add mei_stop function to stop mei device

2013-03-10 Thread Tomas Winkler
mei_stop calls mei_reset with disabling the interrupts. It will have the same effect as the open code it replaces in the mei_remove. The reset sequence on remove is required for the Lynx Point LP devices to clean the reset state. mei_stop is called from mei_pci_suspend and mei_remove functions

Re: [PATCH 30/31] driver/base: implement subsys_virtual_register()

2013-03-10 Thread Tejun Heo
Hey, guys. On Fri, Mar 08, 2013 at 01:04:25AM +0100, Kay Sievers wrote: Sorry for the delay, I'm at a conference all this week, and haven't had much time to think about this. If Kay says this is ok for now, that's good enough for me. Yes, it looks fine to me. If we provide the unified

Re: [PATCHSET wq/for-3.10-tmp] workqueue: implement workqueue with custom worker attributes

2013-03-10 Thread Tejun Heo
Hey, Lai. On Sun, Mar 10, 2013 at 06:34:33PM +0800, Lai Jiangshan wrote: This patchset contains the following 31 patches. 0001-workqueue-make-sanity-checks-less-punshing-using-WAR.patch 0002-workqueue-make-workqueue_lock-irq-safe.patch workqueue_lock protects too many things. We

Re: Fwd: [Nepomuk] Better support for (desktop) file search / indexing applications

2013-03-10 Thread Lijo Antony
On 03/10/2013 08:51 AM, Simeon Bird wrote: Hi, We (nepomuk) recently looked at using fanotify, and indeed we would need user watches, support for moves and recursive directory watches (we need to support the case where /home is not a separate filesystem) before it would be useful to us. If you

Re: WARNING: at drivers/tty/tty_buffer.c:428 flush_to_ldisc

2013-03-10 Thread Jiri Slaby
On 03/10/2013 12:38 PM, Thomas Meyer wrote: [25693.253108] [ cut here ] [25693.253117] WARNING: at drivers/tty/tty_buffer.c:428 flush_to_ldisc+0x162/0x170() [25693.253118] Hardware name: Aspire 1810T [25693.253119] tty is NULL Yeah, thanks. I sent a patch to disable

[PATCH] block: don't cast kmalloc() return value

2013-03-10 Thread Mihnea Dobrescu-Balaur
Signed-off-by: Mihnea Dobrescu-Balaur mihne...@gmail.com --- drivers/block/cciss_scsi.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c index da33111..13a70d8 100644 --- a/drivers/block/cciss_scsi.c +++

[PATCH] Drivers: staging: media: davinci_vpfe: Use resource_size function

2013-03-10 Thread Alexandru Gheorghiu
Use resource_size function on resource object instead of explicit computation. Signed-off-by: Alexandru Gheorghiu gheorghiuan...@gmail.com --- drivers/staging/media/davinci_vpfe/dm365_ipipeif.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: 8250.nr_uarts broken in 3.7

2013-03-10 Thread Sean Young
On Sat, Mar 09, 2013 at 03:14:18PM +0100, Jiri Slaby wrote: This is so disgusting that I will do the following: * ack your patch after you change the above (if that works) * rename 8250.c to 8250_core.c * change 8250_core.ko back to 8250.ko (ie. bring back the old module name) * thus switch

[PATCH] gpu: don't cast kzalloc() return value

2013-03-10 Thread Mihnea Dobrescu-Balaur
Signed-off-by: Mihnea Dobrescu-Balaur mihne...@gmail.com --- drivers/gpu/drm/i915/intel_sdvo.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index df08e81..5300526 100644 ---

[PATCH] aic7xxx: use kzalloc instead of kmalloc + memset

2013-03-10 Thread Silviu-Mihai Popescu
This replaces a call to kmalloc() followed by memset() with just one call to kzalloc(). This was found using make coccicheck. Signed-off-by: Silviu-Mihai Popescu silviupopescu1...@gmail.com --- drivers/scsi/aic7xxx/aic7xxx_core.c |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-)

[PATCH] net: can: af_can.c: Fix checkpatch warnings

2013-03-10 Thread Valentin Ilie
Replace printk(KERN_ERR with pr_err Add space before { Signed-off-by: Valentin Ilie valentin.i...@gmail.com --- net/can/af_can.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/net/can/af_can.c b/net/can/af_can.c index c48e522..a14c0aa 100644 ---

[PATCH] cifs: replaced kmalloc + memset with kzalloc

2013-03-10 Thread Dia Vasile
From: Dia Vasile kill.elo...@hotmail.com Signed-off-by: Diana Vasile kill.elo...@hotmail.com --- fs/cifs/smb2pdu.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 41d9d07..83ef66e 100644 --- a/fs/cifs/smb2pdu.c +++

Re: [PATCH 07/31] workqueue: restructure pool / pool_workqueue iterations in freeze/thaw functions

2013-03-10 Thread Tejun Heo
Hello, Lai. On Sun, Mar 10, 2013 at 06:09:17PM +0800, Lai Jiangshan wrote: + /* clear FREEZING */ + for_each_pool(pool, id) { + spin_lock(pool-lock); + WARN_ON_ONCE(!(pool-flags POOL_FREEZING)); + pool-flags = ~POOL_FREEZING; +

[PATCH] eicon: Fixed checkpatch warning

2013-03-10 Thread Andreea Hodea
drivers/isdn/hardware/eicon/diva_didd.c:32:6: warning: symbol 'DRIVERRELEASE_DIDD' was not declared. Should it be static? Signed-off-by: Andreea Hodea hodea_andr...@yahoo.com --- drivers/isdn/hardware/eicon/diva_didd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] emu10k1: Fix coccicheck warning

2013-03-10 Thread Vicentiu Ciorbaru
Removed redundant cast of kmalloc return pointer. Signed-off-by: Vicentiu Ciorbaru cvicen...@gmail.com --- sound/pci/emu10k1/emufx.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c index 0275209..a0f7502 100644 ---

Re: [PATCH 12/31] workqueue: update synchronization rules on workqueue-pwqs

2013-03-10 Thread Tejun Heo
Hello, Lai. On Sun, Mar 10, 2013 at 06:09:28PM +0800, Lai Jiangshan wrote: #define for_each_pwq(pwq, wq) \ - list_for_each_entry((pwq), (wq)-pwqs, pwqs_node) + list_for_each_entry_rcu((pwq), (wq)-pwqs, pwqs_node) \ +

[PATCH] ath: changed kmalloc to kmemdup

2013-03-10 Thread Andrei Epure
Signed-off-by: Andrei Epure epure.and...@gmail.com --- drivers/net/wireless/ath/ath6kl/usb.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/usb.c b/drivers/net/wireless/ath/ath6kl/usb.c index 5fcd342..ffa1daa 100644 ---

Re: [PATCH] net: can: af_can.c: Fix checkpatch warnings

2013-03-10 Thread Oliver Hartkopp
Hallo Valentin, thanks for the idea for the cleanup. But if you replace the the printk() statements it's worth to check if code fits into a single line now, e.g. On 10.03.2013 13:28, Valentin Ilie wrote: r = NULL; @@ -749,7 +749,7 @@ int can_proto_register(const struct

Re: [PATCH 14/31] workqueue: replace POOL_MANAGING_WORKERS flag with worker_pool-manager_mutex

2013-03-10 Thread Tejun Heo
Hello, Lai. On Sun, Mar 10, 2013 at 06:09:38PM +0800, Lai Jiangshan wrote: - if (pool-flags POOL_MANAGING_WORKERS) + if (!mutex_trylock(pool-manager_mutex)) return ret; - pool-flags |= POOL_MANAGING_WORKERS; if mutex_trylock(pool-manager_mutex) fails, it does

[PATCH] bcm: don't cast kzalloc() return value

2013-03-10 Thread Mihnea Dobrescu-Balaur
Signed-off-by: Mihnea Dobrescu-Balaur mihne...@gmail.com --- drivers/staging/bcm/nvm.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/bcm/nvm.c b/drivers/staging/bcm/nvm.c index e6152f4..bea1330 100644 --- a/drivers/staging/bcm/nvm.c +++

Re: [PATCH 17/31] workqueue: implement attribute-based unbound worker_pool management

2013-03-10 Thread Tejun Heo
On Sun, Mar 10, 2013 at 06:08:57PM +0800, Lai Jiangshan wrote: @@ -3185,12 +3250,133 @@ static int init_worker_pool(struct worker_pool *pool) mutex_init(pool-assoc_mutex); ida_init(pool-worker_ida); + INIT_HLIST_NODE(pool-hash_node); + atomic_set(pool-refcnt, 1); We

Re: [PATCH] net: can: af_can.c: Fix checkpatch warnings

2013-03-10 Thread Daniel Mack
On Sun, Mar 10, 2013 at 1:45 PM, Oliver Hartkopp socket...@hartkopp.net wrote: Hallo Valentin, thanks for the idea for the cleanup. But if you replace the the printk() statements it's worth to check if code fits into a single line now, e.g. On 10.03.2013 13:28, Valentin Ilie wrote:

[PATCH] kgdb: Removed kmalloc returned value cast

2013-03-10 Thread Alex Grad
Signed-off-by: Alex Grad alex.g...@gmail.com --- arch/powerpc/kernel/kgdb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/kgdb.c b/arch/powerpc/kernel/kgdb.c index 5ca82cd..c1eef24 100644 --- a/arch/powerpc/kernel/kgdb.c +++

[PATCH] reiserfs: Use kstrdup instead of kmalloc/strcpy

2013-03-10 Thread Ionut-Gabriel Radu
Signed-off-by: Ionut-Gabriel Radu ihon...@gmail.com --- fs/reiserfs/super.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 194113b..f8a23c3 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -1147,8 +1147,7 @@

[PATCH] powerpc: Use PTR_RET instead of IS_ERR/PTR_ERR

2013-03-10 Thread Adrian-Leonard Radu
Signed-off-by: Adrian-Leonard Radu ady8r...@gmail.com --- arch/powerpc/kernel/iommu.c |2 +- arch/powerpc/kernel/time.c |4 +--- arch/powerpc/platforms/ps3/time.c|4 +--- arch/powerpc/sysdev/rtc_cmos_setup.c |5 + 4 files changed, 4 insertions(+), 11

[PATCH] wireless:rtlwifi: replaced kmalloc+memcpy with kmemdup

2013-03-10 Thread Andrei Epure
Signed-off-by: Andrei Epure epure.and...@gmail.com --- drivers/net/wireless/rtlwifi/usb.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/rtlwifi/usb.c b/drivers/net/wireless/rtlwifi/usb.c index 156b527..b5c80b5 100644 ---

Re: [PATCH] net: can: af_can.c: Fix checkpatch warnings

2013-03-10 Thread Oliver Hartkopp
On 10.03.2013 14:05, Daniel Mack wrote: @@ -817,8 +817,7 @@ static int can_notifier(struct notifier_block *nb, unsigned long msg, /* create new dev_rcv_lists for this device */ d = kzalloc(sizeof(*d), GFP_KERNEL); if (!d) { -

[PATCH] s390: replace kmalloc + memset with kzalloc

2013-03-10 Thread Stelian Nirlu
Signed-off-by: Stelian Nirlu stelianni...@gmail.com --- arch/s390/net/bpf_jit_comp.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c index 0972e91..e645528 100644 --- a/arch/s390/net/bpf_jit_comp.c +++

[PATCH] wireless:iwlwifi: changed kmalloc+memcpy with kmemdup

2013-03-10 Thread Andrei Epure
Signed-off-by: Andrei Epure epure.and...@gmail.com --- drivers/net/wireless/iwlwifi/iwl-test.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/iwl-test.c b/drivers/net/wireless/iwlwifi/iwl-test.c index ce0c67b..9bc402c 100644 ---

[PATCH] powerpc: place EXPORT_SYMBOL macro right after declaration

2013-03-10 Thread Valentina Manea
This fixes the following checkpatch.pl warnings: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable +EXPORT_SYMBOL(kmap_prot); WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable +EXPORT_SYMBOL(kmap_pte); Signed-off-by: Valentina Manea

Re: [PATCH] ath: changed kmalloc to kmemdup

2013-03-10 Thread Kalle Valo
Andrei Epure epure.and...@gmail.com writes: Signed-off-by: Andrei Epure epure.and...@gmail.com Thanks, I'll take this. But please prefix ath6kl patches with ath6kl: in the future. -- Kalle Valo -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH 1/5] power: ds2782_battery: Use dev_pm_ops

2013-03-10 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Cc: Evgeny Romanov roma...@neurosoft.ru Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- drivers/power/ds2782_battery.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[PATCH 2/5] power: max17040_battery: Use dev_pm_ops

2013-03-10 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Cc: Minkyu Kang mk7.k...@samsung.com Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- drivers/power/max17040_battery.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git

[PATCH 3/5] power: sbs-battery: Use dev_pm_ops

2013-03-10 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Cc: Rhyland Klein rkl...@nvidia.com Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- drivers/power/sbs-battery.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git

[PATCH 5/5] power: pm2301_charger: Remove no-op suspend/resume callbacks

2013-03-10 Thread Lars-Peter Clausen
Having suspend/resume callbacks which do nothing other then return 0 are functional equivalent to having no suspend/resume callbacks. So just remove these no-op suspend/resume callbacks. Cc: Lee Jones lee.jo...@linaro.org Signed-off-by: Lars-Peter Clausen l...@metafoo.de ---

[PATCH 4/5] power: pm2301_charger: Remove __dev* annotations

2013-03-10 Thread Lars-Peter Clausen
The removal of __devinit and friends seems to have overlapped with the addition of the pm2301_charger driver. Currently the driver fails to build with the following errors: drivers/power/pm2301_charger.c:843:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before

[PATCH] topology: removed kzalloc return value cast

2013-03-10 Thread Mihai Stirbat
Signed-off-by: Mihai Stirbat mihai.stir...@gmail.com --- arch/arm/kernel/topology.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 79282eb..f10316b 100644 --- a/arch/arm/kernel/topology.c +++

Re: [PATCH 00/10] dmatest: update the module to use debugfs

2013-03-10 Thread Viresh Kumar
On 8 March 2013 21:11, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: On Thu, 2013-03-07 at 11:50 +0530, Vinod Koul wrote: On Mon, Mar 04, 2013 at 11:09:24AM +0200, Andy Shevchenko wrote: The first approach to get dmatest module more flexible and easier to play with. The amount

[PATCH] kvm: remove cast for kmalloc return value

2013-03-10 Thread Ioan Orghici
Signed-off-by: Ioan Orghiciioan.orgh...@gmail.com --- arch/x86/kvm/vmx.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 7cc566b..35c2c8f 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -5261,8 +5261,7 @@ static

[PATCH] usb: Use resource_size function

2013-03-10 Thread Paul Vlase
Signed-off-by: Paul Vlase vlase.p...@gmail.com --- drivers/usb/host/ehci-mv.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 3065809..5cd9f96 100644 --- a/drivers/usb/host/ehci-mv.c +++

Re: [PATCH] kgdb: Removed kmalloc returned value cast

2013-03-10 Thread Pekka Enberg
On Sun, Mar 10, 2013 at 3:06 PM, Alex Grad alex.g...@gmail.com wrote: Signed-off-by: Alex Grad alex.g...@gmail.com --- arch/powerpc/kernel/kgdb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/kgdb.c b/arch/powerpc/kernel/kgdb.c index

Re: [PATCH] bcm: don't cast kzalloc() return value

2013-03-10 Thread Pekka Enberg
On Sun, Mar 10, 2013 at 2:48 PM, Mihnea Dobrescu-Balaur mihne...@gmail.com wrote: Signed-off-by: Mihnea Dobrescu-Balaur mihne...@gmail.com Reviewed-by: Pekka Enberg penb...@kernel.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH] s390: replace kmalloc + memset with kzalloc

2013-03-10 Thread Pekka Enberg
On Sun, Mar 10, 2013 at 3:13 PM, Stelian Nirlu stelianni...@gmail.com wrote: Signed-off-by: Stelian Nirlu stelianni...@gmail.com --- arch/s390/net/bpf_jit_comp.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/s390/net/bpf_jit_comp.c

[PATCH v2] serial: 8250: Keep 8250.xxxx module options functional after driver rename

2013-03-10 Thread Josh Boyer
With commit 835d844d1 (8250_pnp: do pnp probe before legacy probe), the 8250 driver was renamed to 8250_core. This means any existing usage of the 8259. module parameters or as a kernel command line switch is now broken, as the 8250_core driver doesn't parse options belonging to something

Re: [PATCH] x86: kvm: reset the bootstrap processor when it gets an INIT

2013-03-10 Thread Paolo Bonzini
Il 10/03/2013 12:46, Gleb Natapov ha scritto: On Sat, Mar 09, 2013 at 07:48:33AM +0100, Paolo Bonzini wrote: After receiving an INIT signal (either via the local APIC, or through KVM_SET_MP_STATE), the bootstrap processor should reset immediately and start execution at 0xfff0. Also, SIPIs

[PATCH] Bluetooth device 0cf3:3008 should map AR 3012

2013-03-10 Thread Sunguk Lee
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=0cf3 ProdID=3008 Rev= 0.01 S: Manufacturer=Atheros Communications S: Product=Bluetooth USB Host Controller S: SerialNumber=Alaska Day 2006 C:* #Ifs= 2 Cfg#=

[PATCH linux-next] ipvs: ip_vs_fill_iph_skb: Silence warning that 'iph.thoff_reasm' may be used uninitialized

2013-03-10 Thread Tim Gardner
If CONFIG_IP_VS_IPV6 is not defined, then ip_vs_fill_iph_skb() does not initialize all of the fields in struct ip_vs_iphdr. Silence the 'may be used uninitialized' warning in the IPV4 only case by initializing the only field that is unique to IPV6. net/netfilter/ipvs/ip_vs_pe_sip.c: In function

very strange dependencies on CONFIG_EXPERT=n in kernel 3.8

2013-03-10 Thread Konrad Vrba
Dear list, I have noticed that CONFIG_EXPERT=n makes the following options in the kernel required (unremovable): CONFIG_FW_LOADER=y CONFIG_EXTRA_FIRMWARE= CONFIG_MOUSE_PS2_ALPS=y CONFIG_MOUSE_PS2_LOGIPS2PP=y CONFIG_MOUSE_PS2_SYNAPTICS=y CONFIG_MOUSE_PS2_LIFEBOOK=y CONFIG_MOUSE_PS2_TRACKPOINT=y

Re: [PATCH] wireless:iwlwifi: changed kmalloc+memcpy with kmemdup

2013-03-10 Thread Johannes Berg
Applied. johannes -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

lock() - Where is this defined?

2013-03-10 Thread Thomas Meyer
Hi, in include/linux/lockdep.h: #define LOCK_CONTENDED(_lock, try, lock) \ lock(_lock) Where is this lock() function defined? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

[for-next][PATCH 2/4] tracing: Optimize trace_printk() with one arg to use trace_puts()

2013-03-10 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org Although trace_printk() is extremely fast, especially when it uses trace_bprintk() (writes args straight to buffer instead of inserting into string), it still has the overhead of calling one of the printf sprintf() functions, that need to scan

  1   2   3   4   5   6   >