stmmac.h uses struct platform_device and doesn't include
<linux/platform_device.h>. 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 stmmac.h to remove this warning
Signed-off-by: Viresh Kumar <redacted>
---
include/linux/stmmac.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
From: Giuseppe CAVALLARO <hidden> Date: 2011-05-02 13:05:46
On 5/2/2011 8:30 AM, Viresh Kumar wrote:
stmmac.h uses struct platform_device and doesn't include
<linux/platform_device.h>. 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 stmmac.h to remove this warning
Hi Viresh
thanks for the patch that looks good for me.
We could also remove this inclusion (see commit
1f0f63885658889b3bcb8a08fbcb9532f8e536c9) from
drivers/net/stmmac/stmmac.h and keep it in linux/stmmac.h as you suggested.
What do you think?
Regards
Peppe
stmmac.h uses struct platform_device and doesn't include
<linux/platform_device.h>. 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 stmmac.h to remove this warning
Signed-off-by: Viresh Kumar <redacted>
This patch applies to neither net-2.6, nor net-next-2.6
The context around your change in all current trees looks a lot
different than what's in your patch.
In fact, even if I go through the entire history in GIT of this
header file, those STMAC_TYPE_0 defines are never there.
The string "STMAC_TYPE_0" doesn't even show up in a query to google
code search.
What tree are you even patching against?
We could also remove this inclusion (see commit
1f0f63885658889b3bcb8a08fbcb9532f8e536c9) from
drivers/net/stmmac/stmmac.h and keep it in linux/stmmac.h as you suggested.