[dpdk-dev] [PATCH v2] service: fix build error "ids uninitialized in rte_service_map_lcore_set"
Thomas Monjalon
thomas at monjalon.net
Thu Sep 21 14:41:46 CEST 2017
21/09/2017 13:55, Van Haaren, Harry:
> > From: Yang, Yi Y
> > Sent: Thursday, September 21, 2017 2:51 AM
> > To: dev at dpdk.org
> > Cc: Van Haaren, Harry <harry.van.haaren at intel.com>; Yang, Yi Y
> > <yi.y.yang at intel.com>
> > Subject: [PATCH v2] service: fix build error "ids uninitialized in
> > rte_service_map_lcore_set"
> >
> > v1->v2
> > - Change title to more descriptive one
> > - Add issue reproduce information to git log body
> >
> > On current master tree, normal DPDK make will result in
> > the below error:
> >
> > error: ‘ids[0]’ may be used uninitialized in this
> > function [-Werror=maybe-uninitialized]
> > ret = rte_service_map_lcore_set(i, ids[lcore_iter], 1);
> >
> > It can be reproduced very easily on Fedora 21 with
> > gcc-4.9.2-6.fc21.x86_64.
Fixes: 21698354c832 ("service: introduce service cores concept")
Cc: stable at dpdk.org
> > It is fixed after applied this patch.
> >
> > Signed-off-by: Yi Yang <yi.y.yang at intel.com>
>
> +CC Thomas, please pull this asap, as it causes build issues on various GCC/OS versions.
Most of compilers do not raise an error.
It seems specific to gcc 4.9.
Nelio reported the same error with gcc 4.9.
Changing the title to "service: fix build with gcc 4.9"
> Acked-by: Harry van Haaren <harry.van.haaren at intel.com>
Applied, thanks
More information about the dev
mailing list