[PATCH] Staging: ks7010: Fixed {} brace warnings for single statement blocks.

2016-11-24 Thread Yamanappagouda Patil
Fixed checkpatch.pl warnings related to {} brace warnings for single statement blocks. Signed-off-by: Yamanappagouda Patil --- drivers/staging/ks7010/ks_wlan_net.c | 172 ++- 1 file changed, 66 insertions(+), 106 deletions(-) diff --git a/drivers/staging/ks7010/k

[PATCH] staging: ks7010: fixed 'space prohibited after that *' erros.

2016-11-24 Thread Yamanappagouda Patil
Fixed checkpatch.pl errors related to "space prohibited after that '*' or '&'" in ks_wlan_net.c file. Signed-off-by: Yamanappagouda Patil --- drivers/staging/ks7010/ks_wlan_net.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c

[patch] staging: lustre: lnet: memory corruption in selftest

2016-11-24 Thread Dan Carpenter
We want sizeof(struct lstcon_node) but instead we're getting the sizeof a pointer. Fixes: 8d78f0f2ba76 ("staging: lustre: lnet: cleanup some of the > 80 line issues") Signed-off-by: Dan Carpenter diff --git a/drivers/staging/lustre/lnet/selftest/console.c b/drivers/staging/lustre/lnet/selftest

[patch] staging: lustre/ptlrpc: small leak on allocation failure

2016-11-24 Thread Dan Carpenter
We should free "desc" before returning NULL. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c b/drivers/staging/lustre/lustre/ptlrpc/client.c index ac959ef..8047413 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/client.c +++ b/drivers/staging/lustre/lus

Re: [PATCH] staging: ks7010: fixed 'space prohibited after that *' erros.

2016-11-24 Thread Joe Perches
On Thu, 2016-11-24 at 14:59 +0530, Yamanappagouda Patil wrote: > Fixed checkpatch.pl errors related to "space prohibited after that '*' > or '&'" in ks_wlan_net.c file. trivia: > diff --git a/drivers/staging/ks7010/ks_wlan_net.c > b/drivers/staging/ks7010/ks_wlan_net.c [] > @@ -389,7 +389,7 @@ s

Aw: Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver

2016-11-24 Thread Lino Sanfilippo
Hi Andrew, Hi Florian > Gesendet: Dienstag, 15. November 2016 um 23:34 Uhr > Von: "Lino Sanfilippo" > An: "Andrew Lunn" > Cc: "Florian Fainelli" , da...@davemloft.net, > char...@alacritech.com, lio...@gmail.com, gre...@linuxfoundation.org, > de...@driverdev.osuosl.org, linux-ker...@vger.kernel

Re: [PATCH 2/2] staging: slicoss: replace UPDATE_STATS_GB macro into an inline function

2016-11-24 Thread Sergio Paracuellos
On Wed, Nov 23, 2016 at 11:32 PM, Markus Böhme wrote: > On 11/23/2016 08:00 PM, Markus Böhme wrote: >> On 11/23/2016 07:10 PM, Sergio Paracuellos wrote: >>> This patch replaces UPDATE_STATS_GB macro in slic.h header file >>> into an inline function. This provides type safety and readability. >>> >

[PATCH v2 0/2] staging: slicoss: minor changes to clean some code

2016-11-24 Thread Sergio Paracuellos
This patchset clean some code in slicoss driver: * Removes not used macro. * Remove a macro and just inline code. Changes in v2: * Remove inline function into inline code. Sergio Paracuellos (2): staging: slicoss: remove not used UPDATE_STATS macro staging: slicoss: remove UPDATE_STATS_GB ma

[PATCH v2 1/2] staging: slicoss: remove not used UPDATE_STATS macro

2016-11-24 Thread Sergio Paracuellos
This patch remove UPDATE_STATS macro from header slic.h which is not being used. Signed-off-by: Sergio Paracuellos --- drivers/staging/slicoss/slic.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/slicoss/slic.h b/drivers/staging/slicoss/slic.h index 1f6562c..2c05868

[PATCH v2 2/2] staging: slicoss: remove UPDATE_STATS_GB macro and inline code

2016-11-24 Thread Sergio Paracuellos
This patch removes UPDATE_STATS_GB macro in slic.h header file and just inline code. This improve readability. Signed-off-by: Sergio Paracuellos --- drivers/staging/slicoss/slic.h| 5 drivers/staging/slicoss/slicoss.c | 52 +++ 2 files changed, 25 in

Re: [PATCH v2 2/2] staging: slicoss: remove UPDATE_STATS_GB macro and inline code

2016-11-24 Thread Markus Böhme
On 11/24/2016 08:21 PM, Sergio Paracuellos wrote: > This patch removes UPDATE_STATS_GB macro in slic.h header file > and just inline code. This improve readability. > > Signed-off-by: Sergio Paracuellos > --- > drivers/staging/slicoss/slic.h| 5 > drivers/staging/slicoss/slicoss.c | 52

[PATCH v3 1/2] staging: slicoss: remove not used UPDATE_STATS macro

2016-11-24 Thread Sergio Paracuellos
This patch remove UPDATE_STATS macro from header slic.h which is not being used. Signed-off-by: Sergio Paracuellos --- drivers/staging/slicoss/slic.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/slicoss/slic.h b/drivers/staging/slicoss/slic.h index 1f6562c..2c05868

[PATCH v3 2/2] staging: slicoss: remove UPDATE_STATS_GB macro and inline code

2016-11-24 Thread Sergio Paracuellos
This patch removes UPDATE_STATS_GB macro in slic.h header file and just inline code. This improve readability. Signed-off-by: Sergio Paracuellos --- drivers/staging/slicoss/slic.h| 5 drivers/staging/slicoss/slicoss.c | 52 +++ 2 files changed, 25 in

[PATCH v3 0/2] staging: slicoss: minor changes to clean some code

2016-11-24 Thread Sergio Paracuellos
This patchset clean some code in slicoss driver: * Removes not used macro. * Remove a macro and just inline code. Changes in v2: * Remove inline function into inline code. Changes in v3: * Replace '=' in favour of '+='. Sergio Paracuellos (2): staging: slicoss: remove not used UPDATE_STATS mac

[PATCH 2/3] staging: comedi: s626: use preferred kernel type u16

2016-11-24 Thread Saber Rezvani
>From 946376d81bd841696316123586028914448523d1 Mon Sep 17 00:00:00 2001 From: Saber Date: Thu, 24 Nov 2016 23:25:47 +0330 Subject: [PATCH 2/3] staging: comedi: s626: use preferred kernel type u16 Fix the checkpatch.pl issue: CHECK: Prefer kernel type 'u16' over 'uint16_t' Signed-off-by: Saber Re

[PATCH 1/3] staging: comedi: s626: use preferred kernel type u8

2016-11-24 Thread Saber Rezvani
>From c3dd43f3d43e7bec8f7f1140519ffc1f3b727b01 Mon Sep 17 00:00:00 2001 From: Saber Date: Thu, 24 Nov 2016 23:15:21 +0330 Subject: [PATCH 1/3] staging: comedi: s626: use preferred kernel type u8 Fix the checkpatch.pl issue: CHECK: Prefer kernel type 'u8' over 'uint8_t' Signed-off-by: Saber Rezva

[PATCH 3/3] staging: comedi: s626: use preferred kernel type u32

2016-11-24 Thread Saber Rezvani
>From 5a907ea23f93f4358a91eb75915ef4b6134a9034 Mon Sep 17 00:00:00 2001 From: Saber Date: Thu, 24 Nov 2016 23:35:52 +0330 Subject: [PATCH 3/3] staging: comedi: s626: use preferred kernel type u32 Fix the checkpatch.pl issue: CHECK: Prefer kernel type 'u32' over 'uint32_t' Signed-off-by: Saber Re

Re: [PATCH v2 2/2] staging: slicoss: remove UPDATE_STATS_GB macro and inline code

2016-11-24 Thread Sergio Paracuellos
On Thu, Nov 24, 2016 at 8:41 PM, Markus Böhme wrote: > On 11/24/2016 08:21 PM, Sergio Paracuellos wrote: >> This patch removes UPDATE_STATS_GB macro in slic.h header file >> and just inline code. This improve readability. >> >> Signed-off-by: Sergio Paracuellos >> --- >> drivers/staging/slicoss/

[PATCH] staging: most: Eliminate symbolic permissions usage

2016-11-24 Thread Jason Litzinger
Fix checkpatch warnings regarding the use of symbolic permissions. Where the MOST_CHANNEL_ATTR macro is used, convert to octal permissions over symbolic. Where _ATTR is used directly, replace with _ATTR_RW/_ATTR_WO and update the show/store function names appropriately. Signed-off-by: Jason Litz

Gigabit ethernet driver for Alacritechs SLIC devices

2016-11-24 Thread Lino Sanfilippo
Hi, this is the second version of the slicoss gigabit ethernet driver (which is a rework of the driver from Alacritech which can currently be found under drivers/staging/slicoss). The driver is supposed to support Mojave, Oasis and Kalahari cards, for both copper and fiber. If this code is accept

[PATCH v2 net-next 2/2] MAINTAINERS: add entry for slicoss ethernet driver

2016-11-24 Thread Lino Sanfilippo
Add myself as maintainer for the slicoss ethernet driver. Signed-off-by: Lino Sanfilippo --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6781a3f..bb9af28 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -562,6 +562,11 @@ T: git git://linuxtv.

[PATCH v2 net-next 1/2] net: ethernet: slicoss: add slicoss gigabit ethernet driver

2016-11-24 Thread Lino Sanfilippo
Add driver for Alacritech gigabit ethernet cards with SLIC (session-layer interface control) technology. The driver provides basic support without SLIC for the following devices: - Mojave cards (single port PCI Gigabit) both copper and fiber - Oasis cards (single and dual port PCI-x Gigabit) coppe

[PATCH v2] Staging: iio: adc: fix sysfs files modes in ad7192.c

2016-11-24 Thread Boyan Vladinov
Fixes sysfs entries user/group modes and coding style warnings found by checkpatch.pl tool. Also use the IIO_DEVICE_ATTR_[RO|RW] and macros to create device attributes Signed-off-by: Boyan Vladinov --- drivers/staging/iio/adc/ad7192.c | 45 +++- 1 file changed

[PATCH] Staging: Media: Omap4iss: Do not forget to call

2016-11-24 Thread Shailendra Verma
v4l2_fh_init is already done.So call the v4l2_fh_exit in error condition before returing from the function. Signed-off-by: Shailendra Verma --- drivers/staging/media/omap4iss/iss_video.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/omap4iss/iss_video.c b/drivers/