diff mbox series

PM: hibernate: repair Excess function parameter warning

Message ID 20231220060246.511-1-rdunlap@infradead.org (mailing list archive)
State Mainlined, archived
Headers show
Series PM: hibernate: repair Excess function parameter warning | expand

Commit Message

Randy Dunlap Dec. 20, 2023, 6:02 a.m. UTC
Function swsusp_close() does not have any parameters, so remove the
description of parameter @exclusive to prevent this warning.

swap.c:1573: warning: Excess function parameter 'exclusive' description in 'swsusp_close'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Len Brown <len.brown@intel.com>
Cc: linux-pm@vger.kernel.org
---
 kernel/power/swap.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Rafael J. Wysocki Dec. 20, 2023, 6:22 p.m. UTC | #1
On Wed, Dec 20, 2023 at 7:02 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> Function swsusp_close() does not have any parameters, so remove the
> description of parameter @exclusive to prevent this warning.
>
> swap.c:1573: warning: Excess function parameter 'exclusive' description in 'swsusp_close'
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: "Rafael J. Wysocki" <rafael@kernel.org>
> Cc: Pavel Machek <pavel@ucw.cz>
> Cc: Len Brown <len.brown@intel.com>
> Cc: linux-pm@vger.kernel.org
> ---
>  kernel/power/swap.c |    1 -
>  1 file changed, 1 deletion(-)
>
> diff -- a/kernel/power/swap.c b/kernel/power/swap.c
> --- a/kernel/power/swap.c
> +++ b/kernel/power/swap.c
> @@ -1566,7 +1566,6 @@ put:
>
>  /**
>   * swsusp_close - close resume device.
> - * @exclusive: Close the resume device which is exclusively opened.
>   */
>
>  void swsusp_close(void)

Applied (under a slightly edited subject) as 6.8 material, thanks!
diff mbox series

Patch

diff -- a/kernel/power/swap.c b/kernel/power/swap.c
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -1566,7 +1566,6 @@  put:
 
 /**
  * swsusp_close - close resume device.
- * @exclusive: Close the resume device which is exclusively opened.
  */
 
 void swsusp_close(void)