[dpdk-dev] [PATCH v3 07/24] rte_spinlock.h: stack declarations before code

Thomas Monjalon thomas at monjalon.net
Sun May 13 22:42:09 CEST 2018


12/05/2018 03:59, Andy Green:
> /projects/lagopus/src/dpdk/build/include/rte_spinlock.h:
> In function 'rte_try_tm':
> /projects/lagopus/src/dpdk/build/include/rte_spinlock.h:82:2:
> warning: ISO C90 forbids mixed declarations and code
> [-Wdeclaration-after-statement]
>   int retries = RTE_RTM_MAX_RETRIES;

    Fixes: ba7468997ea6 ("spinlock: add HTM lock elision for x86")
    Cc: stable at dpdk.org

> Signed-off-by: Andy Green <andy at warmcat.com>

Applied, thanks




More information about the dev mailing list