fix fib_proc compilation error
Subsystems (3)
PATCH 1/1 fix fib_proc compilation error
Subject: fix fib_proc compilation error
From: Daniel Lezcano <[email protected]>
Fix fib_proc_[init|exit] definition when CONFIG_PROCFS=no
Signed-off-by Daniel Lezcano <[email protected]>
--- include/net/ip_fib.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
include/net/ip_fib.h +10 -0
@@ -264,6 +264,16 @@ static inline void fib_res_put(struct fi#ifdef CONFIG_PROC_FS extern int __net_init fib_proc_init (struct net *net); extern void __net_exit fib_proc_exit(struct net *net); +#else +static inline int fib_proc_init (struct net *net) +{ +return 0 ; +} + +static inline void fib_proc_exit (struct net *net) +{ +return ; +}#endif #endif /* _NET_FIB_H */
EBOGUSWHITESPACE
include/net/ip_fib.h static inline void fib_res_put(struct fi · line 277
Quoted 5 lines
include/net/ip_fib.h +4
-0+static inline void fib_proc_exit (struct net *net) +{ +return ; +}#endif
Whole patch is unnecessary, since the fib_proc_init is gone in the tree going into 2.6.25
Nevermind, Patch looks fine for 2.6.25, it wasn't needed for 2.6.24 Sorry, need more coffee...
Signature · 1 line
Stephen Hemminger <[email protected]>