All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Vaishali Thakkar <vthakkar1994@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v4 1/2] Staging: speakup: Add helper macro for spk_synth boilerplate
Date: Tue, 17 Mar 2015 14:10:20 +0100	[thread overview]
Message-ID: <20150317131020.GA22383@kroah.com> (raw)
In-Reply-To: <2905c4008dfeb64eaff938812d63202c1828f041.1426586935.git.vthakkar1994@gmail.com>

On Tue, Mar 17, 2015 at 04:06:23PM +0530, Vaishali Thakkar wrote:
> For simple modules that contain a single spk_synth without
> any additional setup code then ends up being a block of
> duplicated boilerplate. This patch adds a new macro,
> module_spk_synth(), which replaces the
> module_init()/module_exit() registrations with template
> functions.
> 
> Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
> ---
> Changes since v1:
>         - Use module_driver macro in definition of helper macro
> Changes since v2:
>         - Correct unnecessory line wrapping of module_driver
>         - Split patch in to 2 patches
> Changes since v3:
> 	- Put blank line after module_spk_synth
> 
>  drivers/staging/speakup/spk_types.h | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/drivers/staging/speakup/spk_types.h b/drivers/staging/speakup/spk_types.h
> index 8c565c9..38e0a3c 100644
> --- a/drivers/staging/speakup/spk_types.h
> +++ b/drivers/staging/speakup/spk_types.h
> @@ -16,6 +16,7 @@
>  #include <linux/spinlock.h>
>  #include <linux/mutex.h>
>  #include <linux/io.h>		/* for inb_p, outb_p, inb, outb, etc... */
> +#include <linux/device.h>	/* for struct device */

Ah, more complaints sorry...

You aren't including this for 'struct device' you are doing it for
module_driver().  Just remove the /* */ entirely, you don't need to
specify why you are including a .h file, that's not needed.

thanks,

greg k-h


  reply	other threads:[~2015-03-17 13:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-17 10:36 [PATCH v2 0/2] Staging: speakup: Introduce helper macro module_spk_synth Vaishali Thakkar
2015-03-17 10:36 ` [PATCH v4 1/2] Staging: speakup: Add helper macro for spk_synth boilerplate Vaishali Thakkar
2015-03-17 13:10   ` Greg KH [this message]
2015-03-17 13:18     ` [Outreachy kernel] " Vaishali Thakkar
2015-03-17 10:36 ` [PATCH v2 2/2] Staging: speakup: Use module_spk_synth Vaishali Thakkar

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=20150317131020.GA22383@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=vthakkar1994@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.