Re: [PATCH] staging: wlan-ng: Fix endianness warnings

2017-07-17 Thread Greg KH
On Wed, Jul 12, 2017 at 09:38:50PM +0100, alfonsolimaas...@gmail.com wrote: > From: Alfonso Lima Astor > > These variables were set to u16 and u32 although they always hold a little > endian value. > > This patch fixes multiple sparse warnings like: > drivers/staging/wlan-ng/prism2sta.c:375:46:

Re: [PATCH v3 1/1] Staging: android/ion: declare function static

2017-07-17 Thread Greg KH
On Sat, Jul 15, 2017 at 11:43:05AM +, Joseph Wright wrote: > Declare private function static to fix sparse warning: > > ion_cma_heap.c:109:5: warning: symbol '__ion_add_cma_heaps' \ > was not declared. Should it be static? > > Signed-off-by: Joseph Wright > --- > Changes in v3: > - M

Re: [PATCH v1] staging: rts5208: Change fixed function names with "%s: ", __func__

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 08:19:45PM +0530, Gaurav Pathak wrote: > staging: rts5208: Fix coding style issue caught by checkpatch.pl related to > function name in debug print and shorten few lines over 80 char No, only do one-type-of-thing per patch. It would make sense to maybe fix an 80 char line

Re: [PATCH 00/42] staging: unisys: More updates to the code

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:16:40PM -0400, David Kershner wrote: > This series fixes some more style issues with the code found > during our internal review. I've applied most of these, please rebase and fix up the remaining ones and resend. thanks, greg k-h __

Re: [PATCH v2] staging: unisys: visorbus: Constify attribute_group structures.

2017-07-17 Thread Greg KH
On Tue, Jul 18, 2017 at 10:54:21AM +0530, Arvind Yadav wrote: > attribute_group are not supposed to change at runtime. All functions > working with attribute_group provided by work > with const attribute_group. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav > --- > Chang

Re: [PATCH 37/42] staging: unisys: visorbus: fix multi-line function definition

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:17:17PM -0400, David Kershner wrote: > From: Charles Daniels > > Fixed incorrectly styled function definitions in visorbus/visorchipset.c > by placing the function names on the same line as the return. > > Signed-off-by: Charles Daniels > Signed-off-by: David Kershner

Re: [PATCH 42/42] staging: unisys: visornic: update the struct viosrnic_devdata to have kernel-doc like comments

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:17:22PM -0400, David Kershner wrote: > From: Sameer Wadgaonkar > > Cleaned up the in-line comments in the structure and added a > kernel-doc like comment for the structure. > > Signed-off-by: Sameer Wadgaonkar > Signed-off-by: David Kershner > Reviewed-by: David Bind

Re: [PATCH 31/42] staging: unisys: visorbus: fixed comment in visorbus_private.h

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:17:11PM -0400, David Kershner wrote: > From: Mark Foresta > > Placed /* on line 1 alone rather than start comment. > > Signed-off-by: Mark Foresta > Signed-off-by: David Kershner > Reviewed-by: David Binder > --- > drivers/staging/unisys/visorbus/visorbus_private.h

Re: [PATCH 30/42] staging: unisys: visorbus: Update comment style vbuschannel.h

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:17:10PM -0400, David Kershner wrote: > From: Mark Foresta > > Moved /* to own line at beginning of struct visor_vbus_deviceinfo to follow > standard. > > Signed-off-by: Mark Foresta > Signed-off-by: David Kershner > Reviewed-by: David Binder > --- > drivers/staging

Re: [PATCH 24/42] staging: unisys: visorbus: Beginning of the file /* on its own line

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:17:04PM -0400, David Kershner wrote: > From: Zohaib > > Leading comment changed to follow surrounding convention. > > Signed-off-by: Zohaib > Signed-off-by: David Kershner > Reviewed-by: David Binder > --- > drivers/staging/unisys/visorbus/visorchipset.c | 3 ++- >

Re: [PATCH 26/42] staging: unisys: visorbus: Adding a new line between function definition

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:17:06PM -0400, David Kershner wrote: > From: Zohaib Same name issue here. thanks, greg k-h ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 25/42] staging: unisys: include: iochannel.h: Removed unused DEFINE

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:17:05PM -0400, David Kershner wrote: > From: Zohaib I need a "real" and "full" name please for all kernel changes. thanks, greg k-h ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/

Re: [PATCH 19/42] staging: unisys: visorbus: add checks for probe, remove, pause and resume in visorbus_register_visor_driver

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:16:59PM -0400, David Kershner wrote: > From: Sameer Wadgaonkar > > Added checks for functions probe, remove, pause and resume in > visorbus_register_visor_driver() and removed these checks from > the individual functions itself. > > Signed-off-by: Sameer Wadgaonkar >

Re: [PATCH 08/42] staging: unisys: visorhba: viosrhba_main.c: Remove unnecessary checks

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 04:16:48PM -0400, David Kershner wrote: > From: David Binder > > Removes unnecessary checks for a NULL pointer in a non-API function. > > Signed-off-by: David Binder > Signed-off-by: David Kershner > Reviewed-by: David Binder > --- > drivers/staging/unisys/visorhba/vi

Re: [PATCH] Stagung: rtl8188eu: core: fixd comment coding style issue in rtw_xmit.c

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 10:53:21PM +0200, ArminSchoenlieb wrote: > From: Armin Schoenlieb > > This is a patch to the rtw_xmit.c file that fixes up a comment/80 character > warning found by the checkpatch.pl tool It's ironic that your changelog violates this same issue :( ___

Re: [PATCH] staging: iio: adc: add space around substraction operation

2017-07-17 Thread Jonathan Cameron
On 18 July 2017 06:38:08 BST, Hari Prasath wrote: >Fix checkpatch warning to add space around the substraction operation > >Signed-off-by: Hari Prasath >--- > drivers/staging/iio/adc/ad7280a.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/drivers/staging/iio/adc/ad7

[PATCH] staging: pi433: Fix a couple of spelling mistakes

2017-07-17 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistakes in dev_dbg debug messages "wiat" -> "wait" "fonud" -> "found" Signed-off-by: Colin Ian King --- drivers/staging/pi433/pi433_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/dri

[PATCH] staging: iio: adc: add space around substraction operation

2017-07-17 Thread Hari Prasath
Fix checkpatch warning to add space around the substraction operation Signed-off-by: Hari Prasath --- drivers/staging/iio/adc/ad7280a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index d5ab83f..d7

[PATCH v2] staging: unisys: visorbus: Constify attribute_group structures.

2017-07-17 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- Changes in v2: Change log typo was not correct. drivers/staging/u

Re: [PATCH] staging: unisys: visorbus: constify attribute_group structures.

2017-07-17 Thread Greg KH
On Mon, Jul 17, 2017 at 09:36:58PM +, Kershner, David A wrote: > > -Original Message- > > From: Greg KH [mailto:g...@kroah.com] > > Sent: Monday, July 17, 2017 8:38 AM > > To: Arvind Yadav > > Cc: Kershner, David A ; Sell, Timothy C > > ; Thompson, Bryan E. > > ; jon.fri...@unisys.com;

Re: [PATCH 1/3] staging: ccree: Replace kzalloc with devm_kzalloc

2017-07-17 Thread Suniel Mahesh
On Monday 17 July 2017 06:03 PM, Greg KH wrote: > On Sat, Jul 15, 2017 at 01:21:54PM +0530, suni...@techveda.org wrote: >> From: Suniel Mahesh >> >> It is recommended to use managed function devm_kzalloc, which >> simplifies driver cleanup paths and driver code. >> This patch does the following: >

Re: [PATCH v2 2/2] staging: gs_fpgaboot: change char to u8

2017-07-17 Thread Jacob von Chorus
On Mon, Jul 17, 2017 at 06:22:08PM -0700, Joe Perches wrote: > read_bitstream takes an int rdsize, not a u16. > and this function will overflow tbuf if len > 64 > > static void readinfo_bitstream(char *bitdata, char *buf, int *offset) > { > char tbuf[64]; > s32 len; > > /* read s

Re: [PATCH v2 2/2] staging: gs_fpgaboot: change char to u8

2017-07-17 Thread Joe Perches
On Mon, 2017-07-17 at 20:47 -0400, Jacob von Chorus wrote: > The bitstream storage variables were changed from char to u8 arrays to > prevent issues such as negative lengths. This change makes the code > compatible with the "data" field in "struct firmware" which is of type > u8. > > Signed-off-by

[PATCH v2 2/2] staging: gs_fpgaboot: change char to u8

2017-07-17 Thread Jacob von Chorus
The bitstream storage variables were changed from char to u8 arrays to prevent issues such as negative lengths. This change makes the code compatible with the "data" field in "struct firmware" which is of type u8. Signed-off-by: Jacob von Chorus --- drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 24

[PATCH v2 1/2] staging: gs_fpgaboot: add buffer overflow checks

2017-07-17 Thread Jacob von Chorus
Four fields in struct fpgaimage are char arrays of length MAX_STR (256). The amount of data read into these buffers is controlled by a length field in the bitstream file read from userspace. If a corrupt or malicious firmware file was supplied, kernel data beyond these buffers can be overwritten ar

Re: [PATCH] staging: gs_fpgaboot: add buffer overflow checks

2017-07-17 Thread Jacob von Chorus
On Mon, Jul 17, 2017 at 10:53:25PM +0300, Dan Carpenter wrote: > > + if (len + 1 > n) { > > It's more idiomatic to say "if (len >= n)". Plus that's a good habbit My reasoning behind using "((len + 1) > n)" is that len represents the length of the string without null-termination. "buf" is requi

Re: [patch 0/3] Re: tty contention resulting from tty_open_by_device export

2017-07-17 Thread Alan Cox
> Sure. I can fix the tty->count mismatch based on Alan's suggestion. However I > don't understand why the exclusivity flag should belong to tty_port and not > tty_struct. It will be good to know why. We are trying to move all the flags that we can and structs into the tty_port, except any tha

RE: [PATCH] staging: unisys: visorbus: constify attribute_group structures.

2017-07-17 Thread Kershner, David A
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Monday, July 17, 2017 8:38 AM > To: Arvind Yadav > Cc: Kershner, David A ; Sell, Timothy C > ; Thompson, Bryan E. > ; jon.fri...@unisys.com; Binder, David > Anthony ; *S-Par-Maintainer > ; de...@driverdev.osuosl.org; linu

Re: [PATCH v2 2/2] staging: atomisp2: hmm: Alignment code (rebased)

2017-07-17 Thread Sakari Ailus
On Thu, Jul 13, 2017 at 09:26:50PM +0200, Philipp wrote: > > > On 13. Jul 2017, at 17:45, Sakari Ailus wrote: > > > > On Thu, Jul 13, 2017 at 08:55:43AM +0200, Philipp Guendisch wrote: > >> This patch fixed code alignment to open paranthesis. > >> Semantic should not be affected by this patch. >

Re: [PATCH 14/14] [media] fix warning on v4l2_subdev_call() result interpreted as bool

2017-07-17 Thread Arnd Bergmann
On Mon, Jul 17, 2017 at 4:35 PM, Hans Verkuil wrote: > On 17/07/17 16:26, Arnd Bergmann wrote: >> Let me try again without ccache for now and see what warnings remain. >> We can find a solution for those first, and then decide how to deal with >> ccache. > > Sounds good. > > I'm OK with applying

[patch v2 0/3] tty contention resulting from tty_open_by_driver export

2017-07-17 Thread Okash Khawaja
Hi, I have reworked the previous patch set. These are the changes: 1. Patch 1 fixes tty->count mismatch reported by check_tty_count when a tty is kopened. 2. Patch 1 incorporates patch 4 in the previous patch set - it returns -ENODEV when tty is not configured. Thanks, Okash

[patch v2 3/3] tty: undo export of tty_open_by_driver

2017-07-17 Thread Okash Khawaja
Since we have tty_kopen, we no longer need to export tty_open_by_driver. This patch makes this function static. Signed-off-by: Okash Khawaja --- drivers/tty/tty_io.c |3 +-- include/linux/tty.h |5 - 2 files changed, 1 insertion(+), 7 deletions(-) --- a/drivers/tty/tty_io.c +++ b/

[patch v2 2/3] staging: speakup: use tty_kopen instead of tty_open_by_driver

2017-07-17 Thread Okash Khawaja
This patch replaces call to tty_open_by_driver with a tty_kopen. Signed-off-by: Okash Khawaja --- drivers/staging/speakup/spk_ttyio.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/speakup/spk_ttyio.c +++ b/drivers/staging/speakup/spk_ttyio.c @@ -158,7 +158,7 @@

[patch v2 1/3] tty: resolve tty contention between kernel and user space

2017-07-17 Thread Okash Khawaja
The commit 12e84c71b7d4ee (tty: export tty_open_by_driver) exports tty_open_by_device to allow tty to be opened from inside kernel which works fine except that it doesn't handle contention with user space or another kernel-space open of the same tty. For example, opening a tty from user space while

[PATCH] Stagung: rtl8188eu: core: fixd comment coding style issue in rtw_xmit.c

2017-07-17 Thread ArminSchoenlieb
From: Armin Schoenlieb This is a patch to the rtw_xmit.c file that fixes up a comment/80 character warning found by the checkpatch.pl tool Signed-off-by: Armin Schoenlieb --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dr

[PATCH 14/42] staging: unisys: include: iochannel.h: removed VISOR_VSWITCH_CHANNEL_SIGNATURE

2017-07-17 Thread David Kershner
From: Alex Curtin VISOR_VSWITCH_CHANNEL_SIGNATURE is a redundant definition that points to VISOR_CHANNEL_SIGNATURE. It wasn't being used, so it has been removed. Signed-off-by: Alex Curtin Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/iochannel.h

[PATCH 27/42] staging: unisys: visorbus: rename fix_vbus_dev_info

2017-07-17 Thread David Kershner
From: Erik Arfvidson Rename fix_vbus_dev_info to something clearer: publish_vbus_dev_info. Signed-off-by: Erik Arfvidson Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_main.c | 15 +++ 1 file changed, 7 insertions(+), 8 deleti

[PATCH 16/42] staging: unisys: visorbus: visorbus_main.c: remove extra checks for dev->visorchannel

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar Removed checks for dev->visorchannel in visorbus_release_device() and visorbus_remove_instance() since it is also checked in the visorchannel_destroy() function. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/stagi

[PATCH 40/42] staging: unisys: visorinput: fix multi-line function definition

2017-07-17 Thread David Kershner
From: Charles Daniels Fixed incorrect function declaration style in visorinput/visorinput.c by placing the function names on the same line as the return. Signed-off-by: Charles Daniels Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorinput/visorinput.c

[PATCH 31/42] staging: unisys: visorbus: fixed comment in visorbus_private.h

2017-07-17 Thread David Kershner
From: Mark Foresta Placed /* on line 1 alone rather than start comment. Signed-off-by: Mark Foresta Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_private.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/sta

[PATCH 21/42] staging: unisys: include: Remove unused CHANNEL_OK defines.

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar The VISOR_VNIC_CHANNEL_OK_CLIENT and VISOR_HBA_CHANNEL_OK_CLIENT macros were not being used. They can be removed. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/iochannel.h | 12

[PATCH 18/42] staging: unisys: visorbus: visorbus_main.c: remove check from typename_show

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar Remove check for xbus in typename_show() function in visorbus_main.c. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 36/42] staging: unisys: include: Remove COVER macro from channel.h

2017-07-17 Thread David Kershner
From: Charles Daniels Replaced the one and only call to COVER in iochannel.h. Signed-off-by: Charles Daniels Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/channel.h | 4 drivers/staging/unisys/include/iochannel.h | 2 +- 2 files changed, 1

[PATCH 11/42] staging: unisys: visorbus: vbuschannel.h: removed VISOR_VBUS_CHANNEL_SIGNATURE

2017-07-17 Thread David Kershner
From: Alex Curtin VISOR_VBUS_CHANNEL_SIGNATURE just pointed to VISOR_CHANNEL_SIGNATURE, so this replaces the redundant definition with VISOR_CHANNEL_SIGNATURE. Signed-off-by: Alex Curtin Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/vbuschannel.h

[PATCH 17/42] staging: unisys: visorbus: visorbus_main.c: put function name and return value on same line.

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar This patch makes function definitions more consistent by having function name and return values on the same line. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_main.c | 131 ++-

[PATCH 35/42] staging: unisys: visorbus: Remove unused define for visorchipset.

2017-07-17 Thread David Kershner
The define CURRENT_FILE_PC was not being used, so just remove it. Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorchipset.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/uni

[PATCH 42/42] staging: unisys: visornic: update the struct viosrnic_devdata to have kernel-doc like comments

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar Cleaned up the in-line comments in the structure and added a kernel-doc like comment for the structure. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visornic/visornic_main.c | 86 --

[PATCH 37/42] staging: unisys: visorbus: fix multi-line function definition

2017-07-17 Thread David Kershner
From: Charles Daniels Fixed incorrectly styled function definitions in visorbus/visorchipset.c by placing the function names on the same line as the return. Signed-off-by: Charles Daniels Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorchipset

[PATCH 38/42] staging: unisys: visorbus: visorchannel.c: fix multi-line function definition

2017-07-17 Thread David Kershner
From: Charles Daniels Fixed incorrect function definition style in visorbus/visorchannel.c by placing the function names on the same line as the return. Signed-off-by: Charles Daniels Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorchannel.c |

[PATCH 34/42] staging: unisys: visorbus: cleaned up include block of visorchipset.c

2017-07-17 Thread David Kershner
From: Mark Foresta Removed 4 unneeded includes netdevice, nls, fs, and ctype. Signed-off-by: Mark Foresta Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorchipset.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/unisys/v

[PATCH 39/42] staging: unisys: visorhba: fix multi-line function definition

2017-07-17 Thread David Kershner
From: Charles Daniels Fixed incorrect function definition style in visorhba/visorhba_main.c by placing the function names on the same line as the return. Signed-off-by: Charles Daniels Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorhba/visorhba_main.c

[PATCH 41/42] staging: unisys: visornic: fix multi-line function definition

2017-07-17 Thread David Kershner
From: Charles Daniels Fixed incorrect function declaration style in visornic/visornic_main.c by placing the function names on the same line as the return. Signed-off-by: Charles Daniels Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visornic/visornic_main.

[PATCH 33/42] staging: unisys: visorbus: Removed unused define from visorbus_main.c

2017-07-17 Thread David Kershner
From: Mark Foresta Removed unused #define CURRENT_FILE_PC. Signed-off-by: Mark Foresta Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.

[PATCH 32/42] staging: unisys: visorbus: removed blank line in viorbus_main.c

2017-07-17 Thread David Kershner
From: Mark Foresta Removed blank line between #defines. Signed-off-by: Mark Foresta Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c

[PATCH 30/42] staging: unisys: visorbus: Update comment style vbuschannel.h

2017-07-17 Thread David Kershner
From: Mark Foresta Moved /* to own line at beginning of struct visor_vbus_deviceinfo to follow standard. Signed-off-by: Mark Foresta Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/vbuschannel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

[PATCH 28/42] staging: unisys: visorbus: remove target_hostname comment

2017-07-17 Thread David Kershner
From: Erik Arfvidson This patch simply removes TARGET_HOSTNAME comment that is no longer relevant. Signed-off-by: Erik Arfvidson Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_private.h | 4 1 file changed, 4 deletions(-) diff --git

[PATCH 26/42] staging: unisys: visorbus: Adding a new line between function definition

2017-07-17 Thread David Kershner
From: Zohaib Added a new line before issue_vmcall_io_controlvm_addr() function definition. Signed-off-by: Zohaib Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorchipset.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/unis

[PATCH 29/42] staging: unisys: visorchipset: remove local_addr in handle_command

2017-07-17 Thread David Kershner
From: Erik Arfvidson In the function handle_command, the variable local_addr is always false. So this patch is getting rid of logic when it is true. Signed-off-by: Erik Arfvidson Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorchipset.c | 43 +

[PATCH 22/42] staging: unisys: moved visor_check_channel from include/channel.h to visorbus/visorbus_main.c

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar Moved the function visor_check_channel() from include/channel.h to visorbus/visorbus_main.c. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/channel.h | 55 +--- drivers/

[PATCH 25/42] staging: unisys: include: iochannel.h: Removed unused DEFINE

2017-07-17 Thread David Kershner
From: Zohaib Removed unused #define GPI_ENTRIES_PER_PAGE Signed-off-by: Zohaib Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/iochannel.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/unisys/include/iochannel.h b/drivers/sta

[PATCH 20/42] staging: unisys: remove unused define VISOR_VSWITCH_CHANNEL_VERSIONID

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar The VSWITCH channel is not used in Linux guests, so remove the VERSIONID. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/iochannel.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

[PATCH 24/42] staging: unisys: visorbus: Beginning of the file /* on its own line

2017-07-17 Thread David Kershner
From: Zohaib Leading comment changed to follow surrounding convention. Signed-off-by: Zohaib Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorchipset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/unisys

[PATCH 23/42] staging: unisys: visorbus: Fix memory leak

2017-07-17 Thread David Kershner
From: Zachary Dremann The name of a visor_device was never freed, which was allocated in visorbus_configure. It is expected that visorbus_device_destroy will not be called on the same visor_device again, or this would be a double free. Signed-off-by: Zachary Dremann Signed-off-by: David Kershn

[PATCH 19/42] staging: unisys: visorbus: add checks for probe, remove, pause and resume in visorbus_register_visor_driver

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar Added checks for functions probe, remove, pause and resume in visorbus_register_visor_driver() and removed these checks from the individual functions itself. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/u

[PATCH 12/42] staging: unisys: include: iochannel.h: removed VISOR_VHBA_CHANNEL_SIGNATURE

2017-07-17 Thread David Kershner
From: Alex Curtin VISOR_VHBA_CHANNEL_SIGNATURE is a redundant definition that points to VISOR_CHANNEL_SIGNATURE. This replaces that definition with VISOR_CHANNEL_SIGNATURE. Signed-off-by: Alex Curtin Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/i

[PATCH 03/42] staging: unisys: visorbus: visorbus_main.c: Adjust code layout

2017-07-17 Thread David Kershner
From: David Binder Adjusts the ordering of function statements, as well as modifies whitespace usage, in order to create a more uniform coding style. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_main.c | 28 +

[PATCH 13/42] staging: unisys: include: iochannel.h: removed VISOR_VNIC_CHANNEL_SIGNATURE

2017-07-17 Thread David Kershner
From: Alex Curtin VISOR_VNIC_CHANNEL_SIGNATURE is a redundant definition that points to VISOR_CHANNEL_SIGNATURE. This replaces that definition with VISOR_CHANNEL_SIGNATURE. Signed-off-by: Alex Curtin Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/i

[PATCH 15/42] staging: unisys: visorbus: convert VMCALL_CONTROLVM_ADDR enum to #define

2017-07-17 Thread David Kershner
From: Sameer Wadgaonkar VMCALL_CONTROLVM_ADDR is the only element left in enum vmcall_monitor_interface_method_tuple. Converting it to a #define. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/vmcallinterface.h | 7

[PATCH 09/42] staging: unisys: include: channel.h: remove unused pound defines

2017-07-17 Thread David Kershner
From: Erik Arfvidson This patch removes all the unused pound defines currently in channel.h. Signed-off-by: Erik Arfvidson Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/include/channel.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/stagi

[PATCH 10/42] staging: unisys: visorbus: controlvmchannel.h: removed VISOR_CONTROLVM_CHANNEL_SIGNATURE

2017-07-17 Thread David Kershner
From: Alex Curtin VISOR_CONTROLVM_CHANNEL_SIGNATURE points to VISOR_CHANNEL_SIGNATURE, so this replaces the redundant definition with VISOR_CHANNEL_SIGNATURE. Signed-off-by: Alex Curtin Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/controlvmchann

[PATCH 08/42] staging: unisys: visorhba: viosrhba_main.c: Remove unnecessary checks

2017-07-17 Thread David Kershner
From: David Binder Removes unnecessary checks for a NULL pointer in a non-API function. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorhba/visorhba_main.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --gi

[PATCH 04/42] staging: unisys: visorhba: visorhba_main.c: Adjust whitespace usage

2017-07-17 Thread David Kershner
From: David Binder Removes unnecessary blank lines to create a more uniform coding style. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorhba/visorhba_main.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/

[PATCH 07/42] staging: unisys: visorbus: controlvmchannel.h: fix spacing

2017-07-17 Thread David Kershner
From: Erik Arfvidson This patch fixes space and tab aligned comments in controlvmchannel.h. Signed-off-by: Erik Arfvidson Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/controlvmchannel.h | 8 1 file changed, 4 insertions(+), 4 deletions(

[PATCH 01/42] staging: unisys: visorbus: visorbus_main.c: use __func__ over hardcoded name

2017-07-17 Thread David Kershner
From: Zachary Dremann As reported by checkpatch.pl, replace hard-coded usage of the current function's name in format string with usage of __func__. Signed-off-by: Zachary Dremann Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorbus_main.c | 2

[PATCH 06/42] staging: unisys: visornic: visornic_main.c: Adjust whitespace usage

2017-07-17 Thread David Kershner
From: David Binder Adjusts whitespace usage in order to create a more uniform coding style. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visornic/visornic_main.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletio

[PATCH 05/42] staging: unisys: visorinput: visorinput.c: Adjust whitespace usage

2017-07-17 Thread David Kershner
From: David Binder Adjusts whitespace usage in order to create a more uniform coding style. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorinput/visorinput.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-

[PATCH 02/42] staging: unisys: visorbus: visorchipset.c: Adjust code layout

2017-07-17 Thread David Kershner
From: David Binder Adjusts the ordering of function statements, as well as modifies whitespace usage, in order to create a more uniform coding style. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: David Binder --- drivers/staging/unisys/visorbus/visorchipset.c | 30 ++

[PATCH 00/42] staging: unisys: More updates to the code

2017-07-17 Thread David Kershner
This series fixes some more style issues with the code found during our internal review. Alex Curtin (5): staging: unisys: visorbus: controlvmchannel.h: removed VISOR_CONTROLVM_CHANNEL_SIGNATURE staging: unisys: visorbus: vbuschannel.h: removed VISOR_VBUS_CHANNEL_SIGNATURE staging: unisys:

[PATCH] staging: gs_fpgaboot: remove FSF address from GPL notice

2017-07-17 Thread Jacob von Chorus
This patch removes the FSF address from the GPL notice to fix a checkpatch.cl CHECK message. Signed-off-by: Jacob von Chorus --- drivers/staging/gs_fpgaboot/io.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/gs_fpgaboot/io.c b/drivers/staging/gs_fpgaboot/io.c index c9391

[PATCH] staging: gs_fpgaboot: add buffer overflow checks

2017-07-17 Thread Jacob von Chorus
Four fields in struct fpgaimage are char arrays of length MAX_STR (256). The amount of data read into these buffers is controlled by a length field in the bitstream file read from userspace. If a corrupt or malicious firmware file was supplied, kernel data beyond these buffers can be overwritten ar

Re: [PATCH] staging: gs_fpgaboot: add buffer overflow checks

2017-07-17 Thread Dan Carpenter
On Sun, Jul 16, 2017 at 08:38:41PM -0400, Jacob von Chorus wrote: > diff --git a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c > b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c > index 19b550fff0..2aafd769b8 100644 > --- a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c > +++ b/drivers/staging/gs_fpgaboot/gs_fp

RE: [PATCH 1/2] Tools: hv: vss: Skip freezing filesystems backed by loop

2017-07-17 Thread Alex Ng (LIS)
My apologies. The changelog comment should be more descriptive. Since a loop device is backed by a file, a backup will already result in its parent filesystem being frozen. It's sufficient to just freeze the parent filesystem, so we can skip the loop device. This avoids a situation where a loop d

Re: [BUG] drivers: staging: comedi: do not call blocking ops when !TASK_RUNNING; state=1

2017-07-17 Thread Piotr Gregor
Hi Ian, I am afraid I have more problems with running Comedi on rt-patched kernel than only that. I am still trying to figure out the specific reason - hopefully it is my fault and I scrued up my own code, but so far it seems pcie215 support doesn't work at least in the same way on rt-patched kern

Re: [PATCH v2 4/4] Staging: Lustre Fix block statement style issue

2017-07-17 Thread Dan Carpenter
On Mon, Jul 17, 2017 at 05:50:27PM +, Craig Inches wrote: > On Mon, Jul 17, 2017 at 05:44:59PM +, Dilger, Andreas wrote: > > On Jul 12, 2017, at 03:03, Craig Inches wrote: > > > > > > This fixes a block statement which didnt end with */ > > > > > > Signed-off-by: Craig Inches > > > ---

Re: [PATCH v2 4/4] Staging: Lustre Fix block statement style issue

2017-07-17 Thread Craig Inches
On Mon, Jul 17, 2017 at 05:44:59PM +, Dilger, Andreas wrote: > On Jul 12, 2017, at 03:03, Craig Inches wrote: > > > > This fixes a block statement which didnt end with */ > > > > Signed-off-by: Craig Inches > > --- > > drivers/staging/lustre/include/linux/lnet/socklnd.h | 3 ++- > > 1 file c

Re: [PATCH v2 4/4] Staging: Lustre Fix block statement style issue

2017-07-17 Thread Dilger, Andreas
On Jul 12, 2017, at 03:03, Craig Inches wrote: > > This fixes a block statement which didnt end with */ > > Signed-off-by: Craig Inches > --- > drivers/staging/lustre/include/linux/lnet/socklnd.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/lustre/i

[PATCH 1/1] staging: rtl8188eu: add TL-WN722N v2 support

2017-07-17 Thread Michael Gugino
Add support for USB Device TP-Link TL-WN722N v2. VendorID: 0x2357, ProductID: 0x010c Signed-off-by: Michael Gugino --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/u

[PATCH 1/1] rtl8188eu: add TL-WN722N v2 support

2017-07-17 Thread Michael Gugino
Add support for USB Device TP-Link TL-WN722N v2. VendorID: 0x2357, ProductID: 0x010c Signed-off-by: Michael Gugino --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/u

[PATCH v3 0/1] Staging: android/ion: fix sparse warnings

2017-07-17 Thread Joseph Wright
Improve commit message. Previous version included a patch to add declarations to ion.h, but I have dropped that as the same declarations were recently removed. Joseph Wright (1): Staging: android/ion: declare function static drivers/staging/android/ion/ion_cma_heap.c | 2 +- 1 file changed, 1

[PATCH v3 1/1] Staging: android/ion: declare function static

2017-07-17 Thread Joseph Wright
Declare private function static to fix sparse warning: ion_cma_heap.c:109:5: warning: symbol '__ion_add_cma_heaps' \ was not declared. Should it be static? Signed-off-by: Joseph Wright --- Changes in v3: - Make subject clearer drivers/staging/android/ion/ion_cma_heap.c | 2 +- 1 file

Re: [BUG] drivers: staging: comedi: do not call blocking ops when !TASK_RUNNING; state=1

2017-07-17 Thread Ian Abbott
On 17/07/17 15:48, Piotr Gregor wrote: Calling blocking operations from wrong context. Kernel: Linux piotrpc 4.4.70-rt83 #1 SMP PREEMPT RT Thu Jul 13 08:42:02 BST 2017 x86_64 GNU/Linux [ 80.542018] NOHZ: local_softirq_pending 80 [ 125.175471] [ cut here ] [ 125.1754

Re: [PATCH 03/10] x86/hyper-v: make hv_do_hypercall() inline

2017-07-17 Thread Greg KH
On Sun, Jun 25, 2017 at 10:06:42AM -0700, k...@exchange.microsoft.com wrote: > From: Vitaly Kuznetsov > > We have only three call sites for hv_do_hypercall() and we're going to > change HVCALL_SIGNAL_EVENT to doing fast hypercall so we can inline this > function for optimization. > > Hyper-V top

Re: [PATCH 6/7] staging: fsl-mc: rewrite mc command send/receive to work on 32-bits

2017-07-17 Thread Laurentiu Tudor
Hi Robin, On 07/17/2017 04:43 PM, Robin Murphy wrote: > On 17/07/17 14:26, laurentiu.tu...@nxp.com wrote: >> From: Laurentiu Tudor >> >> Split the 64-bit accesses in 32-bit accesses because there's no real >> constrain in MC to do only atomic 64-bit. There's only one place >> where ordering is im

Re: [PATCH 6/7] staging: fsl-mc: rewrite mc command send/receive to work on 32-bits

2017-07-17 Thread Arnd Bergmann
On Mon, Jul 17, 2017 at 4:27 PM, Laurentiu Tudor wrote: > Hi Arnd, > > On 07/17/2017 04:45 PM, Arnd Bergmann wrote: >> On Mon, Jul 17, 2017 at 3:26 PM, wrote: >>> From: Laurentiu Tudor >>> >>> Split the 64-bit accesses in 32-bit accesses because there's no real >>> constrain in MC to do only at

[BUG] drivers: staging: comedi: do not call blocking ops when !TASK_RUNNING; state=1

2017-07-17 Thread Piotr Gregor
Calling blocking operations from wrong context. Kernel: Linux piotrpc 4.4.70-rt83 #1 SMP PREEMPT RT Thu Jul 13 08:42:02 BST 2017 x86_64 GNU/Linux [ 80.542018] NOHZ: local_softirq_pending 80 [ 125.175471] [ cut here ] [ 125.175491] WARNING: CPU: 0 PID: 1497 at kernel/s

[PATCH v1] staging: rts5208: Change fixed function names with "%s: ", __func__

2017-07-17 Thread Gaurav Pathak
staging: rts5208: Fix coding style issue caught by checkpatch.pl related to function name in debug print and shorten few lines over 80 char Signed-off-by: Gaurav Pathak --- drivers/staging/rts5208/ms.c| 5 +++-- drivers/staging/rts5208/rtsx.c | 4 ++-- drivers/staging/rts5208/rtsx

Re: [PATCH 14/14] [media] fix warning on v4l2_subdev_call() result interpreted as bool

2017-07-17 Thread Hans Verkuil
On 17/07/17 16:26, Arnd Bergmann wrote: > On Mon, Jul 17, 2017 at 3:45 PM, Hans Verkuil wrote: >> On 14/07/17 11:36, Arnd Bergmann wrote: >>> @@ -201,8 +202,9 @@ static int cx18_g_fmt_sliced_vbi_cap(struct file *file, >>> void *fh, >>>* digitizer/slicer. Note, cx18_av_vbi() wipes the pas

Re: [PATCH 14/14] [media] fix warning on v4l2_subdev_call() result interpreted as bool

2017-07-17 Thread Hans Verkuil
On 17/07/17 16:26, Arnd Bergmann wrote: > On Mon, Jul 17, 2017 at 3:45 PM, Hans Verkuil wrote: >> On 14/07/17 11:36, Arnd Bergmann wrote: >>> @@ -201,8 +202,9 @@ static int cx18_g_fmt_sliced_vbi_cap(struct file *file, >>> void *fh, >>>* digitizer/slicer. Note, cx18_av_vbi() wipes the pas

Re: [PATCH 14/14] [media] fix warning on v4l2_subdev_call() result interpreted as bool

2017-07-17 Thread Dan Carpenter
On Mon, Jul 17, 2017 at 04:26:23PM +0200, Arnd Bergmann wrote: > On Mon, Jul 17, 2017 at 3:45 PM, Hans Verkuil wrote: > > On 14/07/17 11:36, Arnd Bergmann wrote: > >> @@ -201,8 +202,9 @@ static int cx18_g_fmt_sliced_vbi_cap(struct file > >> *file, void *fh, > >>* digitizer/slicer. Note,

Re: [PATCH 6/7] staging: fsl-mc: rewrite mc command send/receive to work on 32-bits

2017-07-17 Thread Laurentiu Tudor
Hi Arnd, On 07/17/2017 04:45 PM, Arnd Bergmann wrote: > On Mon, Jul 17, 2017 at 3:26 PM, wrote: >> From: Laurentiu Tudor >> >> Split the 64-bit accesses in 32-bit accesses because there's no real >> constrain in MC to do only atomic 64-bit. There's only one place >> where ordering is important:

  1   2   >