[PATCH] Staging: android: ion: fix typos in comments

2014-10-30 Thread Tristan Lelong
Fix some coding style warnings detected by checkpatch.pl in ion. Signed-off-by: Tristan Lelong --- drivers/staging/android/ion/ion.c | 2 +- drivers/staging/android/ion/ion.h | 2 +- drivers/staging/android/ion/ion_priv.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff

Re: [PATCH V2] staging: dgap: re-arrange functions for removing forward declarations

2014-10-30 Thread DaeSeok Youn
Hi, 2014-10-31 5:33 GMT+09:00 Greg KH : > On Thu, Oct 30, 2014 at 12:14:00PM +0900, Daeseok Youn wrote: >> Re-arrange the functions for removing forward declarations. >> >> Tested-by: Mark Hounschell >> Signed-off-by: Daeseok Youn >> Tested-by: Mark Hounschell >> --- >> V2: this patch is rebase

Re: [PATCH net-next] hyperv: Add IPv6 into the hash computation for vRSS

2014-10-30 Thread David Miller
From: Haiyang Zhang Date: Thu, 30 Oct 2014 14:07:17 -0700 > This will allow the workload spreading via vRSS for IPv6. > > Signed-off-by: Haiyang Zhang > Reviewed-by: K. Y. Srinivasan Applied. ___ devel mailing list de...@linuxdriverproject.org http:

RE: [PATCH 0/7] staging: comedi: enforce data transfer direction

2014-10-30 Thread Hartley Sweeten
On Thursday, October 30, 2014 5:42 AM, Ian Abbott wrote: > Most comedi subdevices that support asynchronous data acquisition > commands only support data transfer in a single direction, as indicated > by the `SDF_CMD_READ` and `SDF_CMD_WRITE` subdevice flags. A few allow > data transfer in either

Re: [PATCH 4/7] staging: comedi: don't allow read() on async command set up for "write"

2014-10-30 Thread Ian Abbott
On 30/10/14 20:45, Hartley Sweeten wrote: On Thursday, October 30, 2014 1:28 PM, Ian Abbott wrote: On 30/10/14 18:05, Hartley Sweeten wrote: On Thursday, October 30, 2014 5:42 AM, Ian Abbott wrote: [snip] add_wait_queue(&async->wait_head, &wait); while (nbytes > 0 && !retval

RE: [PATCH 4/7] staging: comedi: don't allow read() on async command set up for "write"

2014-10-30 Thread Hartley Sweeten
On Thursday, October 30, 2014 1:28 PM, Ian Abbott wrote: > On 30/10/14 18:05, Hartley Sweeten wrote: >> On Thursday, October 30, 2014 5:42 AM, Ian Abbott wrote: > [snip] >>> add_wait_queue(&async->wait_head, &wait); >>> while (nbytes > 0 && !retval) { >>> @@ -2249,6 +2253,10 @@ static ssiz

Re: [PATCH v2] staging: comedi: comedi_test: fix timer lock-up

2014-10-30 Thread Ian Abbott
On 30/10/14 20:29, Greg Kroah-Hartman wrote: On Thu, Oct 30, 2014 at 10:03:53AM +, Ian Abbott wrote: Commit 240512474424 ("staging: comedi: comedi_test: use comedi_handle_events()") resulted in the timer routine `waveform_ai_interrupt()` calling `comedi_handle_events()` instead of `comedi_ev

Re: [PATCH V2] staging: dgap: re-arrange functions for removing forward declarations

2014-10-30 Thread Greg KH
On Thu, Oct 30, 2014 at 12:14:00PM +0900, Daeseok Youn wrote: > Re-arrange the functions for removing forward declarations. > > Tested-by: Mark Hounschell > Signed-off-by: Daeseok Youn > Tested-by: Mark Hounschell > --- > V2: this patch is rebased on staging-next branch. Still doesn't apply :(

Re: [PATCH v2] staging: comedi: comedi_test: fix timer lock-up

2014-10-30 Thread Greg Kroah-Hartman
On Thu, Oct 30, 2014 at 10:03:53AM +, Ian Abbott wrote: > Commit 240512474424 ("staging: comedi: comedi_test: use > comedi_handle_events()") resulted in the timer routine > `waveform_ai_interrupt()` calling `comedi_handle_events()` instead of > `comedi_events()`. That had the advantage of auto

Re: [PATCH 5/7] staging: comedi: don't allow write() on async command set up for "read"

2014-10-30 Thread Ian Abbott
On 30/10/14 18:07, Hartley Sweeten wrote: On Thursday, October 30, 2014 5:43 AM, Ian Abbott wrote: [snip] add_wait_queue(&async->wait_head, &wait); on_wait_queue = true; @@ -2146,6 +2150,10 @@ static ssize_t comedi_write(struct file *file, const char __user *buf,

Re: [PATCH 4/7] staging: comedi: don't allow read() on async command set up for "write"

2014-10-30 Thread Ian Abbott
On 30/10/14 18:05, Hartley Sweeten wrote: On Thursday, October 30, 2014 5:42 AM, Ian Abbott wrote: [snip] add_wait_queue(&async->wait_head, &wait); while (nbytes > 0 && !retval) { @@ -2249,6 +2253,10 @@ static ssize_t comedi_read(struct file *file, char __user *buf, size_t nbyt

[PATCH 3/9] staging: unisys: virtpci: Remove space between cast and variable

2014-10-30 Thread Bryan Thompson
Remove the whitespace between a cast and a variable in virtpci.c. Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virtpci/virtpci.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/unisys/

[PATCH 2/9] staging: unisys: virtpci: Remove extraneous blank lines

2014-10-30 Thread Bryan Thompson
Removed unnecessary blank lines from virtpci.c Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virtpci/virtpci.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/unisys/virtpci/virtpci.c b/drivers/staging/unisys/virtpci/virtpci.c i

[PATCH 6/9] staging: unisys: virtpci: Add braces to if/else statements

2014-10-30 Thread Bryan Thompson
Update if/else blocks with braces on both the if and the else blocks in virtpci.c. Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virtpci/virtpci.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/unisys/virtp

[PATCH 0/9] Cleanup in virtpci.c

2014-10-30 Thread Bryan Thompson
This series of patches cleans up some simple checkpatch.pl findings in virtpci.c Bryan Thompson (9): staging: unisys: virtpci: Add a blank line after the definition of driver_private staging: unisys: virtpci: Remove extraneous blank lines staging: unisys: virtpci: Remove space between ca

[PATCH 5/9] staging: unisys: virtpci: Place logical continuation at the end of a line

2014-10-30 Thread Bryan Thompson
Move the && logical continuation from the start of the second line of an if statement to the end of the first line. Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virtpci/virtpci.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 9/9] staging: unisys: virtpci: Adjust lines to contain a maximum of 80 characters

2014-10-30 Thread Bryan Thompson
Update delete_all_virt function definition to two lines so each line is less than 80 characters long. Move comments on virtpci_device_add function parameters to a header block to contain each line to 80 characters. Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/stagi

[PATCH 1/9] staging: unisys: virtpci: Add a blank line after the definition of driver_private

2014-10-30 Thread Bryan Thompson
Insert a blank line between the definition of the driver_private structure and the next statement. Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virtpci/virtpci.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/unisys/virtpci/virt

[PATCH 4/9] staging: unisys: virtpci: Allocate memory using the size of the variable

2014-10-30 Thread Bryan Thompson
Change two instances of using the sizeof a structure to the size of a specific variable when allocating memory in virtpci.c Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virtpci/virtpci.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

[PATCH 8/9] staging: unisys: virtpci: Fix alignment issues

2014-10-30 Thread Bryan Thompson
Use the appropriate whitespace alignment for multiline statements in virtpci.c Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virtpci/virtpci.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/st

[PATCH 7/9] staging: unisys: virtpci: Use a single blank line to separate code blocks

2014-10-30 Thread Bryan Thompson
Remove one blank line of two between function variable declaration and implementation in virt_pci_mod_init(). Signed-off-by: Bryan Thompson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virtpci/virtpci.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/unisys/vi

[PATCH net-next] hyperv: Add IPv6 into the hash computation for vRSS

2014-10-30 Thread Haiyang Zhang
This will allow the workload spreading via vRSS for IPv6. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- drivers/net/hyperv/netvsc_drv.c |4 +++- drivers/net/hyperv/rndis_filter.c |3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/hyperv

[PATCH 1/3] staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load()

2014-10-30 Thread H Hartley Sweeten
The local variable 'range' is set but never used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers

[PATCH 2/3] staging: comedi: drivers: move comedi_async 'cur_chan' tracking into the core

2014-10-30 Thread H Hartley Sweeten
The commedi_async 'cur_chan' member is used to track the current position in the chanlist for a scan. Currently only a couple comedi drivers use this member. For aeshtetics, move the 'cur_chan' tracking into the core for non-SDF_PACKED subdevices. The 'cur_chan' will be updated after reading or wr

[PATCH 0/3] staging: comedi: make core track comedi_async 'cur_chan'

2014-10-30 Thread H Hartley Sweeten
Move the tracking of the comedi_async 'cur_chan' into the core. H Hartley Sweeten (3): staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load() staging: comedi: drivers: move comedi_async 'cur_chan' tracking into the core staging: comedi: amplc_pci230: remove private data

[PATCH 3/3] staging: comedi: amplc_pci230: remove private data 'ai_scan_pos'

2014-10-30 Thread H Hartley Sweeten
This member of the private data is replicating what the comedi_async 'cur_chan' member is used for. Use that instead and remove the private data member. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci230.c | 15 ---

[PATCH 2/2] staging: comedi: rtd520: remove private data 'chan_is_bipolar' member

2014-10-30 Thread H Hartley Sweeten
Currently this driver uses a bitmap in the private data to keep track of the unipolar/bipolar range for each channel. This is needed to determine if the data needs to be munged for bipolar samples. Remove this member from the private data and use the comedi core helper function comedi_range_is_bip

[PATCH 1/2] staging: comedi: rtd520: fix ai_read_n() async->cur_chan use

2014-10-30 Thread H Hartley Sweeten
This functions uses the async->cur_chan to determine if the current channel is using a bipolar range and the sample needs to be munged. The cur_chan is never incremented so all the samples are munged based on the fist channel in the cmd->chanlist. Bump the cur_chan after writing each sample. This

[PATCH 0/2] staging: comedi: rtd520: fix analog input munging

2014-10-30 Thread H Hartley Sweeten
Bipolar analog input samples need to be munged from two's-complement format to the unsigned offset format that comedi expects. Currently this driver uses a bitmap in the private data to determine if the sample being acquired is bipolar. The comedi_async 'cur_chan' is used to test the bit in the bi

[PATCH] staging: comedi: drivers do not need to reset the async->cur_chan

2014-10-30 Thread H Hartley Sweeten
The comedi core calls comedi_buf_reset() before starting an async command (*do_cmd) and after returning a subdevice to an idle state (*cancel). The drivers do not need to reset the async->cur_chan in those functions. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- d

[PATCH 3/3] staging: comedi: drivers: digital output subdevices do not need SDF_READABLE

2014-10-30 Thread H Hartley Sweeten
The SDF_READABLE flag is not necessary for digital output subdevices. For consistency, remove this flag from the comedi drivers that set it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci9111.c | 2 +- drivers/staging/comedi/d

[PATCH 1/3] staging: comedi: drivers: replace SDF_WRITEABLE with SDF_WRITABLE

2014-10-30 Thread H Hartley Sweeten
As indicated in the comedi.h uapi header, SDF_WRITEABLE was a spelling error in the API, SDF_WRITABLE is prefered. For aesthetics, replace all the SDF_WRITEABLE uses with SDF_WRITABLE. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ad

[PATCH 0/3] staging: comedi: drivers: tidy up the subdev_flags

2014-10-30 Thread H Hartley Sweeten
For consistency in the comedi drivers: 1) Replace all SDF_WRITEABLE uses with SDF_WRITABLE 2) Remove the analog reference flags from the non-analog subdevices 3) Remove the unnecessary SDF_READABLE flag from the digital output subdevices H Hartley Sweeten (3): staging: comedi: drivers: rep

[PATCH 2/3] staging: comedi: drivers: remove inappropriate SDF_* flags from subdevices

2014-10-30 Thread H Hartley Sweeten
The SDF_GROUND, SDF_COMMON, SDF_DIFF, and SDF_OTHER flags are only useful with the analog input and output subdevices. Remove these flags from the other subdevice types in the comedi drivers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/dri

[PATCH] staging: comedi: comedi_buf: make comedi_buf_write_samples() add samples that fit

2014-10-30 Thread H Hartley Sweeten
This function currently fails if the number of samples to add would overflow the async buffer. Modify it to add the samples that fit so at least some of the sample data is returned to the user. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/co

RE: [PATCH 5/7] staging: comedi: don't allow write() on async command set up for "read"

2014-10-30 Thread Hartley Sweeten
On Thursday, October 30, 2014 5:43 AM, Ian Abbott wrote: > If a Comedi asynchronous command has been set up for data transfer in > the "read" direction on the current "write" subdevice (for those > subdevices that support both directions), don't allow the "write" file > operation as that would mess

RE: [PATCH 4/7] staging: comedi: don't allow read() on async command set up for "write"

2014-10-30 Thread Hartley Sweeten
On Thursday, October 30, 2014 5:42 AM, Ian Abbott wrote: > If a Comedi asynchronous command has been set up for data transfer in > the "write" direction on the current "read" subdevice (for those > subdevices that support both directions), don't allow the "read" file > operation as that would mess

Re: [PATCH] staging:rtl8723au: core: Fix error reported by checkpatch.

2014-10-30 Thread Jes Sorensen
"Sharma, Sanjeev" writes: > -Original Message- > From: Joe Perches [mailto:j...@perches.com] > Sent: Monday, October 27, 2014 8:23 PM > To: Jes Sorensen > Cc: Sharma, Sanjeev; larry.fin...@lwfinger.net; > gre...@linuxfoundation.org; linux-wirel...@vger.kernel.org; > de...@driverdev.osuosl

Re: [PATCH] staging:rtl8723au: core: Fix error reported by checkpatch.

2014-10-30 Thread Jes Sorensen
"Sharma, Sanjeev" writes: > -Original Message- > From: Jes Sorensen [mailto:jes.soren...@redhat.com] > Sent: Monday, October 27, 2014 2:13 PM > To: Sharma, Sanjeev > Cc: larry.fin...@lwfinger.net; gre...@linuxfoundation.org; > linux-wirel...@vger.kernel.org; de...@driverdev.osuosl.org; >

Re: [PATCH v3 1/1] staging: skein: Removes skein_debug include

2014-10-30 Thread Jason Cooper
On Wed, Oct 29, 2014 at 07:12:08PM -0500, Eric Rost wrote: > Removes skein_debug.h include since skein_debug.h is nonexistent. > Removes unneeded debug empty macro defines and their uses. > > Signed-off-by: Eric Rost > --- > drivers/staging/skein/skein_base.c | 18 - > drivers/stagi

[PATCH 1/7] staging: comedi: maybe force CMDF_WRITE command flag

2014-10-30 Thread Ian Abbott
Most comedi subdevices that support asynchronous commands only support data transfer in either the "read" or "write" direction, as indicated by the `SDF_CMD_READ` and `SDF_CMD_WRITE` subdevice flags, although a few support both directions on the same subdevice (though not simultaneously). The `str

[PATCH 2/7] staging: comedi: me4000: don't clobber command flags

2014-10-30 Thread Ian Abbott
The low-level Comedi drivers shouldn't change the `flags` member of `struct comedi_cmd` as the Comedi core also uses some of those flags. They should just ignore the flags they don't understand. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/me4000.c | 3 --- 1 file changed, 3 dele

[PATCH 7/7] staging: comedi: check actual data direction for COMEDI_BUFINFO ioctl

2014-10-30 Thread Ian Abbott
`do_bufinfo_ioctl()` handled the `COMEDI_BUFINFO` ioctl. It is supposed to update the read or write positions in the buffer depending on the direction of data transfer set up by the asynchronous command. Currently it checks the `SDF_CMD_READ` and `SDF_CMD_WRITE` subdevice flags. That's fine for m

[PATCH 4/7] staging: comedi: don't allow read() on async command set up for "write"

2014-10-30 Thread Ian Abbott
If a Comedi asynchronous command has been set up for data transfer in the "write" direction on the current "read" subdevice (for those subdevices that support both directions), don't allow the "read" file operation as that would mess with the data in the comedi data buffer that is read by the low-l

[PATCH 6/7] staging: comedi: check command direction in poll() file operation

2014-10-30 Thread Ian Abbott
`comedi_poll()` handles the poll() file operation for comedi devices. If no asynchronous command has been set up on the current "read" subdevice, it sets the `POLLIN` and `POLLRDNORM` bits in the return value to indicate that the read() file operation would not block as it would return an error.

[PATCH 5/7] staging: comedi: don't allow write() on async command set up for "read"

2014-10-30 Thread Ian Abbott
If a Comedi asynchronous command has been set up for data transfer in the "read" direction on the current "write" subdevice (for those subdevices that support both directions), don't allow the "write" file operation as that would mess with the data in the comedi data buffer that is written by the l

[PATCH 3/7] staging: comedi: ni_mio_common: don't change CMDF_WRITE flag

2014-10-30 Thread Ian Abbott
There is no need for `ni_ai_cmdtest()` or `ni_ao_cmdtest()` to set the `CMDF_WRITE` flag to the correct state as it has already been done by the core comedi module. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 -- 1 file changed, 6 deletions(-) diff --git

[PATCH 0/7] staging: comedi: enforce data transfer direction

2014-10-30 Thread Ian Abbott
Most comedi subdevices that support asynchronous data acquisition commands only support data transfer in a single direction, as indicated by the `SDF_CMD_READ` and `SDF_CMD_WRITE` subdevice flags. A few allow data transfer in either direction, but only a single direction at a time, as indicated by

Re: [PATCH - resend] checkpatch: Remove unnecessary + after {8,8}

2014-10-30 Thread Borislav Petkov
On Thu, Oct 30, 2014 at 12:12:04PM +0100, Borislav Petkov wrote: > Hey Andrew, > > can we get this one applied already - I'm seeing this warning at least > since before my summer vacation started! :-P Oh ok, so it did go in after 3.17 but when using checkpatch on a 3.17 tree, it fires of course.

Re: [PATCH - resend] checkpatch: Remove unnecessary + after {8,8}

2014-10-30 Thread Borislav Petkov
Hey Andrew, can we get this one applied already - I'm seeing this warning at least since before my summer vacation started! :-P Thanks. On Mon, Sep 01, 2014 at 09:55:06AM -0700, Joe Perches wrote: > There's a useless "+" use that needs to be removed as perl 5.20 > emits a "Useless use of greedin

[PATCH v2] staging: comedi: comedi_test: fix timer lock-up

2014-10-30 Thread Ian Abbott
Commit 240512474424 ("staging: comedi: comedi_test: use comedi_handle_events()") resulted in the timer routine `waveform_ai_interrupt()` calling `comedi_handle_events()` instead of `comedi_events()`. That had the advantage of automatically stopping the acquisition on overflow/error/end-of-acquisit

Notification

2014-10-30 Thread G-Notice
Please find attached your award notification document. GPA TEAM Notice2014.pdf Description: Adobe PDF document ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging:rtl8723au: core: Fix error reported by checkpatch.

2014-10-30 Thread Jes Sorensen
Joe Perches writes: > On Mon, 2014-10-27 at 09:43 +0100, Jes Sorensen wrote: >> Sanjeev Sharma writes: >> > This is a patch to the rtw_cmd.c file that fixes >> > Error reported by checkpatch. > [] >> > diff --git a/drivers/staging/rtl8723au/core/rtw_cmd.c >> > b/drivers/staging/rtl8723au/core/rtw

Re: [PATCH] staging: android: logger: fix kuid/uid in logger_entry

2014-10-30 Thread Arnd Bergmann
On Thursday 30 October 2014 10:23:31 Xiong Zhou wrote: > From: Xiong Zhou > > struct logger_entry can be returned to userspace via ioctl, > so it is wrong to have a kuid_t member, fixing it to uid_t. > This was introduced by commit bd471258f2, to pass uidguid > type checks : UIDGID_STRICT_TYPE_CH