From: Johannes Berg <johannes@sipsolutions.net>
To: backports@vger.kernel.org
Cc: Johannes Berg <johannes.berg@intel.com>
Subject: [PATCH] backports: add missing include in 3.13 compat code
Date: Tue, 2 Oct 2018 21:10:26 +0200 [thread overview]
Message-ID: <20181002191026.5894-1-johannes@sipsolutions.net> (raw)
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
reply other threads:[~2018-10-02 19:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181002191026.5894-1-johannes@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=backports@vger.kernel.org \
--cc=johannes.berg@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).