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

Kirill Korotaev dev at sw.ru
Tue Jun 20 01:38:23 PDT 2006


ah, it was exported in 2.6.8...
Thanks for catching!

Kirill

> 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
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Devel mailing list
> Devel at openvz.org
> https://openvz.org/mailman/listinfo/devel




More information about the Devel mailing list