public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Gustavo Silva <silvagustavosilva@gmail.com>
Cc: gregkh@suse.de, shane.warden@onyxneon.com,
	randy.dunlap@oracle.com, mithlesh@linsyssoft.com,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	Gustavo Silva <silvagustavo@users.sourceforge.net>
Subject: Re: Staging: comedi: fix macros do - while loop and spaces before tabs issues in comedidev.h
Date: Tue, 27 Apr 2010 15:26:03 -0700	[thread overview]
Message-ID: <20100427222603.GC21816@kroah.com> (raw)
In-Reply-To: <1271139181-10146-1-git-send-email-silvagustavo@users.sourceforge.net>

On Tue, Apr 13, 2010 at 01:13:01AM -0500, Gustavo Silva wrote:
> This is a patch to the comedidev.h file that fixes up two macros do - while
> loop and a space before tabs warnings found by the checkpatch.pl tool.
> 
> Signed-off-by: Gustavo Silva <silvagustavo@users.sourceforge.net>
> 
> --- a/drivers/staging/comedi/comedidev.h
> +++ b/drivers/staging/comedi/comedidev.h
> @@ -57,14 +57,15 @@
>  	static int __init x ## _init_module(void)			\
>  		{return comedi_driver_register(&(x)); }			\
>  	static void __exit x ## _cleanup_module(void)			\
> -		{comedi_driver_unregister(&(x)); } 			\
> +		{comedi_driver_unregister(&(x)); }			\
>  	module_init(x ## _init_module);					\
>  	module_exit(x ## _cleanup_module);
>  
> -#define COMEDI_MODULE_MACROS						\
> -	MODULE_AUTHOR("Comedi http://www.comedi.org");		\
> +#define COMEDI_MODULE_MACROS	do {		                        \
> +	MODULE_AUTHOR("Comedi http://www.comedi.org");		        \
>  	MODULE_DESCRIPTION("Comedi low-level driver");			\
> -	MODULE_LICENSE("GPL");
> +	MODULE_LICENSE("GPL");                                          \
> +} while (0)
>  
>  #define COMEDI_INITCLEANUP(x)						\
>  	COMEDI_MODULE_MACROS		\
> @@ -402,7 +403,7 @@ int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s,
>  #define RANGE(a, b)		{(a)*1e6, (b)*1e6, 0}
>  #define RANGE_ext(a, b)		{(a)*1e6, (b)*1e6, RF_EXTERNAL}
>  #define RANGE_mA(a, b)		{(a)*1e6, (b)*1e6, UNIT_mA}
> -#define RANGE_unitless(a, b)	{(a)*1e6, (b)*1e6, 0}	/* XXX */
> +#define RANGE_unitless(a, b)	do {(a)*1e6, (b)*1e6, 0} while (0) /* XXX */

This is not correct, you need to at least build your changes after
making them :(

Care to resend this, without this one change?

thanks,

greg k-h

      reply	other threads:[~2010-04-27 22:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13  6:13 [PATCH] Staging: comedi: fix macros do - while loop and spaces before tabs issues in comedidev.h Gustavo Silva
2010-04-27 22:26 ` Greg KH [this message]

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=20100427222603.GC21816@kroah.com \
    --to=greg@kroah.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mithlesh@linsyssoft.com \
    --cc=randy.dunlap@oracle.com \
    --cc=shane.warden@onyxneon.com \
    --cc=silvagustavo@users.sourceforge.net \
    --cc=silvagustavosilva@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