From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by dpdk.org (Postfix) with ESMTP id 264171B703 for ; Tue, 15 May 2018 19:19:49 +0200 (CEST) Received: by mail-lf0-f67.google.com with SMTP id m17-v6so1373596lfj.8 for ; Tue, 15 May 2018 10:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5b+N0C0+keBovBea0+f8hhceWqpzXrOZvHYyai766kk=; b=AV3Vi2GLfGLdQbHmrr8Tnk6txVchAySSqe7nKyWHKxxstk3p6HAtJczhidgeSz3ojB LlmjECJc3swvc94E18NIIfmYjR/FfBVxl3K/TSWzMKTKmrPfJLFggKHxN8tdumyJJmdR O5Llj1Gagg/XTv9wxoh5/Byoz6y6jv+dPLu2I7rOL8OhBtWSFMtuqpM3s+ZnG1YfHCbz r07pjTzlNCqPSglkUMK4y2DaNkzk4s77agc6tmVhKhlTFRBy0T0Ui5nlhS/HFc5DTe+D Aj+rjYuN5Ts5owHdt0VxoTw3xffIZvS0tlxYaedxoVoUaNxHTWy7tjREREFkAOQABc5e ukwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5b+N0C0+keBovBea0+f8hhceWqpzXrOZvHYyai766kk=; b=BiThA09egSyJDa1saySZHVuYsQKNhq56SDctuZGNWyIFg4wplBWIGmPl+mM0fyOlvO AyHod2KgvPChp7cI2SPp/+M8BXtmQSx75wFWJWegikvUMk9vPkZSHstiIxabndicCvzy Wby99g34yPP/xZGPXr2HnYlF/VxZ2yhtcwoWQTyHLxiePAu3vvvLiprnUuqq57/NXtSn 9mFB1z8lHBnt+ucB8fY0WPKDdEwic8oOLq6MtRd4D/HlX+qP1FD1qSrvCZvt0Z3zr512 rZSF1MInNwpey/JZ+D7emQND0qGfOZqv1aX5aOfYFJY+B7ADMeEAusovIWAFWJlLAsEb LS/A== X-Gm-Message-State: ALKqPwf90bdxE1rd9x5vompbccLLNJjPntRiRDf5D3T8BR3nHAnTI1nu UNZW64TRTK++VEhQgibDCi0= X-Google-Smtp-Source: AB8JxZo7jYYMzUA3+TLUZbFOIfhYiYlDw95W/nLSto34GS8YaNL+ePa2cMrxWBXq8R1/TZu87a6cLg== X-Received: by 2002:a2e:6a07:: with SMTP id f7-v6mr7413586ljc.145.1526404788410; Tue, 15 May 2018 10:19:48 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id h86-v6sm122244lfl.73.2018.05.15.10.19.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 10:19:47 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: Stephen Hemminger , dpdk stable Date: Tue, 15 May 2018 18:19:05 +0100 Message-Id: <20180515171933.12882-4-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515171933.12882-1-luca.boccassi@gmail.com> References: <20180501104509.17238-46-luca.boccassi@gmail.com> <20180515171933.12882-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'spinlock/x86: move stack declaration before code' has been queued to LTS release 16.11.7 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 17:19:49 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 90e0fc9fb6639f78c7daa8b849574775c80fbbdb Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 12 May 2018 09:59:17 +0800 Subject: [PATCH] spinlock/x86: move stack declaration before code [ upstream commit f7f18e92a51276f1e23a0595f59615f79323b358 ] 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") Signed-off-by: Andy Green Reviewed-by: Stephen Hemminger --- lib/librte_eal/common/include/arch/x86/rte_spinlock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h index 8e630c219..577236a3e 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h +++ b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h @@ -104,10 +104,12 @@ static inline int rte_tm_supported(void) static inline int rte_try_tm(volatile int *lock) { + int retries; + if (!rte_rtm_supported) return 0; - int retries = RTE_RTM_MAX_RETRIES; + retries = RTE_RTM_MAX_RETRIES; while (likely(retries--)) { -- 2.14.2