summaryrefslogtreecommitdiff
path: root/arch/mips/mach-octeon/include/mach
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-07-14 03:37:32 +0300
committerTom Rini <trini@konsulko.com>2023-07-20 21:48:20 +0300
commitbfbab7b27e14f7074ee27c9d584497beabd7ced1 (patch)
tree304295008d33f5bc99952b99256138814dab0a2a /arch/mips/mach-octeon/include/mach
parent0274eb61e1f2a8e053fb028b6c668c67c0b75b9c (diff)
downloadu-boot-bfbab7b27e14f7074ee27c9d584497beabd7ced1.tar.xz
mips: octeon: Correct types in cvmx-pko3-queue
When building with gcc-13.1 we see that the prototype for cvmx_pko3_sq_config_children does not match the declaration. Make these match and correct a typo in the function's version of the docs that the prototype did not have, as part of keeping those in-sync. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/mips/mach-octeon/include/mach')
-rw-r--r--arch/mips/mach-octeon/include/mach/cvmx-pko3-queue.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/mips/mach-octeon/include/mach/cvmx-pko3-queue.h b/arch/mips/mach-octeon/include/mach/cvmx-pko3-queue.h
index b3f61d75f2..3931191fe2 100644
--- a/arch/mips/mach-octeon/include/mach/cvmx-pko3-queue.h
+++ b/arch/mips/mach-octeon/include/mach/cvmx-pko3-queue.h
@@ -6,6 +6,8 @@
#ifndef __CVMX_PKO3_QUEUE_H__
#define __CVMX_PKO3_QUEUE_H__
+enum cvmx_pko3_level_e;
+
/**
* @INTERNAL
*
@@ -46,11 +48,10 @@ int cvmx_pko3_get_port_queue(int xiface, int index);
* The children can have fair round-robin or priority-based scheduling
* when multiple children are assigned a single parent.
*
- * @param node is the OCI node location for the queues to be configured
- * @param parent_level is the level of the parent queue, 2 to 5.
+ * @param node on which to operate
+ * @param child_level is the level of the child queue
* @param parent_queue is the number of the parent Scheduler Queue
* @param child_base is the number of the first child SQ or DQ to assign to
- * @param parent
* @param child_count is the number of consecutive children to assign
* @param stat_prio_count is the priority setting for the children L2 SQs
*
@@ -65,8 +66,10 @@ int cvmx_pko3_get_port_queue(int xiface, int index);
*
* Note: this function supports the configuration of node-local unit.
*/
-int cvmx_pko3_sq_config_children(unsigned int node, unsigned int parent_level,
- unsigned int parent_queue, unsigned int child_base,
+int cvmx_pko3_sq_config_children(unsigned int node,
+ enum cvmx_pko3_level_e child_level,
+ unsigned int parent_queue,
+ unsigned int child_base,
unsigned int child_count, int stat_prio_count);
/*