Re: [PATCH] Staging: speakup: synth.c: removed a space

2013-12-04 Thread Dan Carpenter
You and I generally agree on style preferences... I think the warning should be limited to grep ;$. I did a grep on the kernel for ' ;' and found 8000 results. 6000 of them are caught by my semicolon before the newline rule. The remaining 2000 are assembly, macros, and crappy for loops.

Re: [PATCH 08/11] staging: et131x: simplify rx dma code

2013-12-04 Thread Mark Einon
On Wed, Dec 04, 2013 at 03:24:18PM +0800, ZHAO Gang wrote: The original code allocate rx dma memory in several dma_alloc_coherent calls, which causes some problems: 1. since dma_alloc_coherent allocate at least one page memory, it wastes some memory when allocation size is smaller than one

Re: [PATCH 18/51] staging: comedi: ni_at_a2150: tidy up the irq request

2013-12-04 Thread Ian Abbott
On 2013-12-03 19:07, H Hartley Sweeten wrote: The irq is only needed to support async commands. Tidy up the code that does the request_irq() and remove the noise. Only hookup the subdevice command support if the irq is available. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com

Re: [PATCH 19/51] staging: comedi: me4000: refactor request_irq() during attach

2013-12-04 Thread Ian Abbott
On 2013-12-03 19:07, H Hartley Sweeten wrote: Do the request_irq() before setting up the subdevices. This removes an indent level and makes the code a bit cleaner. Also, remove the dev_warn() noise about the irq. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

Re: [PATCH 22/51] staging: comedi: das1800: tidy up irq request

2013-12-04 Thread Ian Abbott
On 2013-12-03 19:07, H Hartley Sweeten wrote: Clean up the irq request in the attach of this driver and remove the dev_{level} noise. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

Re: [PATCH 49/51] staging: comedi: ni_pcidio: request_irq() before seting up subdevices

2013-12-04 Thread Ian Abbott
On 2013-12-03 19:07, H Hartley Sweeten wrote: Do the request_irq() before setting up the subdevices. Only hook up the command support of the irq was sucessfully requested. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

Re: [PATCH 27/51] staging: comedi: adl_pci9111: fix incorrect irq passed to request_irq()

2013-12-04 Thread Ian Abbott
On 2013-12-03 19:07, H Hartley Sweeten wrote: The dev-irq passed to request_irq() will always be 0 when the auto_attach function is called. The pcidev-irq should be used instead to get the correct irq number. It looks like this bug was introduced in the 3.7 kernel. I'll check it for

Re: [PATCH 00/51] staging: comedi: cleanup irq requests

2013-12-04 Thread Ian Abbott
On 2013-12-03 19:07, H Hartley Sweeten wrote: The comedi subsystem only requires the drivers to support interrupts if one or more of the subdevices support async commands. Since this is optional: 1) don't fail the attach if the irq is not available 2) only hookup the async command support if

Re: [PATCH 08/11] staging: et131x: simplify rx dma code

2013-12-04 Thread ZHAO Gang
On Wed, Dec 4, 2013 at 5:05 PM, Mark Einon mark.ei...@gmail.com wrote: On Wed, Dec 04, 2013 at 03:24:18PM +0800, ZHAO Gang wrote: The original code allocate rx dma memory in several dma_alloc_coherent calls, which causes some problems: 1. since dma_alloc_coherent allocate at least one page

Re: [PATCH] Staging: speakup: synth.c: removed a space

2013-12-04 Thread Joe Perches
On Wed, 2013-12-04 at 10:38 +0300, Dan Carpenter wrote: On Wed, Dec 04, 2013 at 06:35:15AM +0200, Aldo Iljazi wrote: Samuel Thibault wrote: Err, I'd rather make it really visible that the for loop doesn't have its first statement? Wouldn't it be better if you add a comment there?

Re: [PATCH] Staging: bcm: DDRInit: Fixed non_standard kernel style.

2013-12-04 Thread Dan Carpenter
On Wed, Dec 04, 2013 at 04:53:09AM -0500, Gary Rookard wrote: Fixed non_standard kernel style. You're doing too many things at once, it needs to be broken into a patch series which do one type of change at a time. The changelog is useless. Signed off by: Gary Alan Rookard

Re: [PATCH 19/51] staging: comedi: me4000: refactor request_irq() during attach

2013-12-04 Thread Dan Carpenter
On Wed, Dec 04, 2013 at 11:10:05AM +, Ian Abbott wrote: On 2013-12-03 19:07, H Hartley Sweeten wrote: Do the request_irq() before setting up the subdevices. This removes an indent level and makes the code a bit cleaner. Also, remove the dev_warn() noise about the irq. Signed-off-by: H

Re: [PATCH 08/11] staging: et131x: simplify rx dma code

2013-12-04 Thread ZHAO Gang
On Wed, Dec 4, 2013 at 8:01 PM, ZHAO Gang gamer...@gmail.com wrote: On Wed, Dec 4, 2013 at 5:05 PM, Mark Einon mark.ei...@gmail.com wrote: On Wed, Dec 04, 2013 at 03:24:18PM +0800, ZHAO Gang wrote: The original code allocate rx dma memory in several dma_alloc_coherent calls, which causes

Re: [PATCH 19/51] staging: comedi: me4000: refactor request_irq() during attach

2013-12-04 Thread Ian Abbott
On 2013/12/04 01:05 PM, Dan Carpenter wrote: On Wed, Dec 04, 2013 at 11:10:05AM +, Ian Abbott wrote: On 2013-12-03 19:07, H Hartley Sweeten wrote: Do the request_irq() before setting up the subdevices. This removes an indent level and makes the code a bit cleaner. Also, remove the

[PATCH v1 4/9] staging: android: binder: Add align_helper() macro

2013-12-04 Thread Serban Constantinescu
This patch adds align_helper() macro that will be used for enforcing the desired alignment on 64bit systems where the alignment will differ depending on the userspace used (32bit /64bit). This patch is a temporary patch that will be extended with 32bit compat handling. Signed-off-by: Serban

[PATCH v1 6/9] staging: android: binder: Add size_helper() macro

2013-12-04 Thread Serban Constantinescu
This patch adds size_helper() macro that will be used for indexing into different buffers on 64bit systems where the size of particular structures will differ depending on the userspace used (32bit /64bit). This patch is a temporary patch that will be extended with 32bit compat handling.

[PATCH v1 2/9] staging: android: binder: Add binder_copy_to_user()

2013-12-04 Thread Serban Constantinescu
This patch adds binder_copy_to_user() to be used for copying binder commands to user address space. This way we can abstract away the copy_to_user() calls and add separate handling for the compat layer. Signed-off-by: Serban Constantinescu serban.constantine...@arm.com ---

[PATCH v1 7/9] staging: android: binder: Add copy_flat_binder_object()

2013-12-04 Thread Serban Constantinescu
This patch adds copy_flat_binder_object macro() that will help dereference struct flat_binder_object on 64bit systems where the structure differs between 32bit and 64bit userspace. This patch is a temporary patch that will be extended with 32bit compat handling. Signed-off-by: Serban

[PATCH v1 8/9] staging: android: binder: Add binder compat handling to binder.h

2013-12-04 Thread Serban Constantinescu
This patch adds all the needed compat structures to binder.h. All the structures defined in this patch mirror the structure and size of 32bit ones. Signed-off-by: Serban Constantinescu serban.constantine...@arm.com --- drivers/staging/android/binder.h | 109

[PATCH v1 1/9] staging: android: binder: Move some of the logic into subfunction

2013-12-04 Thread Serban Constantinescu
This patch moves some of the logic for binder_thread_write() into subfunctions. This way we can share more code with the binder compat layer. Signed-off-by: Serban Constantinescu serban.constantine...@arm.com --- drivers/staging/android/binder.c | 403 +- 1

[PATCH -next] checkpatch: Warn only on space before semicolon at end of line

2013-12-04 Thread Joe Perches
The space before a non-naked semicolon test has unwanted output when used in for ( ;; ) loops. Make the test work only on end-of-line statement termination semicolons. Signed-off-by: Joe Perches j...@perches.com --- On Wed, 2013-12-04 at 11:21 +0300, Dan Carpenter wrote: You and I generally

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread Greg KH
On Wed, Dec 04, 2013 at 06:09:41PM +, Serban Constantinescu wrote: +#define size_helper(x) ({\ + size_t __size; \ + if (!is_compat_task())

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread Colin Cross
On Wed, Dec 4, 2013 at 10:35 AM, Greg KH gre...@linuxfoundation.org wrote: snip And finally, is this all really needed? Why not just fix the structures to be correct, and then fix userspace to use the correct structures as well, thereby not needing a compat layer at all? Some of the binder

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread Colin Cross
On Wed, Dec 4, 2013 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 12:46:42PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at 10:35 AM, Greg KH gre...@linuxfoundation.org wrote: snip And finally, is this all really needed? Why not just fix the structures to

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread Greg KH
On Wed, Dec 04, 2013 at 01:55:34PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 12:46:42PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at 10:35 AM, Greg KH gre...@linuxfoundation.org wrote: snip And

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread Colin Cross
On Wed, Dec 4, 2013 at 2:02 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 01:55:34PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 12:46:42PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at

Re: [PATCH 00/51] staging: comedi: cleanup irq requests

2013-12-04 Thread gre...@linuxfoundation.org
On Wed, Dec 04, 2013 at 11:46:48AM +, Ian Abbott wrote: On 2013-12-03 19:07, H Hartley Sweeten wrote: The comedi subsystem only requires the drivers to support interrupts if one or more of the subdevices support async commands. Since this is optional: 1) don't fail the attach if the

Re: [PATCH 04/11] staging: et131x: drop packet when error occurs in et131x_tx

2013-12-04 Thread Greg Kroah-Hartman
On Wed, Dec 04, 2013 at 03:24:14PM +0800, ZHAO Gang wrote: As TODO file suggested, drop packet instead of return NETDEV_TX_BUSY when tx failed. Really? That's ok to do? Seems like you are changing the logic of the function a lot here, how does the code let userspace know packets were dropped

Re: [PATCH v1 2/9] staging: android: binder: Add binder_copy_to_user()

2013-12-04 Thread Greg KH
On Wed, Dec 04, 2013 at 06:09:34PM +, Serban Constantinescu wrote: This patch adds binder_copy_to_user() to be used for copying binder commands to user address space. This way we can abstract away the copy_to_user() calls and add separate handling for the compat layer. Signed-off-by:

Re: [PATCH 01/11] staging: et131x: make some tweaks to reduce split lines

2013-12-04 Thread Greg Kroah-Hartman
On Wed, Dec 04, 2013 at 03:24:11PM +0800, ZHAO Gang wrote: 1. As TODO list suggested, do this sort of things to reduce split lines: struct fbr_lookup *fbr; fbr = rx_local-fbr[id]; Then replace all the instances of rx_local-fbr[id] with fbr. 2. Some code style change

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread One Thousand Gnomes
On Wed, 4 Dec 2013 10:35:54 -0800 Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 06:09:41PM +, Serban Constantinescu wrote: +#define size_helper(x) ({ \ + size_t __size;

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread Colin Cross
On Wed, Dec 4, 2013 at 4:02 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 02:22:13PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at 2:02 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 01:55:34PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at

[PATCH 1/5] Staging: bcm: DDRInit: Fixed coding style issue, replaced spaces w/ tabs.(patch set)

2013-12-04 Thread Gary Rookard
This is the first patch of a series. Replaced spaces in margin w/ 1 tab for lines: 11-15, 17-23, 25-58, 60, 62, 64 On branch staging-next --- drivers/staging/bcm/DDRInit.c | 98 +-- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git

Re: [PATCH 1/3] vme_user: Ensure driver compiles after VME bridges

2013-12-04 Thread Aaron Sierra
- Original Message - From: Martyn Welch martyn.we...@ge.com Sent: Thursday, November 7, 2013 7:00:35 AM On 05/11/13 20:58, Aaron Sierra wrote: - Original Message - From: Martyn Welch martyn.we...@ge.com Subject: Re: [PATCH 1/3] vme_user: Ensure driver compiles after VME

[PATCH 2/5] Staging: bcm:DDRInit: Fixed coding style issue, replaced spaces w/ tab.(patch set)

2013-12-04 Thread Gary Rookard
This is the second patch of a series.(2) Replaced spaces in margin w/ 1 tab for lines: 69-78, 80-114, 116 Signed-off-by: Gary Alan Rookard garyrook...@gmail.com On branch staging-next --- drivers/staging/bcm/DDRInit.c | 92 +-- 1 file changed, 46

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread One Thousand Gnomes
None of this (the patch series or the original code) is mine. My Sorry mistraced the attribution sequence question was more of a general one on designing ioctls, as well as concerns with changing the existing 32-bit api. I think in general my advice would be: If its already been screwed up

[PATCH 3/5] Staging: bcm: DDRInit: Fixed coding style issue, replaced spaces w/ tab.(patch set)

2013-12-04 Thread Gary Rookard
This is the third patch of a series.(3) Replaced spaces in margin w/ 1 tab for lines: 121-125, 128-134, 136, 138-171, 173, 175 Signed-off-by: Gary Alan Rookard garyrook...@gmail.com On branch staging-next --- drivers/staging/bcm/DDRInit.c | 98 +-- 1

[PATCH 3/3] Staging: bcm: DDRInit: Fixed coding style issue, replaced spaces w/ tab.(patch set)

2013-12-04 Thread Gary Rookard
This is the third patch of a series.(3) Replaced spaces in margin w/ 1 tab for lines: 121-125, 128-134, 136, 138-171, 173, 175 Signed-off-by: Gary Alan Rookard garyrook...@gmail.com On branch staging-next --- drivers/staging/bcm/DDRInit.c | 98 +-- 1

[PATCH 5/5] Staging: bcm: DDRInit: Fixed coding style issue, replaced spaces w/ tab.(patch set)

2013-12-04 Thread Gary Rookard
This is the fifth and final patch for replace spaces w/tab.(5) Replaced spaces in margin w/ 1 tab for lines: 193-197, 199-200, 202-205, 207, 209-242, 244, 246 Signed-off-by: Gary Alan Rookard garyrook...@gmail.com On branch staging-next --- drivers/staging/bcm/DDRInit.c | 96

Re: [PATCH 04/11] staging: et131x: drop packet when error occurs in et131x_tx

2013-12-04 Thread ZHAO Gang
On Thu, Dec 5, 2013 at 7:23 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 03:24:14PM +0800, ZHAO Gang wrote: As TODO file suggested, drop packet instead of return NETDEV_TX_BUSY when tx failed. Really? That's ok to do? Seems like you are changing the logic

[PATCH 4/5] Staging: bcm: DDRInit: Fixed coding style issue, repaced spaces w/ tab.(patch set)

2013-12-04 Thread Gary Rookard
This is the fourth patch of a series.(4) Replaced spaces in margin w/ 1 tab for lines: 181-185, 187-188 Signed-off-by: Gary Alan Rookard garyrook...@gmail.com On branch staging-next --- drivers/staging/bcm/DDRInit.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

Re: [PATCH 08/11] staging: et131x: simplify rx dma code

2013-12-04 Thread ZHAO Gang
On Wed, Dec 4, 2013 at 10:53 PM, Mark Einon mark.ei...@gmail.com wrote: On Wed, Dec 04, 2013 at 09:32:27PM +0800, ZHAO Gang wrote: By re-examine the code I found the calculation is not correct. The real impact is too big to apply this patch, so this patch and following patches should be

Re: [PATCH v1 9/9] staging: android: binder: Add binder compat layer

2013-12-04 Thread Arve Hjønnevåg
On Wed, Dec 4, 2013 at 2:02 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 01:55:34PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 04, 2013 at 12:46:42PM -0800, Colin Cross wrote: On Wed, Dec 4, 2013 at

Re: [PATCH -next] checkpatch: Warn only on space before semicolon at end of line

2013-12-04 Thread Dan Carpenter
Thanks so much. :) regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel