Thread (5 messages) flat view 5 messages, 3 authors, 2011-05-03
STALE5593d

[PATCH] linux/stmmac.h: include <linux/platform_device.h> to remove compilation warning.

From: Viresh Kumar <hidden>
Date: 2011-05-02 06:30:52
Subsystem: the rest · Maintainer: Linus Torvalds

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(-)
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index 73d9b4e..d7dfe7d 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>
+
 #define STMAC_TYPE_0	0
 #define STMAC_TYPE_1	1
 #define STMAC_TYPE_2	2
-- 
1.7.2.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help