From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A19301B0FF; Thu, 27 Sep 2018 07:44:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2018 22:44:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,309,1534834800"; d="scan'208";a="76563846" Received: from unknown (HELO localhost.localdomain.localdomain) ([10.224.122.193]) by orsmga008.jf.intel.com with ESMTP; 26 Sep 2018 22:43:58 -0700 From: Nikhil Rao To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, bruce.richardson@intel.com, Nikhil Rao , erik.g.carrillo@intel.com, stable@dpdk.org Date: Thu, 27 Sep 2018 11:16:14 +0530 Message-Id: <1538027175-87290-1-git-send-email-nikhil.rao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1536155732-155032-1-git-send-email-nikhil.rao@intel.com> References: <1536155732-155032-1-git-send-email-nikhil.rao@intel.com> Subject: [dpdk-stable] [PATCH v2 1/2] test: fix event timer compiler warning 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: Thu, 27 Sep 2018 05:44:19 -0000 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: erik.g.carrillo@intel.com Cc: stable@dpdk.org Signed-off-by: Nikhil Rao --- v2: * fix compiler warning in event timer autotest. 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 93471db..a45b7d1 100644 --- a/test/test/test_event_timer_adapter.c +++ b/test/test/test_event_timer_adapter.c @@ -792,7 +792,7 @@ TEST_ASSERT_EQUAL(n, ret, "Failed to cancel complete burst of " "event timers"); rte_mempool_put_bulk(eventdev_test_mempool, (void **)ev_tim, - ret); + RTE_MIN(ret, MAX_BURST)); cancel_count += ret; } -- 1.8.3.1