From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id BCEE52C8 for ; Wed, 23 May 2018 14:10:43 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id w3-v6so18338468wrl.12 for ; Wed, 23 May 2018 05:10:43 -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=tUa9OmkAkgYoAAVwl7IsYKUbrXb6zdnmslM/uzUpoLg=; b=REOyg/3seW0TTgjdUziANHoSRF8R1WtQNeqXQKZkBuAAM8YkAp1FwKnYIkXTHSVh6s U20qvt2WCoyfemRH8xDC5omD5xYhwFULKIagvSRc56rmA+KzjNKUX794RAlXLxPnZEL0 Iti5VfxX6vLRu1/l5V/wocHen9JZSqk3/67IcFsZIGbxwgF8wFHbmEIfji+Xxgg6dP7Q TM42A6e33f9P4zTaITcyGMBY3w7sIAMNCbdsQaAGQcpsbmN/iHM07u6ro6xlNlN48FP8 Nn48Qfxprs7zRBj/hQGE+VDQsKqLM5EPLsYe/XsfKn8mDlqDlB9hj7T3NZ0EhA1bvLYI o3KA== 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=tUa9OmkAkgYoAAVwl7IsYKUbrXb6zdnmslM/uzUpoLg=; b=qUkgS8WjkuRYhH9p80IDnHoB5HAzLKNReO1W9KbjS7eE8k7prbYG6AhqA5GHIQduFx 5zG8/J1V3FQUVYQdjtNkA19Y7ezJ1sB5GKxfqsJ3K0VkoKLa5vImNseMOJURlRuHvw56 aQuJ0xLxQjC51n9c5o+TMgS/GUwAtweG2FfV6uBKgkh1krwuxeWZi/8woOe/Y4baZdr+ F1+AYG80kDwJILV3cM9UEAHDp+LgnAM4aIV+etV36ZoqX2uBwr/ryHewcuRvUkJYdmdK kj6Zy7/rPbTCFAtmIT0HrMtyr3Gz28F/NwXOEIQoFPbydajZHqpbPiMMIxeDkv365ZBo BBJQ== X-Gm-Message-State: ALKqPwc9OsPT44Z173o65Ytv0ug610d9rCq6t7Fxm2j7YytLmWtd+h+h KjV0VWLXe7DobHJTX6wCk9U= X-Google-Smtp-Source: AB8JxZor5tfHrlaBVSyqWlujFHaCEOVbep2M+CNaZLhoSfStfml6foE8s6bESV2x/VPNC24ndxxYeQ== X-Received: by 2002:adf:d0d0:: with SMTP id z16-v6mr2376429wrh.152.1527077443474; Wed, 23 May 2018 05:10:43 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id g192-v6sm2922116wmd.36.2018.05.23.05.10.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:10:42 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: dpdk stable Date: Wed, 23 May 2018 13:09:27 +0100 Message-Id: <20180523121010.8385-16-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'mbuf: explicit cast of size on detach' 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: Wed, 23 May 2018 12:10:43 -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/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 92acd3e399352bef5b9b9fd503a40b4f2ccd529c Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 17 May 2018 21:50:22 +0800 Subject: [PATCH] mbuf: explicit cast of size on detach [ upstream commit c779ebdca0e4765158bd1eaa6f65c9d714605fae ] GCC 8.1 warned: In function 'rte_pktmbuf_detach': rte_mbuf.h:1580:14: warning: conversion from 'long unsigned int' to 'uint32_t' {aka 'unsigned int'} may change value [-Wconversion] mbuf_size = sizeof(struct rte_mbuf) + priv_size; ^~~~~~ Fixes: 355e6735b335 ("mbuf: fix cloning with private mbuf data") Signed-off-by: Andy Green --- lib/librte_mbuf/rte_mbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index a66ac781c..f50607c8c 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -1350,7 +1350,7 @@ static inline void rte_pktmbuf_detach(struct rte_mbuf *m) uint32_t mbuf_size, buf_len, priv_size; priv_size = rte_pktmbuf_priv_size(mp); - mbuf_size = sizeof(struct rte_mbuf) + priv_size; + mbuf_size = (uint32_t)(sizeof(struct rte_mbuf) + priv_size); buf_len = rte_pktmbuf_data_room_size(mp); m->priv_size = priv_size; -- 2.14.2