On Fri, Jun 19, 2015 at 12:48:19PM -0700, Isaac Assegai wrote:
> Place braces on previous lines in ddk750_sii164.c to
> rectify the following checkpatch errors:
> ERROR: that open brace { should be on the previous line
>
> Signed-off-by: Isaac Assegai
> ---
> drivers/staging/sm750fb/ddk750_sii16
On Fri, Jun 19, 2015 at 10:50:57PM -0700, Juston Li wrote:
> Replace spaces with tabs for indentation to fix the checkpatch.pl warning
> 'WARNING: please, no spaces at the start of a line'
>
> checkpatch doesn't catch comments indented by spaces but I fixed comments
> adjacent to warnings as well
On Sat, Jun 20, 2015 at 12:43 AM, Sudip Mukherjee
wrote:
> On Fri, Jun 19, 2015 at 10:50:57PM -0700, Juston Li wrote:
>> Replace spaces with tabs for indentation to fix the checkpatch.pl warning
>> 'WARNING: please, no spaces at the start of a line'
>>
>> checkpatch doesn't catch comments indented
This patch set includes 4 patches fixing indentation, spacing, brace placement
and missing blank lines from checkpatch.pl warnings/errors in staging/sm750fb.
Regards
Juston
-
drivers/staging/sm750fb/ddk750_chip.c| 15 +--
drivers/staging/sm750fb/ddk750_chip.h| 12 +-
driver
This patch fixes the following sparse warning:
drivers/staging/comedi/drivers/ni_mio_common.c:573:26: warning: shift
too big (4294967295) for type int
Signed-off-by: Geliang Tang
---
drivers/staging/comedi/drivers/ni_mio_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Fix brace placement errors and warnings caught by checkpatch.pl
ERROR: that open brace { should be on the previous line
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Juston Li
---
drivers/staging/sm750fb/ddk750_chip.h| 12 ++
drivers/staging/sm750fb/ddk7
This patch fixes the following sparse warning:
drivers/staging/comedi/comedi_compat32.c:205:16: warning: cast removes
address space of expression
Signed-off-by: Geliang Tang
---
drivers/staging/comedi/comedi_compat32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/
Fix spacing errors and warnings caught by checkpatch.pl
ERROR: space prohibited after that open parenthesis '('
ERROR: space required before the open brace '{'
ERROR: need consistent spacing around
ERROR: trailing whitespace
WARNING: unnecessary whitespace before a quoted newline
Signed-off-by: Ju
fixes checkpatch.pl WARNING: Missing a blank line after declarations
Signed-off-by: Juston Li
---
drivers/staging/sm750fb/ddk750_chip.c| 1 +
drivers/staging/sm750fb/ddk750_display.c | 2 ++
drivers/staging/sm750fb/ddk750_dvi.c | 1 +
drivers/staging/sm750fb/ddk750_mode.c| 3 +++
dri
Replace spaces with tabs for indentation to fix the checkpatch.pl error
ERROR: code indent should use tabs where possible
WARNING: please, no spaces at the start of a line
Signed-off-by: Juston Li
---
drivers/staging/sm750fb/ddk750_display.c | 100
drivers/staging/sm750fb/ddk750_display
Fix code indentation error by replacing tab in place of spaces.
Signed-off-by: Sunil Shahu
---
drivers/staging/media/lirc/lirc_sasem.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/lirc/lirc_sasem.c
b/drivers/staging/media/lirc/lirc_sasem.c
index 8
On Sat, Jun 20, 2015 at 04:49:13PM +, Geliang Tang wrote:
> This patch fixes the following sparse warning:
>
> drivers/staging/comedi/comedi_compat32.c:205:16: warning: cast removes
> address space of expression
>
> Signed-off-by: Geliang Tang
> ---
> drivers/staging/comedi/comedi_compat32.
On Sat, Jun 20, 2015 at 01:48:32AM -0700, Juston Li wrote:
> Replace spaces with tabs for indentation to fix the checkpatch.pl error
> ERROR: code indent should use tabs where possible
> WARNING: please, no spaces at the start of a line
>
> Signed-off-by: Juston Li
> ---
> diff --git a/drivers/s
On Sat, Jun 20, 2015 at 01:48:33AM -0700, Juston Li wrote:
> Fix spacing errors and warnings caught by checkpatch.pl
> ERROR: space prohibited after that open parenthesis '('
> ERROR: space required before the open brace '{'
> ERROR: need consistent spacing around
> ERROR: trailing whitespace
> WAR
On Fri, Jun 19, 2015 at 01:29:13PM +0300, Dan Carpenter wrote:
> On Sat, Jun 13, 2015 at 02:16:18PM +0530, Sudip Mukherjee wrote:
> >
> > can you please have a look (when you are free) at it to see if anything
> > else needs to be done.
>
> Remove any unused macros.
I will check.
> Cleanup indenti
On 19/06/15 06:59, Abdul, Hussain (H.) wrote:
This patch simplify a trivial if-return sequence. Possibly combine with
a preceding function call.
Abdul Hussain (6):
staging: comedi: dmm32at: Simplify a trivial if-return sequence
staging: comedi: fl512: Simplify a trivial if-return seq
On 20/06/15 17:47, Geliang Tang wrote:
This patch fixes the following sparse warning:
drivers/staging/comedi/drivers/ni_mio_common.c:573:26: warning: shift
too big (4294967295) for type int
Signed-off-by: Geliang Tang
---
drivers/staging/comedi/drivers/ni_mio_common.c | 2 +-
1 file changed
From: Joglekar Tejas
This patch removes the trailing whitespace error given
by checkpatch.pl
Signed-off-by: Joglekar Tejas
---
drivers/staging/rtl8723au/hal/odm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723au/hal/odm.c
b/drivers/staging/rtl8723a
On Sat, Jun 20, 2015 at 04:47:33PM +, Geliang Tang wrote:
> This patch fixes the following sparse warning:
>
> drivers/staging/comedi/drivers/ni_mio_common.c:573:26: warning: shift
> too big (4294967295) for type int
>
> Signed-off-by: Geliang Tang
> ---
> drivers/staging/comedi/drivers/ni_
This patch fixes the following sparse warning:
drivers/staging/comedi/comedi_compat32.c:205:16: warning: cast removes
address space of expression
Signed-off-by: Geliang Tang
---
Changes in v2:
- compat_ptr() is substituted by 'unsigned long'.
---
drivers/staging/comedi/comedi_compat32.c | 2 +
On Sat, Jun 20, 2015 at 04:08:19PM +0530, Sudip Mukherjee wrote:
> compat_ptr is already a typecast.
> static inline void __user *compat_ptr(compat_uptr_t uptr)
> {
> return (void __user *)(unsigned long)uptr;
> }
>
> so you are adding another typecast to an already exitsing typecast. :(
>
My apologies, I thought I removed all of those. Fixed for real this
time, resending.
Regards
Juston
On Sat, Jun 20, 2015 at 3:45 AM, Sudip Mukherjee
wrote:
> On Sat, Jun 20, 2015 at 01:48:32AM -0700, Juston Li wrote:
>> Replace spaces with tabs for indentation to fix the checkpatch.pl error
>> E
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
Use !x to check for kzalloc failure, as is more normal in the kernel.
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
!x is more normal for kzalloc failure in the kernel.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x;
statement S1, S2;
@@
x = kzalloc(...);
if (
- x == NULL
+ !x
) S1 else S2
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustr
Kernel coding style dictates that pointer declarations
have the asterisk next to the data name.
Signed-off-by: Joseph Kogut
---
drivers/staging/i2o/iop.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/i2o/iop.c b/drivers/staging/i2o/iop.c
index 23bdbe4.
Remove initialization of a variable that is immediately reassigned.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustre/l
Remove initialization of a variable that is immediately reassigned.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustre/l
These patches remove initializations of variables that are immediately
reassigned.
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Remove initialization of a variable that is immediately reassigned.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustre/l
Remove initialization of a variable that is immediately reassigned.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustre/l
Remove initialization of a variable that is immediately reassigned.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
//
Signed-off-by: Julia Lawall
---
drivers/staging/lustre/l
fixes checkpatch.pl WARNING: quoted string split across lines
+MODULE_AUTHOR("David A. Schleef , "
+ "Frank Mori Hess ");
total: 0 errors, 1 warnings, 114 lines checked
Modules with multiple authors have a MODULE_AUTHOR line for each one.
Signed-off-by: Luis de Bethencourt
---
dri
Fix checkpatch.pl "space required before the open parenthesis '('" errors
Signed-off-by: Greg Donald
---
.../staging/rtl8192u/ieee80211/rtl819x_HTProc.c| 97 ++
1 file changed, 44 insertions(+), 53 deletions(-)
diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTPr
Building with the attached random configuration file,
drivers/built-in.o: In function `board_staging_register_clock':
/home/jim/linux/drivers/staging/board/board.c:131: undefined reference
to `clk_add_alias'
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.1.0-rc8 Kernel Configuration
On 20 June 2015 at 21:07, Julia Lawall wrote:
> Remove initialization of a variable that is immediately reassigned.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> //
> @@
> type T;
> identifier x;
> constant C;
> expression e;
> @@
>
> T x
> - = C
On Sat, 20 Jun 2015, Joachim Eastwood wrote:
> On 20 June 2015 at 21:07, Julia Lawall wrote:
> > Remove initialization of a variable that is immediately reassigned.
> >
> > The semantic patch that makes this change is as follows:
> > (http://coccinelle.lip6.fr/)
> >
> > //
> > @@
> > type T;
> >
Use eth_zero_addr to assign the zero address to the given address
array instead of memset when second argument is address of zero.
The Coccinelle semantic patch that makes this change is as follows:
//
@eth_zero_addr@
expression e;
@@
-memset(e,0x00,ETH_ALEN);
+eth_zero_addr(e);
//
Signed-off
On Sat, Jun 20, 2015 at 5:40 PM, Jim Davis wrote:
> Building with the attached random configuration file,
>
> drivers/built-in.o: In function `board_staging_register_clock':
> /home/jim/linux/drivers/staging/board/board.c:131: undefined reference
> to `clk_add_alias'
Should be fixed once this get
49 matches
Mail list logo