[PATCH v4 1/6] eal: variable first arguments of RTE_SHIFT_VALxx
fengchengwen
fengchengwen at huawei.com
Wed Jan 28 01:41:52 CET 2026
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
On 1/27/2026 7:49 PM, Marat Khalili wrote:
> Macros RTE_SHIFT_VAL32 and RTE_SHIFT_VAL64 were implemented by applying
> UINT32_C or UINT64_C correspondingly to its first argument. As a
> consequence first argument had to be a constant. Replace UINT32_C and
> UINT64_C with casts to uint32_t and uint64_t to allow these arguments be
> variable. For constants the result should be the same.
>
> (Yes, technically UINT64_C promotes to uint_least64_t, not uint64_t, but
> I think most users of RTE_SHIFT_VAL64 expect the result to be uint64_t.)
>
> Fixes: 1d8f2285ed3f ("eal: introduce more macros for bit definition")
> Cc: stable at dpdk.org
>
> Signed-off-by: Marat Khalili <marat.khalili at huawei.com>
> Reviewed-by: Morten Brørup <mb at smartsharesystems.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> Acked-by: Stephen Hemminger <stephen at networkplumber.org>
...
More information about the stable
mailing list