From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by dpdk.org (Postfix) with ESMTP id D78F11B7C2 for ; Tue, 15 May 2018 15:47:59 +0200 (CEST) Received: by mail-wr0-f182.google.com with SMTP id p18-v6so237402wrm.1 for ; Tue, 15 May 2018 06:47:59 -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=3vWR1ThgR7DH6NcNevNV4+F2igfBtZmn9b/dcLyk8EM=; b=DdvmuxagB7kpL6xR6SUQWLOQ/hVYA9lWSlySrYvQ/VsTC/rFRtZKUPqZksduNtUdhM R33N20JOslyKADwPzLXgiNrIqrq33x0iwm040DL0IaLYT/N/ckun0rQU2wBrKxC426/U O4PCTYLRGIEG/ElEthr7C/pSXgsbokasj/uRdPUXYu9FoUVDiPcw3l6zRn4f0M3+H0hW TJ1IQCggAb0TRy7frzlQ6Qlm+Nz8Zh31vyqUWOsDTDpe34BgAYJvoMRjAd0sIxy9ktGN XtuFjx20e/LBu3UwUowM3AteCmCFtLS3wtakU6Jq7d9YUYAJHTjh4RYxOjbeZzuO//NS bqMA== 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=3vWR1ThgR7DH6NcNevNV4+F2igfBtZmn9b/dcLyk8EM=; b=thFNXECF+DCo+mHGQWuCN6b5bEQAxMxN+ztZAZE9OgOiM58hMdC87xw/ZnaKzQvEzl eLAr/1zf8Fxj0C27Ftwj5gEjM2n0Yn661IiBvLmbn8Sz/gP7/G7GvAex52T6dZf5k+TU AGj8Q4OJdc+maFBeMhvnO2V6Dri3vlHb7saP6vkM0db+f5VS7d+1YscoTqLXUPvCKmVM kDj/q1pcFBJMHZCzUNotwZuTGye2bx/+9wCo8NPbuCeJdkYgMcCylgVO/QOZrL6gSj9I ALVRXNBiSM9+spmLbCYCI191e8eBlCa4/WTil3LTCndFXO8JBzBTzvYylem+gJHfZJIB v0Tg== X-Gm-Message-State: ALKqPwfJPTA+1GSlE0rdv7roR4URj4D/r7BTPnh63vZASn5VJKehxHnd z8FWNhLdCvIaxzZbjQxPFKU= X-Google-Smtp-Source: AB8JxZouzg2HtoOsXVH7YveeAIIuBqXWyLN9KV4yBDEHRCstVKjBv7fbmpEEXbVhMtIiVuOWol3Otw== X-Received: by 2002:adf:abc6:: with SMTP id s64-v6mr10657134wrc.66.1526392079567; Tue, 15 May 2018 06:47:59 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id 33-v6sm158820wrs.5.2018.05.15.06.47.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:47:58 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: Stephen Hemminger , dpdk stable Date: Tue, 15 May 2018 14:46:22 +0100 Message-Id: <20180515134731.9337-11-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'eal: explicit cast of core id when getting index' has been queued to stable release 18.02.2 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 13:48:00 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 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 c6b31197f2a6d069bbd1e5d0cc6cfb396f390344 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 12 May 2018 09:59:07 +0800 Subject: [PATCH] eal: explicit cast of core id when getting index [ upstream commit ef3c7b50ff39a37a93ecea47481d392d8fcb2936 ] rte_lcore.h: In function 'rte_lcore_index': rte_lcore.h:122:14: warning: conversion to 'int' from 'unsigned int' may change the sign of the result [-Wsign-conversion] lcore_id = rte_lcore_id(); Fixes: 5583037a7950 ("eal: get relative core index") Signed-off-by: Andy Green Reviewed-by: Stephen Hemminger --- lib/librte_eal/common/include/rte_lcore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h index 047222030..bcf2bfb79 100644 --- a/lib/librte_eal/common/include/rte_lcore.h +++ b/lib/librte_eal/common/include/rte_lcore.h @@ -119,7 +119,7 @@ rte_lcore_index(int lcore_id) if (lcore_id >= RTE_MAX_LCORE) return -1; if (lcore_id < 0) - lcore_id = rte_lcore_id(); + lcore_id = (int)rte_lcore_id(); return lcore_config[lcore_id].core_index; } -- 2.14.2