Skip to contentSkip to conversation

backports: add missing include in 3.13 compat code

PATCH New Johannes Berg 1 participant 1 message Oct 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: add missing include in 3.13 compat code

From: Johannes Berg <[email protected]>

If we don't include <linux/net.h> then __BACKPORT_NET_GET_RANDOM_ONCE can never be defined, and we'll never get the compat code. Fix that.

---
 backport/compat/backport-3.13.c | 1 +
 1 file changed, 1 insertion(+)
backport/compat/backport-3.13.c +1 -0
index 23c759ef2388..2b61711d233d 100644
@@ -15,6 +15,7 @@
 #include <linux/pci.h>
 #include <linux/device.h>
 #include <linux/hwmon.h>
+#include <linux/net.h>
 
 #ifdef __BACKPORT_NET_GET_RANDOM_ONCE
 struct __net_random_once_work {
Signature · 4 lines
2.14.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in