The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: Punit Vara <punitvara@gmail.com>
Cc: hsweeten@visionengravers.com, gregkh@linuxfoundation.org,
	devel@driver.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: comedi: Coding style warning fix for block comments
Date: Mon, 21 Sep 2015 18:45:36 +0100	[thread overview]
Message-ID: <56004240.80008@mev.co.uk> (raw)
In-Reply-To: <1442739021-3203-1-git-send-email-punitvara@gmail.com>

On 20/09/15 09:50, Punit Vara wrote:
> This patch is to comedidev.h file that fixes up following warnings
> reported by checkpatch.pl :
>
> -Block comments use a trailing */ on a separate line
> -Block comments use * on subsequent lines
>
> Signed-off-by: Punit Vara <punitvara@gmail.com>
> ---
>   drivers/staging/comedi/comedidev.h | 62 ++++++++++++++++++++------------------
>   1 file changed, 32 insertions(+), 30 deletions(-)
>
> diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
> index 28a5d3a..5b0ab03 100644
> --- a/drivers/staging/comedi/comedidev.h
> +++ b/drivers/staging/comedi/comedidev.h
> @@ -1,20 +1,20 @@
>   /*
> -    include/linux/comedidev.h
> -    header file for kernel-only structures, variables, and constants
> -
> -    COMEDI - Linux Control and Measurement Device Interface
> -    Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org>
> -
> -    This program is free software; you can redistribute it and/or modify
> -    it under the terms of the GNU General Public License as published by
> -    the Free Software Foundation; either version 2 of the License, or
> -    (at your option) any later version.
> -
> -    This program is distributed in the hope that it will be useful,
> -    but WITHOUT ANY WARRANTY; without even the implied warranty of
> -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> -    GNU General Public License for more details.
> -*/
> + * include/linux/comedidev.h
> + * header file for kernel-only structures, variables, and constants
> + *
> + * COMEDI - Linux Control and Measurement Device Interface
> + * Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + */
>
>   #ifndef _COMEDIDEV_H
>   #define _COMEDIDEV_H
> @@ -105,7 +105,7 @@ struct comedi_buf_map {
>   	struct kref refcount;
>   };
>
> -/**
> +/*

The '/**' here and on most of the other comments is deliberate.  It is 
used to mark things up with "kernel-doc" - see 
"Documentation/kernel-doc-nano-HOWTO.txt".

>    * struct comedi_async - control data for asynchronous comedi commands
>    * @prealloc_buf:	preallocated buffer
>    * @prealloc_bufsz:	buffer size (in bytes)
> @@ -215,7 +215,7 @@ struct comedi_async {
>   		       unsigned int x);
>   };
>
> -/**
> +/*
>    * comedi_async callback "events"
>    * @COMEDI_CB_EOS:		end-of-scan
>    * @COMEDI_CB_EOA:		end-of-acquisition/output

Admittedly, this wasn't a valid kernel-doc comment, but I'm planning to 
fix that shortly.

Please don't bother fixing this patch as I'm about to send a larger 
series of patches to comedidev.h to add more documentation and I will 
fix the incorrect block comments in that series.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-

  reply	other threads:[~2015-09-21 17:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-20  8:50 [PATCH] Staging: comedi: Coding style warning fix for block comments Punit Vara
2015-09-21 17:45 ` Ian Abbott [this message]
2015-09-21 17:57   ` punit vara
  -- strict thread matches above, loose matches on Subject: below --
2015-11-22 19:19 [PATCH] staging: " Jitendra Kumar Khasdev
2015-11-22 19:24 ` Andy Shevchenko
2015-11-23 10:27   ` Ian Abbott
2015-11-23 10:29 ` Ian Abbott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56004240.80008@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=devel@driver.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hsweeten@visionengravers.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=punitvara@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox