Skip to contentSkip to conversation

ipv4: make fib_detect_death static

PATCH Superseded Stephen Hemminger 2 participants 2 messages Dec 27, 2013 – Dec 28, 2013

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv4: make fib_detect_death static

Make fib_detect_death function static only used in one file.

---
 net/ipv4/fib_lookup.h    |    2 --
 net/ipv4/fib_semantics.c |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)
net/ipv4/fib_lookup.h +0 -2
@@ -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)
net/ipv4/fib_semantics.c +1 -1
@@ -426,7 +426,7 @@ struct fib_alias *fib_find_alias(struct
 	return NULL;
 }
 
-int fib_detect_death(struct fib_info *fi, int order,
+static int fib_detect_death(struct fib_info *fi, int order,
 		     struct fib_info **last_resort, int *last_idx, int dflt)
 {
 	struct neighbour *n;
maintainer
#1 lore raw

From: Stephen Hemminger <[email protected]>
Date: Fri, 27 Dec 2013 12:10:53 -0800

net/ipv4/fib_semantics.c struct fib_alias *fib_find_alias(struct · line 430

Quoted 3 lines
net/ipv4/fib_semantics.c +1 -1
-int fib_detect_death(struct fib_info *fi, int order,
+static int fib_detect_death(struct fib_info *fi, int order,
 		     struct fib_info **last_resort, int *last_idx, int dflt)

Please reindent the args.