[OPW,kernel,v2] drivers/staging/lustre/lustre/osc/osc_io.c : remove space prohibited warning
diff mbox

Message ID 20131023204011.GA3807@himangi-Inspiron-N5110gmail.com
State Accepted
Headers show

Commit Message

HIMANGI SARAOGI Oct. 23, 2013, 8:40 p.m. UTC
There was a warning on running checkpatch.pl on the file
drivers/staging/lustre/lustre/osc/osc_io.c which stated:
WARNING: space prohibited between function name and open parenthesis '('
108: FILE: staging/lustre/lustre/osc/osc_io.c:108:
+	LIST_HEAD     (list);

total: 0 errors, 1 warnings, 828 lines checked

To get rid of the warning the extra spaces were eliminated.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
---
 drivers/staging/lustre/lustre/osc/osc_io.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rusty Russell Oct. 24, 2013, 2:48 a.m. UTC | #1
Himangi Saraogi <himangi774@gmail.com> writes:
> There was a warning on running checkpatch.pl on the file
> drivers/staging/lustre/lustre/osc/osc_io.c which stated:
> WARNING: space prohibited between function name and open parenthesis '('
> 108: FILE: staging/lustre/lustre/osc/osc_io.c:108:
> +	LIST_HEAD     (list);
>
> total: 0 errors, 1 warnings, 828 lines checked
>
> To get rid of the warning the extra spaces were eliminated.
>
> Signed-off-by: Himangi Saraogi <himangi774@gmail.com>

Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>

Cheers,
Rusty.

> ---
>  drivers/staging/lustre/lustre/osc/osc_io.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lustre/osc/osc_io.c b/drivers/staging/lustre/lustre/osc/osc_io.c
> index 3aeaf84..681d60a 100644
> --- a/drivers/staging/lustre/lustre/osc/osc_io.c
> +++ b/drivers/staging/lustre/lustre/osc/osc_io.c
> @@ -105,7 +105,7 @@ static int osc_io_submit(const struct lu_env *env,
>  	struct osc_object *osc  = NULL; /* to keep gcc happy */
>  	struct osc_page   *opg;
>  	struct cl_io      *io;
> -	LIST_HEAD     (list);
> +	LIST_HEAD(list);
>  
>  	struct cl_page_list *qin      = &queue->c2_qin;
>  	struct cl_page_list *qout     = &queue->c2_qout;
> -- 
> 1.7.9.5
>
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Patch
diff mbox

diff --git a/drivers/staging/lustre/lustre/osc/osc_io.c b/drivers/staging/lustre/lustre/osc/osc_io.c
index 3aeaf84..681d60a 100644
--- a/drivers/staging/lustre/lustre/osc/osc_io.c
+++ b/drivers/staging/lustre/lustre/osc/osc_io.c
@@ -105,7 +105,7 @@  static int osc_io_submit(const struct lu_env *env,
 	struct osc_object *osc  = NULL; /* to keep gcc happy */
 	struct osc_page   *opg;
 	struct cl_io      *io;
-	LIST_HEAD     (list);
+	LIST_HEAD(list);
 
 	struct cl_page_list *qin      = &queue->c2_qin;
 	struct cl_page_list *qout     = &queue->c2_qout;