From: Nikhil Rao <nikhil.rao@intel.com>
To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com
Cc: dev@dpdk.org, bruce.richardson@intel.com,
Nikhil Rao <nikhil.rao@intel.com>,
erik.g.carrillo@intel.com, stable@dpdk.org
Subject: [dpdk-dev] [PATCH v2 1/2] test: fix event timer compiler warning
Date: Thu, 27 Sep 2018 11:16:14 +0530 [thread overview]
Message-ID: <1538027175-87290-1-git-send-email-nikhil.rao@intel.com> (raw)
In-Reply-To: <1536155732-155032-1-git-send-email-nikhil.rao@intel.com>
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
next prev parent reply other threads:[~2018-09-27 5:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-05 13:55 [dpdk-dev] [PATCH] test/event: add adapter tests to meson build Nikhil Rao
2018-09-05 14:06 ` [dpdk-dev] [PATCH v2] " Nikhil Rao
2018-09-07 15:58 ` Bruce Richardson
2018-09-27 5:46 ` Nikhil Rao [this message]
2018-09-27 5:46 ` [dpdk-dev] [PATCH v2 2/2] " Nikhil Rao
2018-09-27 11:09 ` Bruce Richardson
2018-09-28 10:35 ` Jerin Jacob
2018-09-27 11:08 ` [dpdk-dev] [PATCH v2 1/2] test: fix event timer compiler warning Bruce Richardson
2018-09-28 10:36 ` Jerin Jacob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1538027175-87290-1-git-send-email-nikhil.rao@intel.com \
--to=nikhil.rao@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=erik.g.carrillo@intel.com \
--cc=jerin.jacob@caviumnetworks.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).