* [PATCH] xfrm_user: constify netlink dispatch table
@ 2013-02-24 13:10 Mathias Krause
2013-03-07 7:47 ` Steffen Klassert
0 siblings, 1 reply; 2+ messages in thread
From: Mathias Krause @ 2013-02-24 13:10 UTC (permalink / raw)
To: Steffen Klassert, Herbert Xu, David S. Miller; +Cc: netdev, Mathias Krause
There is no need to modify the netlink dispatch table at runtime.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
---
net/xfrm/xfrm_user.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index eb872b2..8f4277c 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -2304,7 +2304,7 @@ static const struct nla_policy xfrma_policy[XFRMA_MAX+1] = {
[XFRMA_REPLAY_ESN_VAL] = { .len = sizeof(struct xfrm_replay_state_esn) },
};
-static struct xfrm_link {
+static const struct xfrm_link {
int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **);
int (*dump)(struct sk_buff *, struct netlink_callback *);
int (*done)(struct netlink_callback *);
@@ -2338,7 +2338,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
{
struct net *net = sock_net(skb->sk);
struct nlattr *attrs[XFRMA_MAX+1];
- struct xfrm_link *link;
+ const struct xfrm_link *link;
int type, err;
type = nlh->nlmsg_type;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xfrm_user: constify netlink dispatch table
2013-02-24 13:10 [PATCH] xfrm_user: constify netlink dispatch table Mathias Krause
@ 2013-03-07 7:47 ` Steffen Klassert
0 siblings, 0 replies; 2+ messages in thread
From: Steffen Klassert @ 2013-03-07 7:47 UTC (permalink / raw)
To: Mathias Krause; +Cc: Herbert Xu, David S. Miller, netdev
On Sun, Feb 24, 2013 at 02:10:27PM +0100, Mathias Krause wrote:
> There is no need to modify the netlink dispatch table at runtime.
>
> Signed-off-by: Mathias Krause <minipli@googlemail.com>
Applied to ipsec-next, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-07 7:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-24 13:10 [PATCH] xfrm_user: constify netlink dispatch table Mathias Krause
2013-03-07 7:47 ` Steffen Klassert
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).