spinlock/x86: move stack declaration before code
authorAndy Green <andy@warmcat.com>
Sat, 12 May 2018 01:59:17 +0000 (09:59 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 20:45:21 +0000 (22:45 +0200)
commitf7f18e92a51276f1e23a0595f59615f79323b358
tree870631fb09841e61f77afc3ff5eef0f98e36cee2
parente3908132b7903dbbf45c6d073792cccc890812e0
spinlock/x86: move stack declaration before code

In function 'rte_try_tm':
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@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/common/include/arch/x86/rte_spinlock.h