devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Jonas Gorski <jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: [PATCH] of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
Date: Wed, 19 Dec 2012 09:12:59 -0600	[thread overview]
Message-ID: <50D1D97B.1020309@gmail.com> (raw)
In-Reply-To: <1355578062-21876-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>

On 12/15/2012 07:27 AM, Jonas Gorski wrote:
> Fixes the following warning:
> 
> include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default]
> include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
> 
> Signed-off-by: Jonas Gorski <jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
> ---

It seems like this never made it to the list, so hopefully this reply will.

Rob

>  include/linux/of_platform.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
> index b47d204..3863a4d 100644
> --- a/include/linux/of_platform.h
> +++ b/include/linux/of_platform.h
> @@ -100,6 +100,7 @@ extern int of_platform_populate(struct device_node *root,
>  
>  #if !defined(CONFIG_OF_ADDRESS)
>  struct of_dev_auxdata;
> +struct device;
>  static inline int of_platform_populate(struct device_node *root,
>  					const struct of_device_id *matches,
>  					const struct of_dev_auxdata *lookup,
> 

  parent reply	other threads:[~2012-12-19 15:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-15 13:27 [PATCH] of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS Jonas Gorski
     [not found] ` <1355578062-21876-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
2012-12-19 15:12   ` Rob Herring [this message]
     [not found]     ` <50D1D97B.1020309-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-12-19 15:37       ` Jonas Gorski
2012-12-19 16:20       ` Grant Likely

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=50D1D97B.1020309@gmail.com \
    --to=robherring2-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org \
    /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;
as well as URLs for NNTP newsgroup(s).