aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2007-12-08 03:14:54 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:56:59 -0500
commit7e5449c21562f1554d2c355db1ec9d3e4f434288 (patch)
tree96e0eede0ade3339b6d4e202f77e4eecf658da4b /include
parentc35b7e72cd48bc7163b6900fb3689fa54b572bba (diff)
[IPV6]: route6 remove ifdef for fib_rules
The patch defines the usual static inline functions when the code is disabled for fib6_rules. That's allow to remove some ifdef in route.c file and make the code a little more clear. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/ip6_fib.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h
index eaa315868792..14830edc2ac0 100644
--- a/include/net/ip6_fib.h
+++ b/include/net/ip6_fib.h
@@ -226,8 +226,18 @@ extern void fib6_gc_cleanup(void);
226 226
227extern int fib6_init(void); 227extern int fib6_init(void);
228 228
229#ifdef CONFIG_IPV6_MULTIPLE_TABLES
229extern int fib6_rules_init(void); 230extern int fib6_rules_init(void);
230extern void fib6_rules_cleanup(void); 231extern void fib6_rules_cleanup(void);
231 232#else
233static inline int fib6_rules_init(void)
234{
235 return 0;
236}
237static inline void fib6_rules_cleanup(void)
238{
239 return ;
240}
241#endif
232#endif 242#endif
233#endif 243#endif