[PATCH 0/3] Enable discard on Hyper-V

2014-07-24 Thread Sitsofe Wheeler
On Wed, Jul 23, 2014 at 09:13:41PM +0100, Sitsofe Wheeler wrote: On Wed, Jul 23, 2014 at 07:15:58AM -0700, Christoph Hellwig wrote: On Wed, Jul 23, 2014 at 03:10:28PM +0100, Sitsofe Wheeler wrote: I'm not sure this alone will work - won't sdev_bflags/bflags have already been built at this

[PATCH 1/3] [SCSI] Add quirk for forcing logical block provisioning tests

2014-07-24 Thread Sitsofe Wheeler
Despite supporting modern SCSI features (such an UNMAP) some storage devices continue to claim conformance to an older version of the SPC spec for compatibility with legacy operating systems. Linux by default will not attempt to read VPD pages on devices that claim SPC-2 or older. Introduce a

[PATCH v2] staging: lustre: obdclass: fix sparse warnings about static declaration

2014-07-24 Thread Andrey Skvortsov
Signed-off-by: Andrey Skvortsov andrej.skvort...@gmail.com --- changes since v1: removed from patch static declarations for functions obd_sysctl_init and obd_sysctl_clean to fix build issue. .../lustre/lustre/obdclass/linux/linux-sysctl.c| 24 ++-- 1 file changed, 12

[PATCH 2/3] [SCSI] storvsc: Add Hyper-V logical block provisioning tests

2014-07-24 Thread Sitsofe Wheeler
Microsoft Hyper-V targets currently only claim SPC-2 compliance / no compliance indicated even though they implement post SPC-2 features which means those features are not tested for. Add a blacklist flag to Hyper-V devices that forces said testing. See https://lkml.org/lkml/2014/7/21/627 for the

Re: [PATCH 1/1] staging: vme: removed useless breaks in vme_user.c

2014-07-24 Thread Martyn Welch
On 23/07/14 17:17, Tom Jorquera wrote: vme_user.c contained unnecessary breaks after gotos, which increased code size and caused code style warning. This is now fixed. Signed-off-by: Tom Jorquera tom.jorqu...@gmail.com Acked-by: Martyn Welch martyn.we...@ge.com ---

Re: XVME 6300 with TSI148 bridge on 64 bit Debian (Linux 3.2.57) vme_user issue

2014-07-24 Thread Martyn Welch
On 23/07/14 03:09, Maurice Moss wrote: Hi Martyn, Thanks for your patience with me. I have a couple of questions for you: 0. I put the SBC with the right settings for Geographical addressing. I did 2 tests by setting the board in each of the 2 slots available on my rack and the geo address

[PATCH 2/2] staging: et131x: Remove trailing semicolon from macros in et131x.h

2014-07-24 Thread Masanari Iida
This patch removes trailing semicolon from macros within et131x.h Signed-off-by: Masanari Iida standby2...@gmail.com --- drivers/staging/et131x/et131x.h | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/staging/et131x/et131x.h

Re: [PATCH 0/3] Enable discard on Hyper-V

2014-07-24 Thread Sitsofe Wheeler
On Thu, Jul 24, 2014 at 08:47:39AM +0100, Sitsofe Wheeler wrote: On Wed, Jul 23, 2014 at 09:13:41PM +0100, Sitsofe Wheeler wrote: On Wed, Jul 23, 2014 at 07:15:58AM -0700, Christoph Hellwig wrote: On Wed, Jul 23, 2014 at 03:10:28PM +0100, Sitsofe Wheeler wrote: I'm not sure this alone

[PATCH] staging:bcm:DDRinit.c:coding style:line over 80 char

2014-07-24 Thread Sudip Mukherjee
--- drivers/staging/bcm/DDRInit.c | 59 --- 1 file changed, 39 insertions(+), 20 deletions(-) diff --git a/drivers/staging/bcm/DDRInit.c b/drivers/staging/bcm/DDRInit.c index 4564f40..4226c93 100644 --- a/drivers/staging/bcm/DDRInit.c +++

Re: [PATCH v2 3/3] [SCSI] Make LBP quirk skip lbpme checks tests

2014-07-24 Thread Martin K. Petersen
Sitsofe == Sitsofe Wheeler sits...@gmail.com writes: Sitsofe Fix incorrectly named variable. Some block devices (such as Sitsofe Hyper-V passthrough SSDs) support logical block provisioning Sitsofe (e.g. via UNMAP) but don't set lbpme thus disabling discard. The fix for an SSD that is known

Re: [PATCH 2/3] [SCSI] storvsc: Add Hyper-V logical block provisioning tests

2014-07-24 Thread James Bottomley
On Thu, 2014-07-24 at 08:56 +0100, Sitsofe Wheeler wrote: Microsoft Hyper-V targets currently only claim SPC-2 compliance / no compliance indicated even though they implement post SPC-2 features which means those features are not tested for. Add a blacklist flag to Hyper-V devices that forces

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Steven Rostedt
On Wed, Jul 23, 2014 at 07:03:01PM -0400, Nicholas Krause wrote: This changes the call to kzalloc to kcalloc in ion_dummy_driver for allocating the heap. Signed-off-by: Nicholas Krause xerofo...@gmail.com --- drivers/staging/android/ion/ion_dummy_driver.c | 5 ++--- 1 file changed, 2

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Steven Rostedt
On Thu, 24 Jul 2014 10:47:25 -0400 Steven Rostedt rost...@goodmis.org wrote: The three parameters are the number of elements, the size of each individual element, and then finally the flags used on how to allocate that memory. I have to say, you did get the flags part correct. Now lets

[PATCH 3/3] staging: dgnc: Fix space required after that ','

2014-07-24 Thread Seunghun Lee
This patch fixes checkpatch errors: space required after that ',' Signed-off-by: Seunghun Lee way...@gmail.com --- drivers/staging/dgnc/dgnc_driver.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h

[PATCH 1/3] staging: dgng: Fix Macros with complex values should be enclosed in parenthesis

2014-07-24 Thread Seunghun Lee
This patch fixes a checkpatch errors Macros with complex values should be enclosed in parenthesis Signed-off-by: Seunghun Lee way...@gmail.com --- drivers/staging/dgnc/dgnc_driver.h | 40 drivers/staging/dgnc/digi.h| 60 ++--

[PATCH 2/3] staging: dgnc: Fix do not initialise statics to 0 or NULL

2014-07-24 Thread Seunghun Lee
This patch fixes checkpatch errors do not initialise statics to 0 or NULL Signed-off-by: Seunghun Lee way...@gmail.com --- drivers/staging/dgnc/dgnc_trace.c |2 +- drivers/staging/dgnc/dgnc_tty.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 3/3] [SCSI] Make LBP quirk skip lbpme checks tests

2014-07-24 Thread Christoph Hellwig
On Thu, Jul 24, 2014 at 09:54:24AM -0400, Martin K. Petersen wrote: I'm very much against short-circuiting the LBP logic in a passthrough driver because then we might end up in the exact situation we were trying to avoid with this patch series. Namely sending down commands unsupported by the

Re: [PATCH v2 3/3] [SCSI] Make LBP quirk skip lbpme checks tests

2014-07-24 Thread Christoph Hellwig
On Thu, Jul 24, 2014 at 08:34:19AM -0700, Christoph Hellwig wrote: I agree - I'd like to pull in KY's simple fix as soon as I get a second review for it. Ok, looks like I just got that from Hannes. Let's see if there's more to be done for the pass through case, but I'd rather wait for the next

Re: [PATCH v2 3/3] [SCSI] Make LBP quirk skip lbpme checks tests

2014-07-24 Thread Sitsofe Wheeler
On Thu, Jul 24, 2014 at 09:54:24AM -0400, Martin K. Petersen wrote: Sitsofe == Sitsofe Wheeler sits...@gmail.com writes: Sitsofe Fix incorrectly named variable. Some block devices (such as Sitsofe Hyper-V passthrough SSDs) support logical block provisioning Sitsofe (e.g. via UNMAP) but

Re: [PATCH v2 3/3] [SCSI] Make LBP quirk skip lbpme checks tests

2014-07-24 Thread Martin K. Petersen
Sitsofe == Sitsofe Wheeler sits...@gmail.com writes: Sitsofe So we can see it is really a SATA device that announces discard Sitsofe correctly and supports discard through WRITE_SAME(16). No, that's the SATA device that announces support for DSM TRIM, and as a result the Linux SATL reports

Re: [PATCH] staging:bcm:DDRinit.c:coding style:line over 80 char

2014-07-24 Thread Greg KH
On Thu, Jul 24, 2014 at 06:19:46PM +0530, Sudip Mukherjee wrote: --- drivers/staging/bcm/DDRInit.c | 59 --- 1 file changed, 39 insertions(+), 20 deletions(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Måns Rullgård
Steven Rostedt rost...@goodmis.org writes: On Thu, 24 Jul 2014 10:47:25 -0400 Steven Rostedt rost...@goodmis.org wrote: The three parameters are the number of elements, the size of each individual element, and then finally the flags used on how to allocate that memory. I have to say, you

Re: [PATCH v2 3/3] [SCSI] Make LBP quirk skip lbpme checks tests

2014-07-24 Thread Sitsofe Wheeler
On Thu, Jul 24, 2014 at 08:35:13AM -0700, Christoph Hellwig wrote: On Thu, Jul 24, 2014 at 08:34:19AM -0700, Christoph Hellwig wrote: I agree - I'd like to pull in KY's simple fix as soon as I get a second review for it. Ok, looks like I just got that from Hannes. Let's see if there's

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 12:15 PM, Måns Rullgård m...@mansr.com wrote: Steven Rostedt rost...@goodmis.org writes: On Thu, 24 Jul 2014 10:47:25 -0400 Steven Rostedt rost...@goodmis.org wrote: The three parameters are the number of elements, the size of each individual element, and then

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Måns Rullgård
Nick Krause xerofo...@gmail.com writes: On Thu, Jul 24, 2014 at 12:15 PM, Måns Rullgård m...@mansr.com wrote: Steven Rostedt rost...@goodmis.org writes: On Thu, 24 Jul 2014 10:47:25 -0400 Steven Rostedt rost...@goodmis.org wrote: The three parameters are the number of elements, the size of

Re: [PATCH 2/3] staging: dgnc: Fix do not initialise statics to 0 or NULL

2014-07-24 Thread Paul Bolle
Seunghun Lee schreef op vr 25-07-2014 om 00:26 [+0900]: This patch fixes checkpatch errors do not initialise statics to 0 or NULL Signed-off-by: Seunghun Lee way...@gmail.com --- drivers/staging/dgnc/dgnc_trace.c |2 +- drivers/staging/dgnc/dgnc_tty.c |2 +- 2 files changed, 2

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Måns Rullgård
Nick Krause xerofo...@gmail.com writes: On Thu, Jul 24, 2014 at 12:34 PM, Måns Rullgård m...@mansr.com wrote: Nick Krause xerofo...@gmail.com writes: On Thu, Jul 24, 2014 at 12:15 PM, Måns Rullgård m...@mansr.com wrote: Steven Rostedt rost...@goodmis.org writes: On Thu, 24 Jul 2014

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 12:47 PM, Måns Rullgård m...@mansr.com wrote: Nick Krause xerofo...@gmail.com writes: On Thu, Jul 24, 2014 at 12:34 PM, Måns Rullgård m...@mansr.com wrote: Nick Krause xerofo...@gmail.com writes: On Thu, Jul 24, 2014 at 12:15 PM, Måns Rullgård m...@mansr.com wrote:

[PATCH 00/40] staging: comedi: ni_tio: clean up driver

2014-07-24 Thread H Hartley Sweeten
Start cleaning up this driver by: 1) fix all the checkpatch.pl warnings WARNING: line over 80 characters WARNING: Unnecessary space before function pointer arguments WARNING: Prefer [foo]_err to printk(KERN_ERR ... 2) remove a bunch of unreachable BUG() code 3) tidy up some of

[PATCH 10/40] staging: comedi: ni_tio: convert NI_660x_Gate_Pin_Gate_Select() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 03/40] staging: comedi: ni_tio: tidy up some function declarations

2014-07-24 Thread H Hartley Sweeten
Fix the whitespace in some of the function declarations to avoid the ugly line breaks and fix a couple checkpatch.pl issues: WARNING: line over 80 characters WARNING: Unnecessary space before function pointer arguments Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

[PATCH 16/40] staging: comedi: ni_tio: convert NI_660x_RTSI_Second_Gate_Select() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 28/40] staging: comedi: ni_tio: rename ni_tio_second_gate_registers_present()

2014-07-24 Thread H Hartley Sweeten
For aesthetics, rename this function to shorten some of the long lines. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 8 1 file changed, 4

[PATCH 31/40] staging: comedi: ni_tio: tidy up ni_tio_set_sync_mode()

2014-07-24 Thread H Hartley Sweeten
Fix the 80 char line issues in this function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 11 +++ 1 file changed, 7 insertions(+), 4

[PATCH 32/40] staging: comedi: ni_tio: absorb ni_tio_counter_status()

2014-07-24 Thread H Hartley Sweeten
This function is only called to handle the INSN_CONFIG_GET_COUNTER_STATUS instruction. For aesthetics, absorb the code into ni_tio_insn_config(). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 09/40] staging: comedi: ni_tio: convert NI_M_Series_PFI_Clock() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 29/40] staging: comedi: ni_tio: tidy up ni_m_series_source_select_bits()

2014-07-24 Thread H Hartley Sweeten
Rename a local variable to fix the 80 char line issues. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 10 +- 1 file changed, 5 insertions(+),

[PATCH 36/40] staging: comedi: ni_tio: absorb ni_tio_set_first_gate_modifiers()

2014-07-24 Thread H Hartley Sweeten
This function is only called by ni_tio_set_gate_src(). For aesthetics, absorb the code into that function.. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c

[PATCH 11/40] staging: comedi: ni_tio: convert NI_660x_RTSI_Gate_Select() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 17/40] staging: comedi: ni_tio: convert NI_660x_Up_Down_Pin_Second_Gate_Select() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 14/40] staging: comedi: ni_tio: convert NI_660x_Source_Pin_Clock() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 26/40] staging: comedi: ni_tio: tidy up ni_gpct_device_{construct, destroy)()

2014-07-24 Thread H Hartley Sweeten
For aesthetics, move these exported functions to the end of the file. Tidy up the functions a bit and remove the BUG_ON when (num_counters == 0). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 01/40] staging: comedi: ni_tio: fix ni_tio_insn_read()

2014-07-24 Thread H Hartley Sweeten
The comedi core expects the (*insn_read) operations to read insn-n values and return the number of values read. Fix this function to work line the core expects. For aesthetics, factor out the code that reads the SM_Save_Reg. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian

[PATCH 19/40] staging: comedi: ni_tio: remove counter_status_mask

2014-07-24 Thread H Hartley Sweeten
For aesthetics, remove this global static const varaible. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH 37/40] staging: comedi: ni_tio: tidy up ni_tio_get_clock_src()

2014-07-24 Thread H Hartley Sweeten
Remove the static const local variable and add a blank line after the declarations. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 4 ++-- 1 file

[PATCH 21/40] staging: comedi: ni_tio: tidy up enum ni_m_series_gate_select

2014-07-24 Thread H Hartley Sweeten
These values are not used as an enum. For aesthetics, rename the CamelCase values and convert them into defines. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 39/40] staging: comedi: ni_tio: remove forward declarations

2014-07-24 Thread H Hartley Sweeten
Move some of the functions to remove the need for the forward declarations. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 392

[PATCH 20/40] staging: comedi: ni_tio: tidy up enum ni_660x_second_gate_select

2014-07-24 Thread H Hartley Sweeten
These values are not used as an enum. For aesthetics, rename the CamelCase values and convert them into defines. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 34/40] staging: comedi: ni_tio: tidy up ni_tio_set_other_src()

2014-07-24 Thread H Hartley Sweeten
Invert the counter_dev-variant test to reduce the indent level of this function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 50

[PATCH 13/40] staging: comedi: ni_tio: convert NI_M_Series_PFI_Gate_Select() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 02/40] staging: comedi: ni_tio: fix 80 char comments

2014-07-24 Thread H Hartley Sweeten
Tidy up some of the comments to fix some fo the the checkpatch.pl warnings: WARNING: line over 80 characters Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 33/40] staging: comedi: ni_tio: tidy up ni_tio_get_gate_src() and helpers

2014-07-24 Thread H Hartley Sweeten
Do some renaming of local vars, parameters, etc. to tidy up the ugly line breaks to improve the readability of the code. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 40/40] staging: comedi: ni_tio: convert printk to pr_err

2014-07-24 Thread H Hartley Sweeten
Convert the printk(KERN_ERR ...) in ni_m_clk_src() to a pr_err(). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 12/40] staging: comedi: ni_tio: convert NI_M_Series_RTSI_Gate_Select() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 25/40] staging: comedi: ni_tio: move defines to head of file

2014-07-24 Thread H Hartley Sweeten
For aesthetics, move all the defines to the head of the file. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 131 1

[PATCH 07/40] staging: comedi: ni_tio: tidy up ni_660x_set_first_gate()

2014-07-24 Thread H Hartley Sweeten
Rename some of the local vars and tidy up this function to fix to fix a couple 80 char line issues. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_tio.c | 25

[PATCH 04/40] staging: comedi: ni_tio: remove unnecessary ni_gpct_variant BUG() cases

2014-07-24 Thread H Hartley Sweeten
The enum ni_gpct_variant is used to handle hardware variations in the gpct timers handled by this driver. This enum is defined as: enum ni_gpct_variant { ni_gpct_variant_e_series, ni_gpct_variant_m_series, ni_gpct_variant_660x }; For all the switch statements where all

[PATCH 24/40] staging: comedi: ni_tio: tidy up enum ni_660x_clock_source

2014-07-24 Thread H Hartley Sweeten
These values are not used as an enum. For aesthetics, rename the CamelCase values and convert them into defines. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 15/40] staging: comedi: ni_tio: convert NI_660x_RTSI_Clock() to a macro

2014-07-24 Thread H Hartley Sweeten
The BUG_ON() in this function can never happen. For aesthetics, rename this CamelCase inline function and convert it into a simple macro. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 38/40] staging: comedi: ni_tio: tidy up ni_tio_set_clock_src() and helpers

2014-07-24 Thread H Hartley Sweeten
Do some renaming of local vars, etc. to tidy up the ugly line breaks to improve the readability of the code. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 23/40] staging: comedi: ni_tio: tidy up enum ni_m_series_clock_source

2014-07-24 Thread H Hartley Sweeten
These values are not used as an enum. For aesthetics, rename the CamelCase values and convert them into defines. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 27/40] staging: comedi: ni_tio: tidy up ni_tio_init_counter()

2014-07-24 Thread H Hartley Sweeten
This function is called to initialize/reset a gpct counter during a comedi drivers (*attach). For aesthetics, move this exported function toward the end of the file. Tidy up the functions a bit by just open coding the '0x0' values used to initialize some of the registers. Signed-off-by: H

[PATCH 22/40] staging: comedi: ni_tio: tidy up enum ni_660x_gate_select

2014-07-24 Thread H Hartley Sweeten
These values are not used as an enum. For aesthetics, rename the CamelCase values and convert them into defines. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 35/40] staging: comedi: ni_tio: tidy up ni_tio_set_gate_src() and helpers

2014-07-24 Thread H Hartley Sweeten
Do some renaming of local vars, parameters, etc. to tidy up the ugly line breaks to improve the readability of the code. 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] staging: Change kzalloc to kcalloc

2014-07-24 Thread Steven Rostedt
On Thu, 24 Jul 2014 12:50:31 -0400 Nick Krause xerofo...@gmail.com wrote: \ Most kernel devs most certainly did NOT get started by spamming lkml with unnecessary and incorrect patches despite being repeatedly told to go away and stop wasting everybody's time. Mans, shut up! That is

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Harvey Harrison
On Thu, Jul 24, 2014 at 10:18 AM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 24 Jul 2014 12:50:31 -0400 Nick Krause xerofo...@gmail.com wrote: I am have this discussion with other kernel developers and just because I send out one patch as a newbie like this doesn't mean I don't known

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Steven Rostedt
On Thu, 24 Jul 2014 10:30:51 -0700 Harvey Harrison harvey.harri...@gmail.com wrote: On Thu, Jul 24, 2014 at 10:18 AM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 24 Jul 2014 12:50:31 -0400 Nick Krause xerofo...@gmail.com wrote: I am have this discussion with other kernel

Re: [PATCH 1/3] staging: dgng: Fix Macros with complex values should be enclosed in parenthesis

2014-07-24 Thread Joe Perches
On Fri, 2014-07-25 at 00:26 +0900, Seunghun Lee wrote: This patch fixes a checkpatch errors Macros with complex values should be enclosed in parenthesis [] diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h @@ -111,32 +111,32 @@ #endif #if defined

[PATCH] staging: phison: remove driver

2014-07-24 Thread Kristina Martšenko
The driver hasn't been cleaned up and it doesn't look like anyone is working on it anymore (including the original author). So remove the driver from the kernel. If someone wants to work on cleaning it up and moving it out of staging, this commit can be reverted. Signed-off-by: Kristina Martšenko

Re: [PATCH 2/3] [SCSI] storvsc: Add Hyper-V logical block provisioning tests

2014-07-24 Thread Sitsofe Wheeler
On Thu, Jul 24, 2014 at 02:09:11PM +, James Bottomley wrote: On Thu, 2014-07-24 at 08:56 +0100, Sitsofe Wheeler wrote: Microsoft Hyper-V targets currently only claim SPC-2 compliance / no compliance indicated even though they implement post SPC-2 features which means those features are

Subject: [PATCH 6/6 v3] staging: unisys: ABI documentation for new sysfs entries

2014-07-24 Thread Benjamin Romer
This patch adds a documentation file for all of the interfaces that were moved to sysfs by the other patches in this set. Signed-off-by: Benjamin Romer benjamin.ro...@unisys.com --- v3: documentation was revised based on changes in earlier patches. v2: whitespace errors were corrected.

[PATCH 1/6 v3] staging: unisys: move installer to sysfs and split fields

2014-07-24 Thread Benjamin Romer
The installer entry in /proc/visorchipset/installer was composed of three separate fields as one entry. This patch removes the proc entry and associated functions, and creates new fields with distinct entries under sysfs in the visorchipset/install directory. The fields are: textid: used

[PATCH 2/6 v3] staging: unisys: move chipsetready to sysfs

2014-07-24 Thread Benjamin Romer
Move the chipsetready proc entry to sysfs under a new directory guest. This entry is used by Unisys application software on the guest to acknowledge completion of specific events for integration purposes, but these acknowledgements are not required for the guest to operate correctly. The store

[PATCH 4/6 v3] staging: unisys: remove partition information from proc

2014-07-24 Thread Benjamin Romer
Debugging information for the guest's channels was being exposed in proc. Remove the code that creates these entries, which are no longer needed. Signed-off-by: Benjamin Romer benjamin.ro...@unisys.com --- v3: patch location changed due to prior patches being revised. v2: patch location changed

[PATCH 0/6 v3] staging: unisys: visorchipset proc fixes

2014-07-24 Thread Benjamin Romer
This patch set moves several interfaces in the visorchipset module from procfs to sysfs, and removes the remaining proc interfaces from the module. It includes documentation for the new interfaces in Documentation/ABI, and some code cleanup in the new sysfs handler functions. In version 3 of the

[PATCH 6/6 v3] staging: unisys: ABI documentation for new sysfs entries

2014-07-24 Thread Benjamin Romer
This patch adds a documentation file for all of the interfaces that were moved to sysfs by the other patches in this set. Signed-off-by: Benjamin Romer benjamin.ro...@unisys.com --- v3: documentation was revised based on changes in earlier patches. v2: whitespace errors were corrected.

[PATCH] Staging: vt6655: remove redundant comments from baseband.h

2014-07-24 Thread Igor Bezukh
Removed redundant comments in baseband.h header file. Signed-off-by: Igor Bezukh igb...@gmail.com --- drivers/staging/vt6655/baseband.h | 12 1 file changed, 12 deletions(-) diff --git a/drivers/staging/vt6655/baseband.h b/drivers/staging/vt6655/baseband.h index e31bb76..d90c7f9

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 1:48 PM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 24 Jul 2014 10:30:51 -0700 Harvey Harrison harvey.harri...@gmail.com wrote: On Thu, Jul 24, 2014 at 10:18 AM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 24 Jul 2014 12:50:31 -0400 Nick Krause

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Richard Weinberger
On Thu, Jul 24, 2014 at 8:41 PM, Nick Krause xerofo...@gmail.com wrote: Steve, I have programming a lot in other areas just not the kernel. You are right through I need to test my code better through. Nick, let's make a deal. Take the challenge at http://eudyptula-challenge.org. After you've

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 2:49 PM, Richard Weinberger richard.weinber...@gmail.com wrote: On Thu, Jul 24, 2014 at 8:41 PM, Nick Krause xerofo...@gmail.com wrote: Steve, I have programming a lot in other areas just not the kernel. You are right through I need to test my code better through.

[PATCH] Staging: vt6655: remove redundant comments from card.h

2014-07-24 Thread Igor Bezukh
Removed redundant comments from card.h header file. Signed-off-by: Igor Bezukh igb...@gmail.com --- drivers/staging/vt6655/80211hdr.h |7 --- drivers/staging/vt6655/80211mgr.h | 38 - drivers/staging/vt6655/aes_ccmp.h |9 -

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 2:55 PM, Nick Krause xerofo...@gmail.com wrote: On Thu, Jul 24, 2014 at 2:49 PM, Richard Weinberger richard.weinber...@gmail.com wrote: On Thu, Jul 24, 2014 at 8:41 PM, Nick Krause xerofo...@gmail.com wrote: Steve, I have programming a lot in other areas just not the

Re: [PATCH 1/1 linux-next] staging: ion: vm_insert_pfn and zap_page_range rely on CONFIG_MMU

2014-07-24 Thread Greg Kroah-Hartman
On Wed, Jul 23, 2014 at 09:04:38PM +0200, Fabian Frederick wrote: Fix following sh-allmodconfig errors reported on kisskb drivers/built-in.o: In function `ion_vm_fault': ion.c:(.text+0x1f2d8f8): undefined reference to `vm_insert_pfn' drivers/built-in.o: In function

Re: [PATCH 4/6 v3] staging: unisys: remove partition information from proc

2014-07-24 Thread Greg KH
On Thu, Jul 24, 2014 at 02:08:45PM -0400, Benjamin Romer wrote: Debugging information for the guest's channels was being exposed in proc. Remove the code that creates these entries, which are no longer needed. Signed-off-by: Benjamin Romer benjamin.ro...@unisys.com --- v3: patch location

Re: [PATCH] Staging: vt6655: remove redundant comments from card.h

2014-07-24 Thread Greg KH
On Thu, Jul 24, 2014 at 09:50:14PM +0300, Igor Bezukh wrote: Removed redundant comments from card.h header file. Signed-off-by: Igor Bezukh igb...@gmail.com --- drivers/staging/vt6655/80211hdr.h |7 --- drivers/staging/vt6655/80211mgr.h | 38

[PATCH] staging/lustre: Fix sparse error (signature mismatch)

2014-07-24 Thread L . Alberto Giménez
lprocfs_wr_atomic is defined in drivers/staging/lustre/lustre/obdclass/lprocfs_status.c with its second argument with the __user attribute: int lprocfs_wr_atomic(struct file *file, const char __user *buffer, unsigned long count, void *data) but its declaration in

[PATCH 01/14] staging: vt6655: remove useless return statements

2014-07-24 Thread Guillaume Clement
Many return statements in void function were present at the end of functions, with no effect. They now are removed. This fixes a bunch of checkpatch warnings. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/80211mgr.c| 36 ---

[PATCH 05/14] staging: vt6655: fix braces at newline for structs

2014-07-24 Thread Guillaume Clement
For structs definitions, the braces should be at the end of the line. Reported by checkpatch. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/bssdb.h | 3 +-- drivers/staging/vt6655/device.h | 15 +-- drivers/staging/vt6655/key.h| 9 +++--

[PATCH 06/14] staging: vt6655: fix static position in inline function

2014-07-24 Thread Guillaume Clement
This should be static inline, not inline static. Reported by checkpatch. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/device.h

[PATCH 02/14] staging: vt6655: Add missing blank lines after declarations

2014-07-24 Thread Guillaume Clement
This patch fixes the missing blank lines after declarations in vt6655 reported by checkpatch. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/80211mgr.c| 1 + drivers/staging/vt6655/baseband.c| 1 + drivers/staging/vt6655/bssdb.c | 7 +++

[PATCH 00/14] staging: vt6655: Sparse and checkpatch fixes

2014-07-24 Thread Guillaume Clement
This patchset fixes a lot of minor checkpatch and sparse warnings. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 12/14] staging: vt6655: fix braces at newline in if statements

2014-07-24 Thread Guillaume Clement
Braces should not be in a separate line for multi-line if statements. This fixes warnings reported by checkpatch. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/wcmd.c | 5 +++-- drivers/staging/vt6655/wpa.c | 8 2 files changed, 7 insertions(+), 6

[PATCH 04/14] staging: vt6655: fix function braces not on the proper line

2014-07-24 Thread Guillaume Clement
Function braces should be on a separate line. Reported by checkpatch. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/device_main.c | 90 drivers/staging/vt6655/rxtx.c| 6 ++- 2 files changed, 64 insertions(+), 32

[PATCH 14/14] staging: vt6655: Remove NULL pointer sparse warning

2014-07-24 Thread Guillaume Clement
We were using 0 instead of NULL to initialize a pointer, which caused a sparse warning. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/device_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/device_main.c

[PATCH 09/14] staging: vt6655: Remove unreachable break statements

2014-07-24 Thread Guillaume Clement
This fixes break break is not useful after a goto or return checkpatch warnings. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/rf.c | 2 -- drivers/staging/vt6655/wpa.c | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/staging/vt6655/rf.c

[PATCH] staging: vt6655: tag data as __user in struct tagSCmdRequest

2014-07-24 Thread Guillaume Clement
Sparse reported that the data from tagSCmdRequest is given by userspace, so it should be tagged as such. Later, we were memcomparing and dereferencing it without first copying it, fix that as well. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/iocmd.h | 2 +-

[PATCH 08/14] staging: vt6655: break single line if statements

2014-07-24 Thread Guillaume Clement
This fixes the trailing statements should be on next line checkpatch warning. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/card.c| 6 -- drivers/staging/vt6655/device_main.c | 6 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH 03/14] staging: vt6655: Remove spaces before quoted newlines

2014-07-24 Thread Guillaume Clement
This fixes several spaces added just before a newline in debug strings, reported by checkpatch. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/card.c| 2 +- drivers/staging/vt6655/device_main.c | 53 - drivers/staging/vt6655/dpc.c

[PATCH 11/14] staging: vt6655: remove braces for single statements if

2014-07-24 Thread Guillaume Clement
This fixes several braces {} are not necessary for single statement blocks checkpatch warnings. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/power.c | 3 +-- drivers/staging/vt6655/vntwifi.c | 3 +-- drivers/staging/vt6655/wmgr.c| 3 +-- 3 files changed,

[PATCH 07/14] staging: vt6655: Use pr_* functions instead of printk

2014-07-24 Thread Guillaume Clement
Lots of printk are used in vt6655, replace them with the pr_* equivalent. Signed-off-by: Guillaume Clement gclem...@baobob.org --- drivers/staging/vt6655/card.c| 12 +++--- drivers/staging/vt6655/device_cfg.h | 2 +- drivers/staging/vt6655/device_main.c | 71

  1   2   >