From: Stephen Hemminger <stephen@networkplumber.org>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: [PATCH net-next v2] ipv4: make fib_detect_death static
Date: Sat, 28 Dec 2013 11:06:05 -0800 [thread overview]
Message-ID: <20131228110605.3e48211b@nehalam.linuxnetplumber.net> (raw)
Make fib_detect_death function static only used in one file.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
v2 - reindent
net/ipv4/fib_lookup.h | 2 --
net/ipv4/fib_semantics.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
--- a/net/ipv4/fib_lookup.h 2013-12-28 00:02:18.986981011 -0800
+++ b/net/ipv4/fib_lookup.h 2013-12-28 00:02:52.970473541 -0800
@@ -33,8 +33,6 @@ int fib_dump_info(struct sk_buff *skb, u
void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len,
u32 tb_id, const struct nl_info *info, unsigned int nlm_flags);
struct fib_alias *fib_find_alias(struct list_head *fah, u8 tos, u32 prio);
-int fib_detect_death(struct fib_info *fi, int order,
- struct fib_info **last_resort, int *last_idx, int dflt);
static inline void fib_result_assign(struct fib_result *res,
struct fib_info *fi)
--- a/net/ipv4/fib_semantics.c 2013-12-28 00:02:18.986981011 -0800
+++ b/net/ipv4/fib_semantics.c 2013-12-28 00:03:12.446182803 -0800
@@ -426,8 +426,9 @@ struct fib_alias *fib_find_alias(struct
return NULL;
}
-int fib_detect_death(struct fib_info *fi, int order,
- struct fib_info **last_resort, int *last_idx, int dflt)
+static int fib_detect_death(struct fib_info *fi, int order,
+ struct fib_info **last_resort, int *last_idx,
+ int dflt)
{
struct neighbour *n;
int state = NUD_NONE;
reply other threads:[~2013-12-28 19:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131228110605.3e48211b@nehalam.linuxnetplumber.net \
--to=stephen@networkplumber.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).