diff mbox series

PM / suspend: fix kernel-doc markup

Message ID 1605257895-5536-1-git-send-email-alex.shi@linux.alibaba.com
State Accepted
Commit ab150c3f80dcce670926ab3ca412be5047011d22
Headers show
Series PM / suspend: fix kernel-doc markup | expand

Commit Message

Alex Shi Nov. 13, 2020, 8:58 a.m. UTC
Add parameter explanation to fix kernel-doc marks:

kernel/power/suspend.c:233: warning: Function parameter or member
'state' not described in 'suspend_valid_only_mem'
kernel/power/suspend.c:344: warning: Function parameter or member
'state' not described in 'suspend_prepare'

Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>

Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> 
Cc: Len Brown <len.brown@intel.com> 
Cc: Pavel Machek <pavel@ucw.cz> 
Cc: linux-pm@vger.kernel.org 
Cc: linux-kernel@vger.kernel.org 
---
 kernel/power/suspend.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.29.GIT

Comments

Rafael J. Wysocki Nov. 23, 2020, 5:26 p.m. UTC | #1
On Fri, Nov 13, 2020 at 9:58 AM Alex Shi <alex.shi@linux.alibaba.com> wrote:
>

> Add parameter explanation to fix kernel-doc marks:

>

> kernel/power/suspend.c:233: warning: Function parameter or member

> 'state' not described in 'suspend_valid_only_mem'

> kernel/power/suspend.c:344: warning: Function parameter or member

> 'state' not described in 'suspend_prepare'

>

> Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>

> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>

> Cc: Len Brown <len.brown@intel.com>

> Cc: Pavel Machek <pavel@ucw.cz>

> Cc: linux-pm@vger.kernel.org

> Cc: linux-kernel@vger.kernel.org

> ---

>  kernel/power/suspend.c | 2 ++

>  1 file changed, 2 insertions(+)

>

> diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c

> index 32391acc806b..502d86ed99c7 100644

> --- a/kernel/power/suspend.c

> +++ b/kernel/power/suspend.c

> @@ -224,6 +224,7 @@ EXPORT_SYMBOL_GPL(suspend_set_ops);

>

>  /**

>   * suspend_valid_only_mem - Generic memory-only valid callback.

> + * @state: Suspend state to be set

>   *

>   * Platform drivers that implement mem suspend only and only need to check for

>   * that in their .valid() callback can use this instead of rolling their own

> @@ -335,6 +336,7 @@ static int suspend_test(int level)

>

>  /**

>   * suspend_prepare - Prepare for entering system sleep state.

> + * @state: suspend state which sleep from

>   *

>   * Common code run for every system sleep state that can be entered (except for

>   * hibernation).  Run suspend notifiers, allocate the "suspend" console and

> --


Applied as 5.11 material, but I've changed the originally proposed
parameter descriptions into "Target system sleep state" in both cases.

Thanks!
diff mbox series

Patch

diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 32391acc806b..502d86ed99c7 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -224,6 +224,7 @@  EXPORT_SYMBOL_GPL(suspend_set_ops);
 
 /**
  * suspend_valid_only_mem - Generic memory-only valid callback.
+ * @state: Suspend state to be set
  *
  * Platform drivers that implement mem suspend only and only need to check for
  * that in their .valid() callback can use this instead of rolling their own
@@ -335,6 +336,7 @@  static int suspend_test(int level)
 
 /**
  * suspend_prepare - Prepare for entering system sleep state.
+ * @state: suspend state which sleep from
  *
  * Common code run for every system sleep state that can be entered (except for
  * hibernation).  Run suspend notifiers, allocate the "suspend" console and