mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
xfrm_user: constify netlink dispatch table
There is no need to modify the netlink dispatch table at runtime. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Change-Id: If33577532b9970f8c07b8e577275ddb6aa48cc20
This commit is contained in:
parent
1b5c151075
commit
667db6169c
1 changed files with 2 additions and 2 deletions
|
@ -2322,7 +2322,7 @@ static const struct nla_policy xfrma_policy[XFRMA_MAX+1] = {
|
|||
[XFRMA_SA_EXTRA_FLAGS] = { .type = NLA_U32 },
|
||||
};
|
||||
|
||||
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 *);
|
||||
|
@ -2356,7 +2356,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;
|
||||
|
|
Loading…
Reference in a new issue