[PATCH 2/8] backports: add missing include for linux/of.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes a compile error with some config options.
Closes bug: https://bugzilla.kernel.org/show_bug.cgi?id=66601

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
Reported-by: Richard Röjfors <richard.rojfors@xxxxxxxxx>
---
 backport/compat/compat-3.7.c |    1 +
 backport/compat/compat-3.8.c |    1 +
 2 files changed, 2 insertions(+)

diff --git a/backport/compat/compat-3.7.c b/backport/compat/compat-3.7.c
index b21b8ac..2d739f9 100644
--- a/backport/compat/compat-3.7.c
+++ b/backport/compat/compat-3.7.c
@@ -12,6 +12,7 @@
 #include <linux/export.h>
 #include <linux/pci.h>
 #include <linux/pci_regs.h>
+#include <linux/of.h>
 
 bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork,
 		      unsigned long delay)
diff --git a/backport/compat/compat-3.8.c b/backport/compat/compat-3.8.c
index a018ea9..c6824bf 100644
--- a/backport/compat/compat-3.8.c
+++ b/backport/compat/compat-3.8.c
@@ -17,6 +17,7 @@
 #include "hid-ids.h"
 #include <linux/netdevice.h>
 #include <linux/random.h>
+#include <linux/of.h>
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,8))
 void netdev_set_default_ethtool_ops(struct net_device *dev,
-- 
1.7.10.4

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux