diff options
author | Joe Perches <joe@perches.com> | 2013-10-17 16:34:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-18 14:42:15 -0400 |
commit | 9877b25382e770618d0a36a3024d8a3c67eee9ea (patch) | |
tree | 01c1c1a0badbbd54c5757139dee8f30edc9e01aa | |
parent | 768877537de6b9f7c043b73f82baab4f09ee9799 (diff) |
fib: Use const struct nl_info * in rtmsg_fib
The rtmsg_fib function doesn't modify this argument so mark
it const.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/fib_lookup.h | 2 | ||||
-rw-r--r-- | net/ipv4/fib_semantics.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_lookup.h b/net/ipv4/fib_lookup.h index af0f14aba169..50cfb3ef560f 100644 --- a/net/ipv4/fib_lookup.h +++ b/net/ipv4/fib_lookup.h | |||
@@ -32,7 +32,7 @@ extern int fib_dump_info(struct sk_buff *skb, u32 pid, u32 seq, int event, | |||
32 | int dst_len, u8 tos, struct fib_info *fi, | 32 | int dst_len, u8 tos, struct fib_info *fi, |
33 | unsigned int); | 33 | unsigned int); |
34 | extern void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, | 34 | extern void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, |
35 | int dst_len, u32 tb_id, struct nl_info *info, | 35 | int dst_len, u32 tb_id, const struct nl_info *info, |
36 | unsigned int nlm_flags); | 36 | unsigned int nlm_flags); |
37 | extern struct fib_alias *fib_find_alias(struct list_head *fah, | 37 | extern struct fib_alias *fib_find_alias(struct list_head *fah, |
38 | u8 tos, u32 prio); | 38 | u8 tos, u32 prio); |
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index d5dbca5ecf62..e63f47a4e651 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
@@ -380,7 +380,7 @@ static inline size_t fib_nlmsg_size(struct fib_info *fi) | |||
380 | } | 380 | } |
381 | 381 | ||
382 | void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, | 382 | void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, |
383 | int dst_len, u32 tb_id, struct nl_info *info, | 383 | int dst_len, u32 tb_id, const struct nl_info *info, |
384 | unsigned int nlm_flags) | 384 | unsigned int nlm_flags) |
385 | { | 385 | { |
386 | struct sk_buff *skb; | 386 | struct sk_buff *skb; |