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

From: Joe Perches
Date: Sun Mar 16 2014 - 15:21:47 EST


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@xxxxxxxxxxx>
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)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/