diff mbox series

[API-NEXT,v12,1/8] api: queue: change order lock count data type

Message ID 1505458814-11509-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v12,1/8] api: queue: change order lock count data type | expand

Commit Message

Github ODP bot Sept. 15, 2017, 7 a.m. UTC
From: Balasubramanian Manoharan <bala.manoharan@linaro.org>


change order lock count data type from unsigned to uint32_t

Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>

---
/** Email created from pull request 160 (bala-manoharan:api_sched_order_lock)
 ** https://github.com/Linaro/odp/pull/160
 ** Patch: https://github.com/Linaro/odp/pull/160.patch
 ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1
 ** Merge commit sha: 8654cc5ecbcd8f0299a0c56a1e2ff23ba87c1d67
 **/
 include/odp/api/spec/queue.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h
index 9dd0a5618..23261de2b 100644
--- a/include/odp/api/spec/queue.h
+++ b/include/odp/api/spec/queue.h
@@ -106,7 +106,7 @@  typedef struct odp_queue_capability_t {
 	uint32_t max_queues;
 
 	/** Maximum number of ordered locks per queue */
-	unsigned max_ordered_locks;
+	uint32_t max_ordered_locks;
 
 	/** Maximum number of scheduling groups */
 	unsigned max_sched_groups;
@@ -393,10 +393,11 @@  odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue);
  *
  * @param queue   Queue handle
  *
- * @return Number of ordered locks associated with this ordered queue
- * @retval <0 Specified queue is not ordered
+ * @return	Number of ordered locks associated with this ordered queue
+ * @retval 0	Specified queue is not ordered or No ordered lock associated
+ *		with the ordered queue.
  */
-int odp_queue_lock_count(odp_queue_t queue);
+uint32_t odp_queue_lock_count(odp_queue_t queue);
 
 /**
  * Get printable value for an odp_queue_t