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 <[email protected]>
Fixes: df7547a6a2cc ("ethdev: add helper function to get representor ID")
Cc: [email protected]
Acked-by: Ferruh Yigit <[email protected]>
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 <[email protected]>
> Zoltan Kiss <[email protected]> <[email protected]>
> Zorik Machulsky <[email protected]>
> Zyta Szpak <[email protected]> <[email protected]> <[email protected]>
> +Krzysztof Karas <[email protected]>
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()