netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-2.6.25][IPV4][FIB] fix fib_proc compilation error
@ 2008-01-25 13:30 Daniel Lezcano
  2008-01-25 16:30 ` Stephen Hemminger
  2008-01-25 16:32 ` Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Lezcano @ 2008-01-25 13:30 UTC (permalink / raw)
  To: David Miller, Linux Netdev List

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: fix-fib-frontend-compilation-error.patch --]
[-- Type: text/x-patch, Size: 848 bytes --]

Subject: fix fib_proc compilation error
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Fix fib_proc_[init|exit] definition when CONFIG_PROCFS=no

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
---
 include/net/ip_fib.h |   10 ++++++++++
 1 file changed, 10 insertions(+)

Index: net-2.6.25-fix/include/net/ip_fib.h
===================================================================
--- net-2.6.25-fix.orig/include/net/ip_fib.h
+++ net-2.6.25-fix/include/net/ip_fib.h
@@ -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 */

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch net-2.6.25][IPV4][FIB] fix fib_proc compilation error
  2008-01-25 13:30 [patch net-2.6.25][IPV4][FIB] fix fib_proc compilation error Daniel Lezcano
@ 2008-01-25 16:30 ` Stephen Hemminger
  2008-01-25 16:32 ` Stephen Hemminger
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2008-01-25 16:30 UTC (permalink / raw)
  To: Daniel Lezcano; +Cc: netdev

 EBOGUSWHITESPACE

> +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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch net-2.6.25][IPV4][FIB] fix fib_proc compilation error
  2008-01-25 13:30 [patch net-2.6.25][IPV4][FIB] fix fib_proc compilation error Daniel Lezcano
  2008-01-25 16:30 ` Stephen Hemminger
@ 2008-01-25 16:32 ` Stephen Hemminger
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2008-01-25 16:32 UTC (permalink / raw)
  To: Daniel Lezcano; +Cc: netdev


Nevermind, Patch looks fine for 2.6.25, it wasn't needed for 2.6.24
Sorry, need more coffee...

-- 
Stephen Hemminger <stephen.hemminger@vyatta.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-25 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-25 13:30 [patch net-2.6.25][IPV4][FIB] fix fib_proc compilation error Daniel Lezcano
2008-01-25 16:30 ` Stephen Hemminger
2008-01-25 16:32 ` Stephen Hemminger

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).