[PATCH] ethdev: initialize id in eth_representor_cmp()
Ferruh Yigit
ferruh.yigit at amd.com
Wed Mar 1 00:23:44 CET 2023
On 2/20/2023 4:44 PM, Krzysztof Karas wrote:
> When Link Time Optimization is enabled, compiler may
> complain about "id" in eth_representor_cmp() being
> uninitialized.
>
> To suppress the warning it is enough to add explicit
> initialization of the variable causing the issue.
>
> Signed-off-by: Krzysztof Karas <krzysztof.karas at intel.com>
Fixes: df7547a6a2cc ("ethdev: add helper function to get representor ID")
Cc: stable at dpdk.org
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
Applied to dpdk-next-net/main, thanks.
> ---
> .mailmap | 1 +
> lib/ethdev/rte_class_eth.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/.mailmap b/.mailmap
> index 5015494210..ba34945bc5 100644
> --- a/.mailmap
> +++ b/.mailmap
> @@ -1573,3 +1573,4 @@ Ziye Yang <ziye.yang at intel.com>
> Zoltan Kiss <zoltan.kiss at schaman.hu> <zoltan.kiss at linaro.org>
> Zorik Machulsky <zorik at amazon.com>
> Zyta Szpak <zyta at marvell.com> <zr at semihalf.com> <zyta.szpak at semihalf.com>
> +Krzysztof Karas <krzysztof.karas at intel.com>
Alphabetically sorted while merging.
Also patch title updated since it gives warning:
$ ./devtools/check-git-log.sh -n1
Wrong headline format:
ethdev: initialize id in eth_representor_cmp()
More information about the dev
mailing list