diff mbox series

backports: add missing include in 3.13 compat code

Message ID 20181002191026.5894-1-johannes@sipsolutions.net (mailing list archive)
State Accepted
Headers show
Series backports: add missing include in 3.13 compat code | expand

Commit Message

Johannes Berg Oct. 2, 2018, 7:10 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

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.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/compat/backport-3.13.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/backport/compat/backport-3.13.c b/backport/compat/backport-3.13.c
index 23c759ef2388..2b61711d233d 100644
--- a/backport/compat/backport-3.13.c
+++ b/backport/compat/backport-3.13.c
@@ -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 {