From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id A43BC1B113 for ; Wed, 21 Nov 2018 17:49:41 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0C65030A1A00; Wed, 21 Nov 2018 16:49:41 +0000 (UTC) Received: from ktraynor.remote.csb (unknown [10.36.118.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id F0BD65C21E; Wed, 21 Nov 2018 16:49:39 +0000 (UTC) From: Kevin Traynor To: Nikhil Rao Cc: Bruce Richardson , dpdk stable Date: Wed, 21 Nov 2018 16:47:21 +0000 Message-Id: <20181121164828.32249-7-ktraynor@redhat.com> In-Reply-To: <20181121164828.32249-1-ktraynor@redhat.com> References: <20181121164828.32249-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 21 Nov 2018 16:49:41 +0000 (UTC) Subject: [dpdk-stable] patch 'test/event: fix build for timer adapter' has been queued to stable release 18.08.1 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, 21 Nov 2018 16:49:41 -0000 Hi, FYI, your patch has been queued to stable release 18.08.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/27/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Kevin Traynor --- >>From 7e5b9970c7027521b5ec8c2b0735542111b957e8 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Thu, 27 Sep 2018 11:16:14 +0530 Subject: [PATCH] test/event: fix build for timer adapter [ upstream commit 6298ec1bf8539e259595411a4af382487d32ec5c ] Limit the number of objects passed to rte_mempool_put_bulk() to the size of the object table. This fix eliminates a compiler warning (array-bounds) triggered when the march command line parameter to gcc is set to nehalem. Fixes: d1f3385d0076 ("test: add event timer adapter auto-test") Signed-off-by: Nikhil Rao Acked-by: Bruce Richardson --- test/test/test_event_timer_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_event_timer_adapter.c b/test/test/test_event_timer_adapter.c index 93471db1d..a45b7d195 100644 --- a/test/test/test_event_timer_adapter.c +++ b/test/test/test_event_timer_adapter.c @@ -793,5 +793,5 @@ _cancel_burst_thread(void *args) "event timers"); rte_mempool_put_bulk(eventdev_test_mempool, (void **)ev_tim, - ret); + RTE_MIN(ret, MAX_BURST)); cancel_count += ret; -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-21 16:44:31.140415677 +0000 +++ 0007-test-event-fix-build-for-timer-adapter.patch 2018-11-21 16:44:30.000000000 +0000 @@ -1,15 +1,16 @@ -From 6298ec1bf8539e259595411a4af382487d32ec5c Mon Sep 17 00:00:00 2001 +From 7e5b9970c7027521b5ec8c2b0735542111b957e8 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Thu, 27 Sep 2018 11:16:14 +0530 Subject: [PATCH] test/event: fix build for timer adapter +[ upstream commit 6298ec1bf8539e259595411a4af382487d32ec5c ] + Limit the number of objects passed to rte_mempool_put_bulk() to the size of the object table. This fix eliminates a compiler warning (array-bounds) triggered when the march command line parameter to gcc is set to nehalem. Fixes: d1f3385d0076 ("test: add event timer adapter auto-test") -Cc: stable@dpdk.org Signed-off-by: Nikhil Rao Acked-by: Bruce Richardson