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 > --- > drivers/staging/vt6655/80211hdr.h |7 --- > drivers/staging/vt6655/80211mgr.h | 38 > - > drive

[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 drivers/staging/lus

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

2014-07-24 Thread Ben Romer
Greg KH wrote: > > Really > Obviously not, I'm sorry. :( ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[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 --- drivers/staging/vt6655/80211mgr.c| 36 --- drivers/staging/vt6655/b

[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 --- drivers/staging/vt6655/bssdb.h | 3 +-- drivers/staging/vt6655/device.h | 15 +-- drivers/staging/vt6655/key.h| 9 +++-- drivers/staging/vt665

[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 --- drivers/staging/vt6655/device.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index 7c7fec

[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 --- drivers/staging/vt6655/80211mgr.c| 1 + drivers/staging/vt6655/baseband.c| 1 + drivers/staging/vt6655/bssdb.c | 7 +++ drivers/staging/vt6655/c

[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 --- drivers/staging/vt6655/wcmd.c | 5 +++-- drivers/staging/vt6655/wpa.c | 8 2 files changed, 7 insertions(+), 6 deletions(-) diff --git

[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 --- drivers/staging/vt6655/device_main.c | 90 drivers/staging/vt6655/rxtx.c| 6 ++- 2 files changed, 64 insertions(+), 32 deletions(-) diff --git

[PATCH 13/14] staging: vt6655: remove unused macro

2014-07-24 Thread Guillaume Clement
The MAC_MAX_CONTEXT_SIZE macro was not enclosed into parenthesis, which might have caused hard to debug errors, and caused a sparse warning. Since it is unused, we might as well remove it. Signed-off-by: Guillaume Clement --- drivers/staging/vt6655/mac.h | 1 - 1 file changed, 1 deletion(-) di

[PATCH 10/14] staging: vt6655: add missing whitespace

2014-07-24 Thread Guillaume Clement
Some whitespace were missing, causing checkpatch warnings and altering readability. Signed-off-by: Guillaume Clement --- drivers/staging/vt6655/device_main.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6

[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 --- drivers/staging/vt6655/device_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/dev

[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 --- 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 b/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 --- drivers/staging/vt6655/iocmd.h | 2 +- drivers/staging/vt66

[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 --- drivers/staging/vt6655/card.c| 6 -- drivers/staging/vt6655/device_main.c | 6 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/staging/vt

[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 --- drivers/staging/vt6655/card.c| 2 +- drivers/staging/vt6655/device_main.c | 53 - drivers/staging/vt6655/dpc.c | 13 --

[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 --- drivers/staging/vt6655/power.c | 3 +-- drivers/staging/vt6655/vntwifi.c | 3 +-- drivers/staging/vt6655/wmgr.c| 3 +-- 3 files changed, 3 insertions(+), 6

[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 --- drivers/staging/vt6655/card.c| 12 +++--- drivers/staging/vt6655/device_cfg.h | 2 +- drivers/staging/vt6655/device_main.c | 71 ++-- drivers/s

[PATCH] staging: rtl8188eu: Fix static symbol sparse warnings

2014-07-24 Thread Jeff Oczek
Fix sparse warnings: drivers/staging/rtl8188eu/core/rtw_cmd.c:52:5: warning: symbol '_rtw_enqueue_cmd' was not declared. Should it be static? drivers/staging/rtl8188eu/core/rtw_wlan_util.c:1225:5: warning: symbol 'wifirate2_ratetbl_inx' was not declared. Should it be static? drivers/staging/rtl

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Chen Gang
Excuse me, I did not see the patch details, but I guess it is about whether welcome a new member to upstream kernel. For me, I have 3 ideas about it if I am a newbie or a normal kernel developer: - Do I have enough basic skills for it? - Do I developed one or more another real world project

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 10:15 PM, Chen Gang wrote: > > Excuse me, I did not see the patch details, but I guess it is about > whether welcome a new member to upstream kernel. For me, I have 3 ideas > about it if I am a newbie or a normal kernel developer: > > - Do I have enough basic skills for it

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Chen Gang
On 07/25/2014 10:20 AM, Nick Krause wrote: > On Thu, Jul 24, 2014 at 10:15 PM, Chen Gang wrote: >> >> Excuse me, I did not see the patch details, but I guess it is about >> whether welcome a new member to upstream kernel. For me, I have 3 ideas >> about it if I am a newbie or a normal kernel dev

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 10:47 PM, Chen Gang wrote: > > > On 07/25/2014 10:20 AM, Nick Krause wrote: >> On Thu, Jul 24, 2014 at 10:15 PM, Chen Gang wrote: >>> >>> Excuse me, I did not see the patch details, but I guess it is about >>> whether welcome a new member to upstream kernel. For me, I have

[PATCH 2/2 v4] staging: unisys: move parahotplug to sysfs

2014-07-24 Thread Benjamin Romer
Move the /proc/visorchipset/parahotplug interface to sysfs under /sys/devices/platform/visorchipset/parahotplug/deviceenabled and /sys/devices/platform/visorchipset/parahotplug/devicedisabled. The parahotplug interface is used to deal with SR-IOV recovery situations on s-Par guest partitions. The

[PATCH 0/2 v4] staging: unisys: visorchipset proc fixes

2014-07-24 Thread Benjamin Romer
This patch set moves the parahotplug interface in the visorchipset module from procfs to sysfs, and removes the visorchipset/partition tree from proc. It also includes some code cleanup in the new sysfs handler functions. In version 4 of the set, the accidental inclusion of a change to the Makefil

[PATCH 1/2 v4] 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 --- v4: this patch accidentally picked up a Makefile change intended only for testing. The change was removed. v3: patch

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Chen Gang
On 07/25/2014 10:53 AM, Nick Krause wrote: > On Thu, Jul 24, 2014 at 10:47 PM, Chen Gang wrote: >> >> >> On 07/25/2014 10:20 AM, Nick Krause wrote: >>> On Thu, Jul 24, 2014 at 10:15 PM, Chen Gang >>> wrote: Excuse me, I did not see the patch details, but I guess it is about whet

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 11:09 PM, Chen Gang wrote: > > > On 07/25/2014 10:53 AM, Nick Krause wrote: >> On Thu, Jul 24, 2014 at 10:47 PM, Chen Gang wrote: >>> >>> >>> On 07/25/2014 10:20 AM, Nick Krause wrote: On Thu, Jul 24, 2014 at 10:15 PM, Chen Gang wrote: > > Excuse me, I

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Chen Gang
On 07/25/2014 11:13 AM, Nick Krause wrote: > On Thu, Jul 24, 2014 at 11:09 PM, Chen Gang wrote: >> >> >> On 07/25/2014 10:53 AM, Nick Krause wrote: >>> On Thu, Jul 24, 2014 at 10:47 PM, Chen Gang >>> wrote: On 07/25/2014 10:20 AM, Nick Krause wrote: > On Thu, Jul 24, 2014 at

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 11:21 PM, Chen Gang wrote: > > > On 07/25/2014 11:13 AM, Nick Krause wrote: >> On Thu, Jul 24, 2014 at 11:09 PM, Chen Gang wrote: >>> >>> >>> On 07/25/2014 10:53 AM, Nick Krause wrote: On Thu, Jul 24, 2014 at 10:47 PM, Chen Gang wrote: > > > On 07/2

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Chen Gang
On 07/25/2014 11:30 AM, Nick Krause wrote: > On Thu, Jul 24, 2014 at 11:21 PM, Chen Gang wrote: >> >> >> On 07/25/2014 11:13 AM, Nick Krause wrote: >>> On Thu, Jul 24, 2014 at 11:09 PM, Chen Gang >>> wrote: On 07/25/2014 10:53 AM, Nick Krause wrote: > On Thu, Jul 24, 2014 at

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Nick Krause
On Thu, Jul 24, 2014 at 11:34 PM, Chen Gang wrote: > > > On 07/25/2014 11:30 AM, Nick Krause wrote: >> On Thu, Jul 24, 2014 at 11:21 PM, Chen Gang wrote: >>> >>> >>> On 07/25/2014 11:13 AM, Nick Krause wrote: On Thu, Jul 24, 2014 at 11:09 PM, Chen Gang wrote: > > > On 07/2

Re: [PATCH] staging: Change kzalloc to kcalloc

2014-07-24 Thread Chen Gang
On 07/25/2014 11:39 AM, Nick Krause wrote: > On Thu, Jul 24, 2014 at 11:34 PM, Chen Gang wrote: >> >> >> On 07/25/2014 11:30 AM, Nick Krause wrote: >>> On Thu, Jul 24, 2014 at 11:21 PM, Chen Gang >>> wrote: On 07/25/2014 11:13 AM, Nick Krause wrote: > On Thu, Jul 24, 2014 at

<    1   2