From: Li Zhong <zhong@linux.vnet.ibm.com>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [RFC PATCH netfilter] Fix Unknown symbols in nf_reject_ipvX modules
Date: Fri, 24 Oct 2014 15:28:52 +0800 [thread overview]
Message-ID: <1414135732.19476.10.camel@TP420> (raw)
Commit c8d7b98bec43 moved nf_send_resetX() to modules without module
license, which causes following errors seen on my system:
[ 26.926014] nf_reject_ipv4: Unknown symbol rcu_read_lock_bh_held (err 0)
[ 26.926022] nf_reject_ipv4: Unknown symbol rcu_read_lock_held (err 0)
[ 26.926030] nf_reject_ipv4: Unknown symbol ip_local_out_sk (err 0)
The code below adds MODULE_LICENSE("GPL") to fix this issue.
Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
---
net/ipv4/netfilter/nf_reject_ipv4.c | 3 +++
net/ipv6/netfilter/nf_reject_ipv6.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/net/ipv4/netfilter/nf_reject_ipv4.c b/net/ipv4/netfilter/nf_reject_ipv4.c
index b023b4e..d5df20d 100644
--- a/net/ipv4/netfilter/nf_reject_ipv4.c
+++ b/net/ipv4/netfilter/nf_reject_ipv4.c
@@ -11,6 +11,9 @@
#include <net/route.h>
#include <net/dst.h>
#include <linux/netfilter_ipv4.h>
+#include <linux/module.h>
+
+MODULE_LICENSE("GPL");
/* Send RST reply */
void nf_send_reset(struct sk_buff *oldskb, int hook)
diff --git a/net/ipv6/netfilter/nf_reject_ipv6.c b/net/ipv6/netfilter/nf_reject_ipv6.c
index 5f5f043..e3e5683 100644
--- a/net/ipv6/netfilter/nf_reject_ipv6.c
+++ b/net/ipv6/netfilter/nf_reject_ipv6.c
@@ -10,6 +10,9 @@
#include <net/ip6_fib.h>
#include <net/ip6_checksum.h>
#include <linux/netfilter_ipv6.h>
+#include <linux/module.h>
+
+MODULE_LICENSE("GPL");
void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook)
{
next reply other threads:[~2014-10-24 7:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-24 7:28 Li Zhong [this message]
2014-10-24 9:47 ` [RFC PATCH netfilter] Fix Unknown symbols in nf_reject_ipvX modules Pablo Neira Ayuso
2014-10-27 4:50 ` Li Zhong
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=1414135732.19476.10.camel@TP420 \
--to=zhong@linux.vnet.ibm.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/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).