patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH v2 1/2] test: fix event timer compiler warning
       [not found] <1536155732-155032-1-git-send-email-nikhil.rao@intel.com>
@ 2018-09-27  5:46 ` Nikhil Rao
  2018-09-27 11:08   ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Nikhil Rao @ 2018-09-27  5:46 UTC (permalink / raw)
  To: thomas, jerin.jacob
  Cc: dev, bruce.richardson, Nikhil Rao, erik.g.carrillo, stable

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 <nikhil.rao@intel.com>
---

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [PATCH v2 1/2] test: fix event timer compiler warning
  2018-09-27  5:46 ` [dpdk-stable] [PATCH v2 1/2] test: fix event timer compiler warning Nikhil Rao
@ 2018-09-27 11:08   ` Bruce Richardson
  2018-09-28 10:36     ` Jerin Jacob
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2018-09-27 11:08 UTC (permalink / raw)
  To: Nikhil Rao; +Cc: thomas, jerin.jacob, dev, erik.g.carrillo, stable

On Thu, Sep 27, 2018 at 11:16:14AM +0530, Nikhil Rao wrote:
> 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 <nikhil.rao@intel.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [PATCH v2 1/2] test: fix event timer compiler warning
  2018-09-27 11:08   ` Bruce Richardson
@ 2018-09-28 10:36     ` Jerin Jacob
  0 siblings, 0 replies; 3+ messages in thread
From: Jerin Jacob @ 2018-09-28 10:36 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: Nikhil Rao, thomas, dev, erik.g.carrillo, stable

-----Original Message-----
> Date: Thu, 27 Sep 2018 12:08:56 +0100
> From: Bruce Richardson <bruce.richardson@intel.com>
> To: Nikhil Rao <nikhil.rao@intel.com>
> CC: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, dev@dpdk.org,
>  erik.g.carrillo@intel.com, stable@dpdk.org
> Subject: Re: [PATCH v2 1/2] test: fix event timer compiler warning
> User-Agent: Mutt/1.10.1 (2018-07-13)
> 
> 
> On Thu, Sep 27, 2018 at 11:16:14AM +0530, Nikhil Rao wrote:
> > 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 <nikhil.rao@intel.com>
> > ---
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied to dpdk-next-eventdev/master. Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-28 10:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1536155732-155032-1-git-send-email-nikhil.rao@intel.com>
2018-09-27  5:46 ` [dpdk-stable] [PATCH v2 1/2] test: fix event timer compiler warning Nikhil Rao
2018-09-27 11:08   ` Bruce Richardson
2018-09-28 10:36     ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).