backports.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] backports: add missing include in 3.13 compat code
@ 2018-10-02 19:10 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2018-10-02 19:10 UTC (permalink / raw)
  To: backports; +Cc: Johannes Berg

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 --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 {
-- 
2.14.4

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-02 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-02 19:10 [PATCH] backports: add missing include in 3.13 compat code Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).