lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 2 May 2011 12:00:37 +0530
From:	Viresh Kumar <viresh.kumar@...com>
To:	<peppe.cavallaro@...com>
Cc:	<netdev@...r.kernel.org>, <shiraz.hashim@...com>,
	<armando.visconti@...com>, <deepak.sikri@...com>,
	<viresh.linux@...il.com>, Viresh Kumar <viresh.kumar@...com>
Subject: [PATCH] linux/stmmac.h: include <linux/platform_device.h> to remove compilation warning.

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 <viresh.kumar@...com>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ