From: Giuseppe CAVALLARO <peppe.cavallaro@st.com>
To: Viresh Kumar <viresh.kumar@st.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
shiraz.hashim@st.com, armando.visconti@st.com,
deepak.sikri@st.com, viresh.linux@gmail.com
Subject: Re: [PATCH V2] net/stmmac: Move "#include <linux/platform_device.h>" to linux/stmmac.h
Date: Tue, 03 May 2011 07:36:55 +0200 [thread overview]
Message-ID: <4DBF9477.5070302@st.com> (raw)
In-Reply-To: <51e0617ee964ae60313a99804f4842ac6e96c129.1304397312.git.viresh.kumar@st.com>
On 5/3/2011 6:36 AM, Viresh Kumar wrote:
> stmmac.h uses struct platform_device and doesn't include
> <linux/platform_device.h>. Whereas drivers/net/stmmac/stmmac.h includes it, but
> doesn't directly use it. And so we get following compilation warning while using
> this file:
> warning: ‘struct platform_device’ declared inside parameter list
>
> This patch includes <linux/platform_device.h> in linux/stmmac.h and removes it
> from drivers/net/stmmac/stmmac.h
>
> Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
> ---
> drivers/net/stmmac/stmmac.h | 1 -
> include/linux/stmmac.h | 2 ++
> 2 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/stmmac/stmmac.h b/drivers/net/stmmac/stmmac.h
> index 5f06c47..2b076b3 100644
> --- a/drivers/net/stmmac/stmmac.h
> +++ b/drivers/net/stmmac/stmmac.h
> @@ -21,7 +21,6 @@
> *******************************************************************************/
>
> #define DRV_MODULE_VERSION "Nov_2010"
> -#include <linux/platform_device.h>
> #include <linux/stmmac.h>
>
> #include "common.h"
> diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
> index f29197a..9529e49 100644
> --- a/include/linux/stmmac.h
> +++ b/include/linux/stmmac.h
> @@ -26,6 +26,8 @@
> #ifndef __STMMAC_PLATFORM_DATA
> #define __STMMAC_PLATFORM_DATA
>
> +#include <linux/platform_device.h>
> +
> /* platform data for platform device structure's platform_data field */
>
> /* Private data for the STM on-board ethernet driver */
next prev parent reply other threads:[~2011-05-03 5:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 4:36 [PATCH V2] net/stmmac: Move "#include <linux/platform_device.h>" to linux/stmmac.h Viresh Kumar
2011-05-03 5:36 ` Giuseppe CAVALLARO [this message]
2011-05-03 23:09 ` David Miller
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=4DBF9477.5070302@st.com \
--to=peppe.cavallaro@st.com \
--cc=armando.visconti@st.com \
--cc=davem@davemloft.net \
--cc=deepak.sikri@st.com \
--cc=netdev@vger.kernel.org \
--cc=shiraz.hashim@st.com \
--cc=viresh.kumar@st.com \
--cc=viresh.linux@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.