Re: [HPDD-discuss] [PATCH] staging: lustre: llite: Use kzalloc and rewrite null tests

2014-09-18 Thread Julia Lawall
With respect to the upper case lower case issue, does the thing need to be a macro? I think that the lowercase is more or less fine, but only if what is behind it is a function. I say more or less fine, because normally in the kernel the special allocators have special purposes, eg allocating and

Re: [PATCH]imx-drm coding style fixes

2014-09-18 Thread Giedrius Statkevičius
On 2014.09.19 01:57, Rene Kolarik wrote: > Hello, > > I've fixed coding style issues in drivers/staging/imx-drm directory. This is > a part of Eudyptula Challenge. Please submit your patches "inline" (look at /Documentation/SubmittingPatches section 7). Also, think about if it's worth seperating

Re: [HPDD-discuss] [PATCH] staging: lustre: llite: Use kzalloc and rewrite null tests

2014-09-18 Thread Drokin, Oleg
On Sep 18, 2014, at 10:57 PM, Drokin, Oleg wrote: > would not be easy to do. Perhaps registered callbacks for pools that could be > called on alloc and on free - though such pools would also need to allow to > allocate different sized chunks too). Come think of it - we don't even need callback

Re: [PATCH] staging: lustre: llite: Use kzalloc and rewrite null tests

2014-09-18 Thread Drokin, Oleg
Hello! On Sep 18, 2014, at 7:43 PM, Dan Carpenter wrote: > On Thu, Sep 18, 2014 at 10:24:02PM +0200, Julia Lawall wrote: >> From: Julia Lawall >> >> This patch removes some kzalloc-related macros and rewrites the >> associated null tests to use !x rather than x == NULL. > This is sort of exactl

Re: [PATCH] mfd: rtsx: fix PM suspend for 5227 & 5249

2014-09-18 Thread micky
On 09/19/2014 08:21 AM, Lee Jones wrote: On Thu, 18 Sep 2014, micky wrote: On 09/18/2014 12:53 PM, Lee Jones wrote: On Thu, 18 Sep 2014, micky_ch...@realsil.com.cn wrote: From: Micky Ching Fix rts5227&5249 failed send buffer cmd after suspend, PM_CTRL3 should reset before send any buffer c

Re: [PATCH] mfd: rtsx: fix PM suspend for 5227 & 5249

2014-09-18 Thread Lee Jones
On Thu, 18 Sep 2014, micky wrote: > On 09/18/2014 12:53 PM, Lee Jones wrote: > >On Thu, 18 Sep 2014, micky_ch...@realsil.com.cn wrote: > > > >>From: Micky Ching > >> > >>Fix rts5227&5249 failed send buffer cmd after suspend, > >>PM_CTRL3 should reset before send any buffer cmd after suspend. > >>

Re: [PATCH] staging: lustre: llite: Use kzalloc and rewrite null tests

2014-09-18 Thread Dan Carpenter
On Thu, Sep 18, 2014 at 10:24:02PM +0200, Julia Lawall wrote: > From: Julia Lawall > > This patch removes some kzalloc-related macros and rewrites the > associated null tests to use !x rather than x == NULL. > This is sort of exactly what Oleg asked us not to do in his previous email. ;P I th

[PATCH]imx-drm coding style fixes

2014-09-18 Thread Rene Kolarik
Hello, I've fixed coding style issues in drivers/staging/imx-drm directory. This is a part of Eudyptula Challenge. Rene Kolarik Signed-off-by: Rene Kolarik diff --git a/Documentation/devicetree/bindings/arm/fsl.txt b/Documentation/devicetree/bindings/arm/fsl.txt index e935d7d..4004bb8 100644 -

Re: [PATCH] staging: lustre: lustre: libcfs: debug.c: Cleaning up unnecessary use of memset in conjunction with strncpy

2014-09-18 Thread Dan Carpenter
On Thu, Sep 18, 2014 at 09:57:17PM +0200, Rickard Strandqvist wrote: > > Should I add this as a patch in lib/string.c or email him first.. What > is customary in these situations? > Just write up a normal patch and try to merge it through the normal methods. It's not that controversial to do:

iMX Coding Style Patch

2014-09-18 Thread Rene Kolarik
Hello, I'm sending this as a part of Eudyptula Challenge. Rene Kolarik diff --git a/Documentation/devicetree/bindings/arm/fsl.txt b/Documentation/devicetree/bindings/arm/fsl.txt index e935d7d..4004bb8 100644 --- a/Documentation/devicetree/bindings/arm/fsl.txt +++ b/Documentation/devicetree/bindi

Re: [PATCH] mmc: rtsx: add card power off during probe

2014-09-18 Thread Ulf Hansson
[...] >> >> In that case, don't forget to enable MMC_CAP2_FULL_PWR_CYCLE. >> >> > >> > if MMC_CAP2_NO_PRESCAN_POWERUP enable, will call mmc_power_off() at start, >> > then it will check ios.power_mode, but the state is MMC_POWER_OFF and just >> > return. >> >> Uhh, that's right! So, I wonder why w

[PATCH] Use kzalloc and rewrite null tests

2014-09-18 Thread Julia Lawall
The following patch removes some kzalloc-related macros and rewrites the associated null tests to use !x rather than x == NULL. The complete semantic patch used for this transformation is as follows: // @disable unlikely@ expression ptr; statement S,S1; @@ \(OBD_ALLOC\|OBD_ALLOC_WAIT\|OBD_ALL

[PATCH] staging: lustre: llite: Use kzalloc and rewrite null tests

2014-09-18 Thread Julia Lawall
From: Julia Lawall This patch removes some kzalloc-related macros and rewrites the associated null tests to use !x rather than x == NULL. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression ptr; statement S,S1; @@ \(

Re: [PATCH] staging: lustre: lustre: libcfs: debug.c: Cleaning up unnecessary use of memset in conjunction with strncpy

2014-09-18 Thread Rickard Strandqvist
2014-09-18 10:51 GMT+02:00 Dan Carpenter : > On Thu, Sep 18, 2014 at 12:12:42AM +0200, Rickard Strandqvist wrote: >> Hi Dan >> >> Ok, I have made two suggestions for strncpy function that also >> guarantees a terminating null character. >> 1) retunerar number of characters to be copied, it can be g

[PATCH v2] Staging: gdm724x: gdm_usb: added error checking in do_tx()

2014-09-18 Thread Abel Moyo
Added error checking for alloc_tx_struct in do_tx() Signed-off-by: Abel Moyo --- Changes in v2: - Added spin_unlock - Removed print error message drivers/staging/gdm724x/gdm_usb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/gdm724x/gdm_usb.c b/drivers/staging/

[PATCH 2/2] staging: comedi: comedi_fc.h: remove cfc_inc_scan_progress()

2014-09-18 Thread H Hartley Sweeten
This inline function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_fc.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/comedi_fc.h b/drivers/staging/comedi

[PATCH 1/2] staging: comedi: mite: use comedi_inc_scan_progress()

2014-09-18 Thread H Hartley Sweeten
This inline function is just a wrapper around comedi_inc_scan_progress(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/mite.c

[PATCH 0/2] staging: comedi: remove cfc_inc_scan_progress()

2014-09-18 Thread H Hartley Sweeten
The inline function cfc_inc_scan_progress() is just a wrapper around the comedi core function comedi_inc_scan_progress(). Convert all the drivers to use the core function directly and remove the wrapper. This series applies after: PATCH 00/11] staging: comedi: move comedi_fc functionality into co

[PATCH 3/8] staging: comedi: das16: use comedi_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
This inline function is just a wrapper around comedi_bytes_per_scan(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/das16.c b

[PATCH 6/8] staging: comedi: pcl816: use comedi_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
This inline function is just a wrapper around comedi_bytes_per_scan(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/pcl816.c

[PATCH 2/8] staging: comedi: amplc_pci230: use comedi_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
This inline function is just a wrapper around comedi_bytes_per_scan(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci230.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/amp

[PATCH 5/8] staging: comedi: pcl812: use comedi_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
This inline function is just a wrapper around comedi_bytes_per_scan(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/pcl

[PATCH 1/8] staging: comedi: amplc_pci224: use comedi_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
This inline function is just a wrapper around comedi_bytes_per_scan(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci224.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/amp

[PATCH 0/8] staging: comedi: remove cfc_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
The inline function cfc_bytes_per_scan() is just a wrapper around the comedi core function comedi_bytes_per_scan(). Convert all the drivers to use the core function directly and remove the wrapper. This series applies after: PATCH 00/11] staging: comedi: move comedi_fc functionality into core H

[PATCH 7/8] staging: comedi: pcl818: use comedi_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
This inline function is just a wrapper around comedi_bytes_per_scan(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/pcl818.c

[PATCH 4/8] staging: comedi: mite: use comedi_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
This inline function is just a wrapper around comedi_bytes_per_scan(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/mite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/mite.c b/d

[PATCH 8/8] staging: comedi: comedi_fc.h: remove cfc_bytes_per_scan()

2014-09-18 Thread H Hartley Sweeten
This inline function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_fc.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/comedi_fc.h b/drivers/staging/comedi/

[PATCH v2 12/25] staging: comedi: pcl726: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl726.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v2 11/25] staging: comedi: ni_atmio16d: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_atmio16d.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH v2 21/25] staging: comedi: pcmuio: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Also, comedi_handle_events() does nothing if no events are set so the local variable 'oldevents' can be removed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc:

[PATCH v2 01/25] staging: comedi: hwdrv_apci3200: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c | 3 +-- 1 file changed, 1 inse

[PATCH v2 05/25] staging: comedi: amplc_pc236_common: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pc236_common.c | 2 +- 1 file changed, 1 insertion(+

[PATCH v2 15/25] staging: comedi: addi_apci_2032: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Also, comedi_handle_events() does nothing if no events are set so the local variable 'do_event' can be removed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: G

[PATCH v2 08/25] staging: comedi: dt2814: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt2814.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v2 02/25] staging: comedi: addi_apci_1032: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_1032.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 20/25] staging: comedi: pcmmio: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Also, comedi_handle_events() does nothing if no events are set so the local variable 'oldevents' can be removed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc:

[PATCH v2 07/25] staging: comedi: dmm32at: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dmm32at.c | 3 +-- 1 file changed, 1 insertion(+), 2 delet

[PATCH v2 23/25] staging: comedi: rtd520: clear FIFO when canceling async command

2014-09-18 Thread H Hartley Sweeten
Clear the A/D FIFO as part of the analog input (*cancel) to help with cleaning up the async command. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/rtd520.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/comedi/dri

[PATCH v2 09/25] staging: comedi: ni_6527: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_6527.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH v2 16/25] staging: comedi: amplc_dio200_common: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Also, comedi_handle_events() does nothing if no events are set so the local variable 'oldevents' can be removed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc:

[PATCH v2 17/25] staging: comedi: comedi_test: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. For aesthetics, add a local variable for the comedi_subdevice pointer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/c

[PATCH v2 22/25] staging: comedi: s626: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. The s626_mc_disable() call when the end-of-acquisition is detected can then be removed. The (*cancel) does the same thing. For aesthetics, also remove the 'finished' l

[PATCH v2 25/25] staging: comedi: amplc_pci230: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci230.c | 48 ++- 1 file ch

[PATCH v2 24/25] staging: comedi: rtd520: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. The code to cancel the async command can then be removed from rtd_interrupt(). Since the (*cancel) will also clear the FIFO, the ai_read_dregs() function can also be r

[PATCH v2 10/25] staging: comedi: ni_65xx: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_65xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH v2 00/25] staging: comedi: tidy up async command termination

2014-09-18 Thread H Hartley Sweeten
The comedi async commands should stop if an error/overflow happens or when the end-of-acquisition for the command is detected. Some of the drivers do this correctly but many don't. The comedi_handle_events() function automatically detects the events that would terminate a command. If the events ar

[PATCH v2 18/25] staging: comedi: me4000: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Also, comedi_handle_events() does nothing if no events are set so the check can be removed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman -

[PATCH v2 06/25] staging: comedi: comedi_parport: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_parport.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 19/25] staging: comedi: pcl711: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. The pcl711_ai_set_mode() call when the end-of-acquisition is detected can then be removed. The (*cancel) does the same thing. Signed-off-by: H Hartley Sweeten Cc: Ian

[PATCH v2 13/25] staging: comedi: hwdrv_apci3120: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 13 - 1 file chan

[PATCH v2 04/25] staging: comedi: addi_apci_3xxx: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 14/25] staging: comedi: hwdrv_apci3120: do comedi_handle_events() at end of interrupt

2014-09-18 Thread H Hartley Sweeten
Currently comedi_handle_events() is done by both the DMA and non-DMA helper functions that are called by the interrupt handler. For aesthetics, move the comedi_handle_events() to the end of the interrupt handler and do it in one place. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kro

[PATCH v2 03/25] staging: comedi: addi_apci_1564: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
Use comedi_handle_events() to automatically (*cancel) the async command for an end-of-acquisition or if an error/overflow occurs. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_1564.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 19/23] staging: comedi: pcl812: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/pcl812.c b

[PATCH 11/23] staging: comedi: dt282x: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt282x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/dt282x.

[PATCH 21/23] staging: comedi: pcl818: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl818.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/pcl818.c b

[PATCH 22/23] staging: comedi: quatech_daqp_cs: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/qu

[PATCH 01/23] staging: comedi: adl_pci9111: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ad

[PATCH 04/23] staging: comedi: amplc_pci224: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci224.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/a

[PATCH 13/23] staging: comedi: gsc_hpdi: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/gsc_hpdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/gsc_hpdi.

[PATCH 09/23] staging: comedi: das800: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das800.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/das800.

[PATCH 02/23] staging: comedi: adl_pci9118: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9118.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/adl_pc

[PATCH 18/23] staging: comedi: ni_pcidio: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_pcidio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_pcidi

[PATCH 08/23] staging: comedi: das16m1: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/das16m1.c

[PATCH 20/23] staging: comedi: pcl816: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl816.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/pcl816.

[PATCH 10/23] staging: comedi: das1800: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das1800.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/das180

[PATCH 12/23] staging: comedi: dt3000: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt3000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/dt3000.c b

[PATCH 16/23] staging: comedi: ni_labpc_common: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/driv

[PATCH 06/23] staging: comedi: cb_pcidas64: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/cb_pcidas64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/cb

[PATCH 05/23] staging: comedi: cb_pcidas: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/cb_pcidas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/cb_p

[PATCH 17/23] staging: comedi: ni_mio_common: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 14/23] staging: comedi: ni_660x: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c

[PATCH 07/23] staging: comedi: das16: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/das16.c b/d

[PATCH 00/23] staging: comedi: remove cfc_handle_events()

2014-09-18 Thread H Hartley Sweeten
The inline function cfc_handle_events() is just a wrapper around the comedi core function comedi_handle_events(). Convert all the drivers to use the core function directly and remove the wrapper. This series applies after: PATCH 00/11] staging: comedi: move comedi_fc functionality into core H Ha

[PATCH 23/23] staging: comedi: comedi_fc.h: remove cfc_handle_events()

2014-09-18 Thread H Hartley Sweeten
This inline function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_fc.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/comedi_fc.h b/drivers/staging/comedi

[PATCH 15/23] staging: comedi: ni_at_a2150: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_at_a2150.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/

[PATCH 03/23] staging: comedi: adv_pci1710: use comedi_handle_events()

2014-09-18 Thread H Hartley Sweeten
cfc_handle_events() is just a wrapper around comedi_handle_events(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/comedi

RE: [PATCH 1/1] Drivers: scsi: storvsc: Get rid of warning messages

2014-09-18 Thread KY Srinivasan
> -Original Message- > From: Christoph Hellwig [mailto:h...@infradead.org] > Sent: Thursday, September 18, 2014 9:43 AM > To: Olaf Hering > Cc: KY Srinivasan; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; jbottom...@parallels.com; linux- > s...@vger.kernel.org > Subject: R

Re: [PATCH 1/1] Drivers: scsi: storvsc: Get rid of warning messages

2014-09-18 Thread Christoph Hellwig
On Thu, Sep 18, 2014 at 01:50:17PM +0200, Olaf Hering wrote: > On Wed, Sep 17, Christoph Hellwig wrote: > > > Also the two patches at > > http://thread.gmane.org/gmane.linux.drivers.driver-project.devel/56242/ > > Wasnt the outcome that this was a bad idea? Or at least doing it > globally is bad.

Re: [PATCH 1/1] Drivers: scsi: storvsc: Get rid of warning messages

2014-09-18 Thread Olaf Hering
On Tue, Sep 02, K. Y. Srinivasan wrote: > Get rid of the warning messages since they will clutter up various system logs > and are of questionable value to the end user. For debugging purposes, this > information can be gotten by setting the scsi log level appropriately. > > Signed-off-by: K. Y.

[PATCH v2] staging: rtl8192u: delete unused function CAM_read_entry

2014-09-18 Thread Benedict Boerger
Fix the sparse warning: symbol 'CAM_read_entry' was not declared. Should it be static? The function CAM_read_entry is not used and therefore deleted. Signed-off-by: Benedict Boerger --- changes in v2: add Signed-off-by line drivers/staging/rtl8192u/r8192U_core.c | 28 -

Re: [PATCH v2 1/1] staging: rtl8192u: Move ieee80211_crypto_* declarations to ieee80211/ieee80211.h

2014-09-18 Thread Dan Carpenter
On Thu, Sep 18, 2014 at 02:33:25PM +, Ragnar B. Johannsson wrote: > Move ieee80211_crypto*_init and _exit prototype declarations from > r8192U_core.c to ieee80211/ieee80211.h. This fixes the following sparse > warnings: > > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c:203:12: warning

[PATCH v2 1/1] staging: rtl8192u: Move ieee80211_crypto_* declarations to ieee80211/ieee80211.h

2014-09-18 Thread Ragnar B. Johannsson
Move ieee80211_crypto*_init and _exit prototype declarations from r8192U_core.c to ieee80211/ieee80211.h. This fixes the following sparse warnings: drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c:203:12: warning: symbol 'ieee80211_crypto_init' was not declared. Should it be static? drivers/

Re: [PATCH v2 0/9] comedi: ni_usb6501: add counter support

2014-09-18 Thread Luca Ellero
On 17/09/2014 18:10, Hartley Sweeten wrote: On Tuesday, September 16, 2014 4:40 AM, Luca Ellero wrote: This series of patches add counter support for NI USB-6501. I tested it on my device and it works fine. Hartley, Ian, thank you for your comments. I'll collect them all and I'll resend a "v

Re: [PATCH 1/1] Drivers: scsi: storvsc: Get rid of warning messages

2014-09-18 Thread Olaf Hering
On Wed, Sep 17, Christoph Hellwig wrote: > Also the two patches at > http://thread.gmane.org/gmane.linux.drivers.driver-project.devel/56242/ Wasnt the outcome that this was a bad idea? Or at least doing it globally is bad. In any case, its not something I can help with. Olaf ___

Re: [PATCH v2 6/9] staging: comedi: ni_usb6501: add ni6501_cnt_insn_config()

2014-09-18 Thread Ian Abbott
On 2014-09-17 17:57, Hartley Sweeten wrote: On Tuesday, September 16, 2014 4:40 AM, Luca Ellero wrote: Add function for counter subdevice configuration. Signed-off-by: Luca Ellero --- drivers/staging/comedi/drivers/ni_usb6501.c | 28 +++ 1 file changed, 28 insertio

Re: [PATCH] staging: lustre: lustre: libcfs: debug.c: Cleaning up unnecessary use of memset in conjunction with strncpy

2014-09-18 Thread Dan Carpenter
On Thu, Sep 18, 2014 at 12:12:42AM +0200, Rickard Strandqvist wrote: > Hi Dan > > Ok, I have made two suggestions for strncpy function that also > guarantees a terminating null character. > 1) retunerar number of characters to be copied, it can be good to > have, but was not really satisfied. str

Re: [PATCH] staging: rtl8192u: delete unused function CAM_read_entry

2014-09-18 Thread Tobias Klauser
On 2014-09-17 at 21:17:29 +0200, Benedict Boerger wrote: > Fix the sparse warning: symbol 'CAM_read_entry' was not declared. Should it > be static? > > The function CAM_read_entry is not used and therefore deleted. Your patch is missing a Signed-off-by line. Please check Documentation/Submitti

Re: [PATCH] mmc: rtsx: add card power off during probe

2014-09-18 Thread Roger Tseng
On Wed, 2014-09-17 at 21:29 +0200, Ulf Hansson wrote: > On 17 September 2014 11:11, micky wrote: > > On 09/17/2014 02:01 AM, Ulf Hansson wrote: > >> > >> On 12 September 2014 03:39, wrote: > >>> > >>> From: Roger Tseng > >>> > >>> Some platform have both UEFI driver and MFD/mmc driver, if enter