[PATCH 3/7] staging: lustre: lov: expand the GOTO macro

Greg Kroah-Hartman gregkh at linuxfoundation.org
Mon Sep 8 19:50:33 UTC 2014


On Sun, Sep 07, 2014 at 06:18:31PM +0200, Julia Lawall wrote:
> From: Julia Lawall <Julia.Lawall at lip6.fr>
> 
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
> 
> // <smpl>
> @@
> identifier lbl;
> identifier rc;
> constant c;
> @@
> 
> - GOTO(lbl,\(rc\|c\));
> + goto lbl;
> 
> @@
> identifier lbl;
> expression rc;
> @@
> 
> - GOTO(lbl,rc);
> + rc;
> + goto lbl;
> // </smpl>
> 
> Signed-off-by: Julia Lawall <Julia.Lawall at lip6.fr>
> 
> ---
>  drivers/staging/lustre/lustre/lov/lov_obd.c     |  154 ++++++++++------
>  drivers/staging/lustre/lustre/lov/lov_object.c  |   13 -
>  drivers/staging/lustre/lustre/lov/lov_pack.c    |   23 +-
>  drivers/staging/lustre/lustre/lov/lov_page.c    |   12 -
>  drivers/staging/lustre/lustre/lov/lov_pool.c    |   38 ++--
>  drivers/staging/lustre/lustre/lov/lov_request.c |  226 +++++++++++++++---------
>  6 files changed, 304 insertions(+), 162 deletions(-)

There were some patches ahead of yours in this area that prevented this
patch from applying.

Can you refresh this against my latest tree (staging-next branch of
staging.git on git.kernel.org) and resend?

thanks,

greg k-h


More information about the devel mailing list