[Devel] [PATCH] net/core/dv.c: Export free_divert_blk if CONFIG_VE_CALLS_MODULE is defined

Dmitry V. Levin ldv at altlinux.org
Sat Jun 17 05:17:55 PDT 2006


net/core/dv.c: Export free_divert_blk if CONFIG_VE_CALLS_MODULE is defined.

Signed-off-by: Dmitry V. Levin <ldv at altlinux.org>

---

I have no idea why ve_netdev_cleanup() from kernel/vecalls.c duplicates
some code from net/core/dev.c, but if both CONFIG_NET_DIVERT and
CONFIG_VE_CALLS_MODULE are defined, then vzmon gets undefined reference
to free_divert_blk symbol.  Here is a workaround.

 net/core/dv.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

93fa77ddede66841483b49930bfc75d34a11a64b
diff --git a/net/core/dv.c b/net/core/dv.c
index cf58140..957abbe 100644
--- a/net/core/dv.c
+++ b/net/core/dv.c
@@ -547,3 +547,7 @@ void divert_frame(struct sk_buff *skb)
 		break;
 	}
 }
+
+#ifdef CONFIG_VE_CALLS_MODULE
+EXPORT_SYMBOL(free_divert_blk);
+#endif

-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/devel/attachments/20060617/9634dfef/attachment-0001.sig>


More information about the Devel mailing list