From 69ca3d32568b49f6e0240af348d7e51a064d81a2 Mon Sep 17 00:00:00 2001 From: Andreas Schultz Date: Fri, 5 Feb 2016 17:42:43 +0100 Subject: [PATCH] change __genl_const to const __genl_const was depreciated some time ago. --- src/wtp/kmod/netlinkapp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wtp/kmod/netlinkapp.c b/src/wtp/kmod/netlinkapp.c index 1a3cdc9..840dfa3 100644 --- a/src/wtp/kmod/netlinkapp.c +++ b/src/wtp/kmod/netlinkapp.c @@ -30,7 +30,7 @@ static uint32_t sc_netlink_usermodeid; static LIST_HEAD(sc_netlink_dev_list); /* */ -static int sc_netlink_pre_doit(__genl_const struct genl_ops* ops, struct sk_buff* skb, struct genl_info* info) { +static int sc_netlink_pre_doit(const struct genl_ops* ops, struct sk_buff* skb, struct genl_info* info) { TRACEKMOD("### sc_netlink_pre_doit\n"); rtnl_lock(); @@ -38,7 +38,7 @@ static int sc_netlink_pre_doit(__genl_const struct genl_ops* ops, struct sk_buff } /* */ -static void sc_netlink_post_doit(__genl_const struct genl_ops* ops, struct sk_buff* skb, struct genl_info* info) { +static void sc_netlink_post_doit(const struct genl_ops* ops, struct sk_buff* skb, struct genl_info* info) { TRACEKMOD("### sc_netlink_post_doit\n"); rtnl_unlock(); @@ -602,7 +602,7 @@ static const struct nla_policy sc_netlink_policy[NLSMARTCAPWAP_ATTR_MAX + 1] = { }; /* Netlink Ops */ -static __genl_const struct genl_ops sc_netlink_ops[] = { +static const struct genl_ops sc_netlink_ops[] = { { .cmd = NLSMARTCAPWAP_CMD_LINK, .doit = sc_netlink_link,