Required as per commit 9f00d9776bc5 ("netlink: hide struct module
parameter in netlink_kernel_create").

Signed-off-by: Tushar Behera <tushar.beh...@linaro.org>
---
 net/netfilter/xt_quota2.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/xt_quota2.c b/net/netfilter/xt_quota2.c
index 3a9c1f9..8163f37 100644
--- a/net/netfilter/xt_quota2.c
+++ b/net/netfilter/xt_quota2.c
@@ -350,14 +350,15 @@ static struct xt_match quota_mt2_reg[] __read_mostly = {
 static int __init quota_mt2_init(void)
 {
        int ret;
+#ifdef CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG
        struct netlink_kernel_cfg cfg = {
                .groups = 1,
        };
+#endif
        pr_debug("xt_quota2: init()");
 
 #ifdef CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG
-       nflognl = netlink_kernel_create(&init_net, NETLINK_NFLOG,
-                       THIS_MODULE, &cfg);
+       nflognl = netlink_kernel_create(&init_net, NETLINK_NFLOG, &cfg);
        if (!nflognl)
                return -ENOMEM;
 #endif
-- 
1.7.4.1


_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to