[PATCH] Staging: gdm724x: gdm_lte.h: fixed coding style

Joe Perches joe at perches.com
Sun Mar 16 19:21:34 UTC 2014


On Mon, 2014-03-17 at 08:18 +1300, Daniel Ngu wrote:
> Missing space after return type

Not really.

> diff --git a/drivers/staging/gdm724x/gdm_lte.h b/drivers/staging/gdm724x/gdm_lte.h
[]
> @@ -56,7 +56,7 @@ struct phy_dev {
>  			int (*cb)(void *cb_data, void *data, int len,
>  				  int context),
>  			void *cb_data, int context);
> -	struct gdm_endian *(*get_endian)(void *priv_dev);
> +	struct gdm_endian * (*get_endian)(void *priv_dev);

That one was a defect in checkpatch that was
corrected in -next by:

commit 93ca9441419b0bfbf96243e01f39b5a80565215e
Author: Joe Perches <joe at perches.com>
Date:   Thu Mar 6 11:02:08 2014 +1100

    checkpatch: don't warn on some function pointer return styles
    
    Checks for some function pointer return styles are too strict.  Fix them.
    
    Multiple spaces after function pointer return types are allowed.
        int  (*foo)(int bar)
    
    Spaces after function pointer returns of pointer types are not required.
        int *(*foo)(int bar)




More information about the devel mailing list