Re: [PATCHv1 2/4] staging:lustre:lnet: lib-md.c delete space before '(' for code style

From: Greg KH
Date: Sat Aug 30 2014 - 15:21:04 EST


On Sat, Aug 30, 2014 at 02:56:09PM +0800, Janet Liu wrote:
> Silences the following checkpatch warning:
> WARNING: space prohibited between function name and open parenthesis '('
>
> Signed-off-by: Janet Liu <jianhua.ljh@xxxxxxxxx>
> ---
> drivers/staging/lustre/lnet/lnet/lib-md.c | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/staging/lustre/lnet/lnet/lib-md.c b/drivers/staging/lustre/lnet/lnet/lib-md.c
> index efd1b82..13f4332 100644
> --- a/drivers/staging/lustre/lnet/lnet/lib-md.c
> +++ b/drivers/staging/lustre/lnet/lnet/lib-md.c
> @@ -110,7 +110,7 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
>
> lmd->md_niov = niov = umd->length;
> memcpy(lmd->md_iov.iov, umd->start,
> - niov * sizeof (lmd->md_iov.iov[0]));
> + niov * sizeof(lmd->md_iov.iov[0]));
>
> for (i = 0; i < (int)niov; i++) {
> /* We take the base address on trust */
> @@ -131,7 +131,7 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
> } else if ((umd->options & LNET_MD_KIOV) != 0) {
> lmd->md_niov = niov = umd->length;
> memcpy(lmd->md_iov.kiov, umd->start,
> - niov * sizeof (lmd->md_iov.kiov[0]));
> + niov * sizeof(lmd->md_iov.kiov[0]));
>
> for (i = 0; i < (int)niov; i++) {
> /* We take the page pointer on trust */
> @@ -266,15 +266,15 @@ int
> LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
> lnet_unlink_t unlink, lnet_handle_md_t *handle)
> {
> - LIST_HEAD (matches);
> - LIST_HEAD (drops);
> + LIST_HEAD(matches);
> + LIST_HEAD(drops);

This really isn't a "function", but I'll take it anyway...

greg k-h
--
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/