[PATCH] Staging: rtl8712: Fixed 'tabstop' coding style warnings.

2016-11-17 Thread Yamanappagouda Patil
Fixed checkpatch warning "Statements should start on a tabstop" in rtl8712 module. Signed-off-by: Yamanappagouda Patil --- drivers/staging/rtl8712/rtl8712_led.c | 24 drivers/staging/rtl8712/rtl871x_recv.c | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) dif

Re: [PATCH v3 1/2] staging: slicoss: fix different address space warnings: 32 bits

2016-11-17 Thread Dan Carpenter
Hm... I seem to duplicate the Sparse warnings at all. That's weird. Anyway as far as I can tell the warnings are false positives... Can't you just remove the __iomem tag? Have you tested this change? regards, dan carpenter ___ devel mailing list de

Re: [PATCH v3 1/2] staging: slicoss: fix different address space warnings: 32 bits

2016-11-17 Thread Sergio Paracuellos
On Thu, Nov 17, 2016 at 11:51 AM, Dan Carpenter wrote: > Hm... I seem to duplicate the Sparse warnings at all. That's weird. > With this patch applied, sparse warnings dissapear for me... That's weird. > Anyway as far as I can tell the warnings are false positives... Can't > you just remove t

Re: [PATCH v3 1/2] staging: slicoss: fix different address space warnings: 32 bits

2016-11-17 Thread Dan Carpenter
On Thu, Nov 17, 2016 at 12:22:00PM +0100, Sergio Paracuellos wrote: > On Thu, Nov 17, 2016 at 11:51 AM, Dan Carpenter > wrote: > > Hm... I seem to duplicate the Sparse warnings at all. That's weird. > > > > With this patch applied, sparse warnings dissapear for me... That's weird. > I understa

Re: [PATCH v3 1/2] staging: slicoss: fix different address space warnings: 32 bits

2016-11-17 Thread Sergio Paracuellos
On Thu, Nov 17, 2016 at 12:33 PM, Dan Carpenter wrote: > Give it a shot and see if the warnings go away. I don't think the tag > is correct. Just removing __iomem tag in shmem_data field of slic_shmemory struct makes sparse happy. No warnings around. Should I send a v4 patch with the tag remove

[PATCH] rtlwifi: rtl8723be: Fix bug in ant_sel code from commit c18d8f509571

2016-11-17 Thread Larry Finger
From: Ping-Ke Shih In commit c18d8f509571 ("rtlwifi: rtl8723be: Add antenna select module parameter"), wifi was fixed for those laptops that have only a single antenna but have an incorrectly coded EEPROM. This error causes the driver to select the wrong antenna. In that commit, one necessary cha

Re: [PATCH] rtlwifi: rtl8723be: Fix bug in ant_sel code from commit c18d8f509571

2016-11-17 Thread Larry Finger
On 11/17/2016 12:05 PM, Larry Finger wrote: From: Ping-Ke Shih In commit c18d8f509571 ("rtlwifi: rtl8723be: Add antenna select module parameter"), wifi was fixed for those laptops that have only a single antenna but have an incorrectly coded EEPROM. This error causes the driver to select the wr

Re: [PATCH] rtlwifi: rtl8723be: Fix bug in ant_sel code from commit c18d8f509571

2016-11-17 Thread kbuild test robot
Hi Ping-Ke, [auto build test ERROR on wireless-drivers-next/master] [also build test ERROR on v4.9-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Larry-Finger/rtlwifi-rtl8723be-Fix-bug-in-a

[PATCH 00/19] LNet/libcfs checkpatch and style cleanups

2016-11-17 Thread James Simmons
Sweep of the LNet/libcfs layer to cleanup various checkpatch issues. Also more cleanups to match the kernel coding style. James Simmons (19): staging: lustre: lnet: don't use bare unsigned staging: lustre: lnet: resolve trailing */ checkpatch errors staging: lustre: libcfs: use static const

[PATCH 06/19] staging: lustre: lnet: fix misspelled word destroy

2016-11-17 Thread James Simmons
Fix misspelling of destroy in LNet core. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/api-ni.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/api-ni.c b/drivers/staging/lustre/lnet/lnet/api-ni.c index 4daf828

[PATCH 02/19] staging: lustre: lnet: resolve trailing */ errors

2016-11-17 Thread James Simmons
This patch resolves the checkpatch error: Block comments use a trailing */ on a separate line for the LNet/libcfs layer Signed-off-by: James Simmons --- .../staging/lustre/lnet/klnds/socklnd/socklnd.h| 128 +--- drivers/staging/lustre/lnet/libcfs/hash.c |2 +-

[PATCH 13/19] staging: lustre: libcfs: white space cleanup

2016-11-17 Thread James Simmons
Remove white space present for variable declarations or initialization. Cleanup structs was strange alignments due to white spacing. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/debug.c | 16 ++-- drivers/staging/lustre/lnet/libcfs/hash.c | 24 +++---

[PATCH 10/19] staging: lustre: lnet: replace uninitialized_var

2016-11-17 Thread James Simmons
Checkpatch for some reason doesn't like the way libcfs_str2net_internal. Lets just replace it with nf being set to NULL instead Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/nidstrings.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging

[PATCH 16/19] staging: lustre: libcfs: use pr_* instead of printk

2016-11-17 Thread James Simmons
Checkpatch recommended that we use pr_*() instead of printk directly. Signed-off-by: James Simmons --- .../lustre/lnet/libcfs/linux/linux-tracefile.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-tracefile.c

[PATCH 07/19] staging: lustre: lnet: remove unused lib_me_dump

2016-11-17 Thread James Simmons
Remove unused lib_me_dump. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/lib-me.c | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-me.c b/drivers/staging/lustre/lnet/lnet/lib-me.c index b430046..e

[PATCH 01/19] staging: lustre: lnet: don't use bare unsigned

2016-11-17 Thread James Simmons
Turn all bare unsigned to unsigned int that were detected by checkpatch in the LNet/libcfs layer. Signed-off-by: James Simmons --- .../staging/lustre/lnet/klnds/socklnd/socklnd.h|4 +- drivers/staging/lustre/lnet/libcfs/debug.c |2 +- drivers/staging/lustre/lnet/libcfs/hash.c

[PATCH 08/19] staging: lustre: lnet: missing blank line after declaration

2016-11-17 Thread James Simmons
Add in missing blank line in lnet_copy_iov2iter() after variable declarations. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/lib-move.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/staging/lust

[PATCH 14/19] staging: lustre: libcfs: fix misspelling of descriptor

2016-11-17 Thread James Simmons
Fix typo for correct spelling. Signed-off-by: James Simmons --- .../lustre/lnet/libcfs/linux/linux-crypto.c|2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c b/drivers/staging/lustre/lnet/libcfs/linux/linux-c

[PATCH 17/19] staging: lustre: libcfs: remove use of __u* types

2016-11-17 Thread James Simmons
The __[u|s]* types are for UAPI headers or user space. They shouldn't be used in core kernel code. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/fail.c |4 ++-- drivers/staging/lustre/lnet/libcfs/hash.c | 16 drivers/staging/lustre/l

[PATCH 05/19] staging: lustre: libcfs: fix aligment issue

2016-11-17 Thread James Simmons
Make alignment match open parenthesis for parameters to wait_event_interruptible_exclusive() call. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/workitem.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/workitem.

[PATCH 03/19] staging: lustre: libcfs: use static const char const * for a suffixes array

2016-11-17 Thread James Simmons
Change the static const array libcfs_debug_subsystems to use static const char const * as pointed out by checkpatch. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/debug.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/ln

[PATCH 18/19] staging: lustre: lnet: use BIT macro in LNet selftest

2016-11-17 Thread James Simmons
Some of the defines for lnet selftest can use the BIT macros. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/timer.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lnet/selftest/timer.c b/drivers/staging/lustre/lnet/self

[PATCH 19/19] staging: lustre: lnet: cleanup some of the > 80 line issues

2016-11-17 Thread James Simmons
Cleanup some of the checkpatch over 80 character lines reported. Signed-off-by: James Simmons --- .../staging/lustre/lnet/klnds/socklnd/socklnd.c| 31 ++- .../staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 40 +--- .../lustre/lnet/klnds/socklnd/socklnd_lib.c

[PATCH 15/19] staging: lustre: libcfs: Make char * array envp static constant

2016-11-17 Thread James Simmons
The envp char array can be made static constant. Signed-off-by: James Simmons --- .../staging/lustre/lnet/libcfs/linux/linux-debug.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/linux/linux-debug.c b/drivers/staging/lus

[PATCH 04/19] staging: lustre: libcfs: remove explicit test of NULL variable

2016-11-17 Thread James Simmons
Remove != NULL which is not needed to test key existence. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/libcfs_lock.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/lustre/lnet/libcfs/libcfs_lock.c b/drivers/staging/lustre/lnet/li

[PATCH 12/19] staging: lustre: libcfs: remove == 0 testing

2016-11-17 Thread James Simmons
Testing == 0 is not kernel style so remove this type of testing from libcfs. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/debug.c |8 +++--- drivers/staging/lustre/lnet/libcfs/hash.c | 27 +-- drivers/staging/lustre/lnet/libcfs/libcfs

[PATCH 09/19] staging: lustre: lnet: fill in real lnet_md_t

2016-11-17 Thread James Simmons
While checkpatch reported an alignment issue its just ugly to fill in a data structure being passed to a function. Instead fill in a lnet_md_t on the stack and pass that to LNetMDBind. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/router.c | 17 + 1 files ch

[PATCH 11/19] staging: lustre: libcfs: remove != 0 testing

2016-11-17 Thread James Simmons
Testing != 0 is not kernel style so remove this type of testing from libcfs. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/debug.c |4 +- drivers/staging/lustre/lnet/libcfs/hash.c | 24 ++-- drivers/staging/lustre/lnet/libcfs/libcfs_st

[PATCH v2] staging: lustre: llog: fix wrong offset in llog_process_thread()

2016-11-17 Thread James Simmons
From: Mikhail Pershin - llh_cat_idx may become bigger than llog bitmap size in llog_cat_set_first_idx() function - it is wrong to use previous cur_offset as new buffer offset, new offset should be calculated from value returned by llog_next_block(). - optimize llog_skip_over() to find llog

Re: [PATCH v2] staging: lustre: llog: fix wrong offset in llog_process_thread()

2016-11-17 Thread kbuild test robot
Hi Mikhail, [auto build test WARNING on staging/staging-testing] [also build test WARNING on next-20161117] [cannot apply to v4.9-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/James

[PATCH v3] staging: lustre: llog: fix wrong offset in llog_process_thread()

2016-11-17 Thread James Simmons
From: Mikhail Pershin - llh_cat_idx may become bigger than llog bitmap size in llog_cat_set_first_idx() function - it is wrong to use previous cur_offset as new buffer offset, new offset should be calculated from value returned by llog_next_block(). - optimize llog_skip_over() to find llog

[PATCH v2 0/7] staging: xgifb: vb_setmode.c checkpatch modifications

2016-11-17 Thread Walt Feasel
Make Linux kernel coding style modifications for vb_setmode.c to include: CHECK: spaces preferred around that CHECK: Alignment should match open parenthesis CHECK: No space is necessary after a cast WARNING: braces {} are not necessary for single statement blocks CHECK: Logical continuations shoul

[PATCH v2 1/7] staging: xgifb: vb_setmode.c Comment Spelling correction

2016-11-17 Thread Walt Feasel
Make spelling correction for 'vertical'. Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/vb_setmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/

[PATCH v2 3/7] staging: xgifb: vb_setmode.c Space around operator

2016-11-17 Thread Walt Feasel
Make suggested checkpatch modificationfor CHECK: spaces preferred around that '+' Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/vb_setmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/x

[PATCH v2 4/7] staging: xgifb: vb_setmode.c Braces single statement blocks

2016-11-17 Thread Walt Feasel
Make suggested checkpatch modificationfor WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/vb_setmode.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

[PATCH v2 5/7] staging: xgifb: vb_setmode.c Space after cast

2016-11-17 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: No space is necessary after a cast Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/vb_setmode.c | 139 ++--- 1 file changed, 69 insertions(+), 70

[PATCH v2 6/7] staging: xgifb: vb_setmode.c Logical continuation

2016-11-17 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: Logical continuations should be on the previous line Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/vb_setmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v2 2/7] staging: xgifb: vb_setmode.c Comment style modifications

2016-11-17 Thread Walt Feasel
Make comment style modifications. Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/vb_setmode.c | 234 ++--- 1 file changed, 117 insertions(+), 117 deletions(-) diff --git a/drivers/staging/xgifb/

[PATCH v2 7/7] staging: xgifb: vb_setmode.c Align match parenthesis

2016-11-17 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/vb_setmode.c | 299 + 1 file changed, 141 insertions(+

[PATCH v2] staging: xgifb: vb_util.h Space after cast

2016-11-17 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: No space is necessary after a cast Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/vb_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/stagi

[PATCH v2] staging: xgifb: XGI_main.h Align data columns

2016-11-17 Thread Walt Feasel
Make modifications to data column alignment Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/xgifb/XGI_main.h | 54 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/drivers/stagin

Re: [PATCH v3 1/2] staging: slicoss: fix different address space warnings: 32 bits

2016-11-17 Thread Greg KH
On Thu, Nov 17, 2016 at 12:46:12PM +0100, Sergio Paracuellos wrote: > On Thu, Nov 17, 2016 at 12:33 PM, Dan Carpenter > wrote: > > Give it a shot and see if the warnings go away. I don't think the tag > > is correct. > > Just removing __iomem tag in shmem_data field of slic_shmemory struct > mak

Re: [PATCH v3] staging: lustre: llog: fix wrong offset in llog_process_thread()

2016-11-17 Thread Greg Kroah-Hartman
On Thu, Nov 17, 2016 at 06:29:08PM -0500, James Simmons wrote: > From: Mikhail Pershin > > - llh_cat_idx may become bigger than llog bitmap size in > llog_cat_set_first_idx() function > - it is wrong to use previous cur_offset as new buffer offset, > new offset should be calculated from value