Skip to contentSkip to conversation

cpuidle: fix kernel doc warnings

PATCH In review Benjamin Gaignard 3 participants 3 messages Jan 21, 2020 – Jan 22, 2020 CPU idle time management framework

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cpuidle: fix kernel doc warnings

Fix cpuidle_find_deepest_state() kernel documentation to avoid warnings when compiling with W=1.

---
CC: [email protected]
version 2:
- fix the comment done by Randy

 drivers/cpuidle/cpuidle.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/cpuidle/cpuidle.c +3 -0
index 33d19c8eb027..19c6dee88921 100644
@@ -121,6 +121,9 @@ void cpuidle_use_deepest_state(u64 latency_limit_ns)
  * cpuidle_find_deepest_state - Find the deepest available idle state.
  * @drv: cpuidle driver for the given CPU.
  * @dev: cpuidle device for the given CPU.
+ * @latency_limit_ns: Idle state exit latency limit
+ *
+ * Return: the index of the deepest available idle state.
  */
 int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
 			       struct cpuidle_device *dev,
Signature · 1 line
2.15.0
Acked-by on v2 1/1
#1 lore raw
Quoted 3 lines · Benjamin Gaignard

Fix cpuidle_find_deepest_state() kernel documentation to avoid warnings when compiling with W=1.

Thanks.

Quoted 22 lines

---
CC: [email protected]
version 2:
- fix the comment done by Randy

 drivers/cpuidle/cpuidle.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/cpuidle/cpuidle.c +3 -0
index 33d19c8eb027..19c6dee88921 100644
@@ -121,6 +121,9 @@ void cpuidle_use_deepest_state(u64 latency_limit_ns)
  * cpuidle_find_deepest_state - Find the deepest available idle state.
  * @drv: cpuidle driver for the given CPU.
  * @dev: cpuidle device for the given CPU.
+ * @latency_limit_ns: Idle state exit latency limit
+ *
+ * Return: the index of the deepest available idle state.
  */
 int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
 			       struct cpuidle_device *dev,
Signature · 2 lines
~Randy
Reported-by: Randy Dunlap <[email protected]>
#2 lore raw
Quoted 7 lines · Randy Dunlap
Quoted 3 lines · Benjamin Gaignard

Fix cpuidle_find_deepest_state() kernel documentation to avoid warnings when compiling with W=1.

The patch has been queued up as 5.6 material under modified subject ("cpuidle: fix cpuidle_find_deepest_state() kerneldoc warnings"), thanks!

Quoted 27 lines
Quoted 13 lines

---
CC: [email protected]
version 2:
- fix the comment done by Randy

 drivers/cpuidle/cpuidle.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/cpuidle/cpuidle.c +0 -0
index 33d19c8eb027..19c6dee88921 100644

drivers/cpuidle/cpuidle.c void cpuidle_use_deepest_state(u64 latency_limit_ns) · line 129

Quoted 9 lines
drivers/cpuidle/cpuidle.c +3 -0
@@ -121,6 +121,9 @@ void cpuidle_use_deepest_state(u64 latency_limit_ns)
  * cpuidle_find_deepest_state - Find the deepest available idle state.
  * @drv: cpuidle driver for the given CPU.
  * @dev: cpuidle device for the given CPU.
+ * @latency_limit_ns: Idle state exit latency limit
+ *
+ * Return: the index of the deepest available idle state.
  */
 int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
                             struct cpuidle_device *dev,

--
~Randy