diff options
Diffstat (limited to 'net/irda/irnetlink.c')
-rw-r--r-- | net/irda/irnetlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/irda/irnetlink.c b/net/irda/irnetlink.c index 476b307bd801..6c7c4b92e4f8 100644 --- a/net/irda/irnetlink.c +++ b/net/irda/irnetlink.c | |||
@@ -15,6 +15,7 @@ | |||
15 | 15 | ||
16 | #include <linux/socket.h> | 16 | #include <linux/socket.h> |
17 | #include <linux/irda.h> | 17 | #include <linux/irda.h> |
18 | #include <linux/gfp.h> | ||
18 | #include <net/net_namespace.h> | 19 | #include <net/net_namespace.h> |
19 | #include <net/sock.h> | 20 | #include <net/sock.h> |
20 | #include <net/irda/irda.h> | 21 | #include <net/irda/irda.h> |
@@ -124,7 +125,7 @@ static int irda_nl_get_mode(struct sk_buff *skb, struct genl_info *info) | |||
124 | return ret; | 125 | return ret; |
125 | } | 126 | } |
126 | 127 | ||
127 | static struct nla_policy irda_nl_policy[IRDA_NL_ATTR_MAX + 1] = { | 128 | static const struct nla_policy irda_nl_policy[IRDA_NL_ATTR_MAX + 1] = { |
128 | [IRDA_NL_ATTR_IFNAME] = { .type = NLA_NUL_STRING, | 129 | [IRDA_NL_ATTR_IFNAME] = { .type = NLA_NUL_STRING, |
129 | .len = IFNAMSIZ-1 }, | 130 | .len = IFNAMSIZ-1 }, |
130 | [IRDA_NL_ATTR_MODE] = { .type = NLA_U32 }, | 131 | [IRDA_NL_ATTR_MODE] = { .type = NLA_U32 }, |