From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id AB2211B873 for ; Tue, 15 May 2018 15:48:11 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id m129-v6so1238103wmb.3 for ; Tue, 15 May 2018 06:48:11 -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=+h4Zv5Wvwx5xFSyObojOZXB00DjsY6WkItP6RKS7HJA=; b=nBmRxiCLOxRFft2pIaIKmN1XMiIu5pxOAufkdPLB9Y2b9qO2geZZvyD8ROt0F1LKWw T3C9/rwgB2koTSZXVNn18W/VwmhsbT/XuQedwIgTeD2Y0azitv93IRAwaZyDELwxPlL4 opjfmKxZZnb9XQqO0t42o4Nis7SvKQZd0Xs2SywYDeavi/Xoe9vUJb1YlOZxlZ+EJ868 PtXFZ7v7EbGHDp8ktDanRB7tNYSXt50wVAACiJ8Oexnzky4qoLkhuFF4qVul8CBstNOT +axA0iLHkQX85+0Tk3WflAvdy3jxwvFBNTjiMz8QGm20qXnYZWDOexN7cpc73uxXCM6b jf6A== 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=+h4Zv5Wvwx5xFSyObojOZXB00DjsY6WkItP6RKS7HJA=; b=HaQfXaMntkPnlpdP9vcNolMbaveZpDZKU5LXvbJE1Sv56QGfCVVXa5fbrzkJ5gpdn9 pTJQvmoBDdEU5oLWXML19+WuDLQWReCoAn4TmDGvCnQxVIihZGgtbNmXNkpfhBt1ds23 0lSj3h9kCkaEwOsmeoVp4Y2xhyREHMg1IILlsMIXdnAumLZJ2FF1mud08g8qhCKb80vy fcPsE1MmfRRl06LSK/mnv268MFWmX7ppKWVnlpoUHLDdcthttBFncbXg2hXUbHZDC1Me Jxz+zU7T/oUw2z5MU6cnUte1kUqNmNn95fhYKdX4PI2MhkzQSoBO8HCKYMYGZaXDwkyV WEsg== X-Gm-Message-State: ALKqPwclp0Ry0IGIDojmzi2bYrN1t++NVkQruG+f2SmNea2rzkJCtEl3 xgD2xokhvGu2vpT5WeiGiY8= X-Google-Smtp-Source: AB8JxZrkmRFmsV2uvMIiYhsVyaKBT8WgQLL4RSnfESZymFWWIAujolmP73Z+HVpK61HuQ9NPbFg7+g== X-Received: by 2002:a1c:96c1:: with SMTP id y184-v6mr7839258wmd.156.1526392091379; Tue, 15 May 2018 06:48:11 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id 141-v6sm682296wmf.35.2018.05.15.06.48.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:48:10 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: Stephen Hemminger , dpdk stable Date: Tue, 15 May 2018 14:46:28 +0100 Message-Id: <20180515134731.9337-17-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 'hash: explicit casts for truncation in CRC32c' 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:11 -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 35420b7eb810b5a27a95c3413e23d0e4f9fcacce Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 12 May 2018 10:00:37 +0800 Subject: [PATCH] hash: explicit casts for truncation in CRC32c [ upstream commit c981825388f81fb191f5a79c80adf0fdb074e584 ] In function 'crc32c_sse42_u64_mimic': rte_hash_crc.h:402:40: warning: conversion from 'uint64_t' {aka 'long unsigned int'} to 'uint32_t' {aka 'unsigned int'} may change value [-Wconversion] init_val = crc32c_sse42_u32(d.u32[0], init_val); Fixes: 00bf774bab0b ("hash: add assembly implementation of CRC32 intrinsics") Signed-off-by: Andy Green Reviewed-by: Stephen Hemminger --- lib/librte_hash/rte_hash_crc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_hash/rte_hash_crc.h b/lib/librte_hash/rte_hash_crc.h index 5f5fb3db1..cf28031b3 100644 --- a/lib/librte_hash/rte_hash_crc.h +++ b/lib/librte_hash/rte_hash_crc.h @@ -398,9 +398,9 @@ crc32c_sse42_u64_mimic(uint64_t data, uint64_t init_val) } d; d.u64 = data; - init_val = crc32c_sse42_u32(d.u32[0], init_val); - init_val = crc32c_sse42_u32(d.u32[1], init_val); - return init_val; + init_val = crc32c_sse42_u32(d.u32[0], (uint32_t)init_val); + init_val = crc32c_sse42_u32(d.u32[1], (uint32_t)init_val); + return (uint32_t)init_val; } #endif @@ -412,7 +412,7 @@ crc32c_sse42_u64(uint64_t data, uint64_t init_val) "crc32q %[data], %[init_val];" : [init_val] "+r" (init_val) : [data] "rm" (data)); - return init_val; + return (uint32_t)init_val; } #endif -- 2.14.2