[ovs-dev] [PATCH] coverage: Fix build when linker sections not supported.

Gurucharan Shetty shettyg at nicira.com
Wed Dec 11 18:17:40 UTC 2013


On Sat, Dec 7, 2013 at 8:17 AM, Ben Pfaff <blp at nicira.com> wrote:
> With this change, OVS builds and runs fine without linker section support.
>
> CC: Linda Sun <lsun at vmware.com>
> CC: Saurabh Shah <ssaurabh at vmware.com>
> Signed-off-by: Ben Pfaff <blp at nicira.com>
Looks good to me.
> ---
>  lib/coverage.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/coverage.c b/lib/coverage.c
> index aae9937..c7a0028 100644
> --- a/lib/coverage.c
> +++ b/lib/coverage.c
> @@ -48,7 +48,7 @@ extern struct coverage_counter *__stop_coverage[];
>          }                                                               \
>          extern struct coverage_counter counter_##COUNTER;               \
>          struct coverage_counter counter_##COUNTER                       \
> -            = { #COUNTER, COUNTER##_count, 0 };
> +            = { #COUNTER, COUNTER##_count, 0, 0, {0}, {0} };
>  #include "coverage.def"
>  #undef COVERAGE_COUNTER
>
> --
> 1.7.10.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list