[PATCH v4 2/6] event/opdl: fix non-constant compile time assertion

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Thu Jan 18 10:43:01 CET 2024


On 1/17/24 21:19, Stephen Hemminger wrote:
> RTE_BUILD_BUG_ON() was being used with a non-constant value.
> The inline function rte_is_power_of_2() is not constant since
> inline expansion happens later in the compile process.
> Replace it with the macro which will be constant.
> 
> Fixes: 4236ce9bf5bf ("event/opdl: add OPDL ring infrastructure library")
> Cc: liang.j.ma at intel.com
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Acked-by: Tyler Retzlaff <roretzla at linux.microsoft.com>

Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>



More information about the dev mailing list