Backports Archive on lore.kernel.org
 help / Atom feed
* [PATCH] backports: add missing include in 3.13 compat code
@ 2018-10-02 19:10 Johannes Berg
  0 siblings, 0 replies; 1+ messages 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	[flat|nested] 1+ messages in thread

only message in thread, back to index

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

Backports Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/backports/0 backports/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 backports backports/ https://lore.kernel.org/backports \
		backports@vger.kernel.org backports@archiver.kernel.org
	public-inbox-index backports


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.backports


AGPL code for this site: git clone https://public-inbox.org/ public-inbox