Re: [PATCH V5 5/8] mem: possible data truncation and conversion error

2022-12-14 Thread lihuisong (C)
在 2022/12/15 15:04, Morten Brørup 写道: From: lihuisong (C) [mailto:lihuis...@huawei.com] Sent: Thursday, 15 December 2022 02.12 在 2022/12/14 21:00, Morten Brørup 写道: From: Huisong Li [mailto:lihuis...@huawei.com] Sent: Wednesday, 14 December 2022 13.33 --- a/lib/eal/common/eal_common_memory.c

RE: [PATCH V5 5/8] mem: possible data truncation and conversion error

2022-12-14 Thread Morten Brørup
> From: lihuisong (C) [mailto:lihuis...@huawei.com] > Sent: Thursday, 15 December 2022 02.12 > > 在 2022/12/14 21:00, Morten Brørup 写道: > >> From: Huisong Li [mailto:lihuis...@huawei.com] > >> Sent: Wednesday, 14 December 2022 13.33 > >> > >> --- a/lib/eal/common/eal_common_memory.c > >> +++ b/lib/

Re: [PATCH V5 5/8] mem: possible data truncation and conversion error

2022-12-14 Thread lihuisong (C)
在 2022/12/14 21:00, Morten Brørup 写道: From: Huisong Li [mailto:lihuis...@huawei.com] Sent: Wednesday, 14 December 2022 13.33 The 'u32' and 'u64' data can not assigned to 'int' type variable. They need to use the 'u64' APIs to add. Fixes: e6732d0d6e26 ("mem: add telemetry infos") Cc: sta...@dp

RE: [PATCH V5 5/8] mem: possible data truncation and conversion error

2022-12-14 Thread Morten Brørup
> From: Huisong Li [mailto:lihuis...@huawei.com] > Sent: Wednesday, 14 December 2022 13.33 > > The 'u32' and 'u64' data can not assigned to 'int' type variable. > They need to use the 'u64' APIs to add. > > Fixes: e6732d0d6e26 ("mem: add telemetry infos") > Cc: sta...@dpdk.org > > Signed-off-by:

[PATCH V5 5/8] mem: possible data truncation and conversion error

2022-12-14 Thread Huisong Li
The 'u32' and 'u64' data can not assigned to 'int' type variable. They need to use the 'u64' APIs to add. Fixes: e6732d0d6e26 ("mem: add telemetry infos") Cc: sta...@dpdk.org Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/eal/common/eal_common_memory.c | 10