PM: hibernate: fix the kerneldoc comment for swsusp_check and swsusp_close
Subsystems (2)
PATCH 1/1 PM: hibernate: fix the kerneldoc comment for swsusp_check and swsusp_close
The comments for both swsusp_check and swsusp_close don't actually describe what they are doing.
Just removing the comments would probably better, but as the file is full of useless kerneldoc comments for non-exported symbols this fits in better with the style.
Signed-off-by Christoph Hellwig <[email protected]>
--- kernel/power/swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/power/swap.c +2 -2
@@ -1513,7 +1513,7 @@ int swsusp_read(unsigned int *flags_p)static void *swsusp_holder;/** -* swsusp_check - Check for swsusp signature in the resume device +* swsusp_check - Open the resume device and check for the swsusp signature. * @exclusive: Open the resume device exclusively. */
@@ -1567,7 +1567,7 @@ int swsusp_check(bool exclusive) }/** -* swsusp_close - close swap device. +* swsusp_close - close resume device. * @exclusive: Close the resume device which is exclusively opened. */
Signature · 1 line
2.39.2
Quoted 27 lines · Christoph Hellwig
The comments for both
swsusp_checkandswsusp_closedon't actually describe what they are doing.Just removing the comments would probably better, but as the file is full of useless kerneldoc comments for non-exported symbols this fits in better with the style.
Signed-off-by Christoph Hellwig <[email protected]>--- kernel/power/swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)kernel/power/swap.c +1
-1@@ -1513,7 +1513,7 @@ int swsusp_read(unsigned int *flags_p)static void *swsusp_holder;/** -* swsusp_check - Check for swsusp signature in the resume device +* swsusp_check - Open the resume device and check for the swsusp signature. * @exclusive: Open the resume device exclusively. */
kernel/power/swap.c int swsusp_check(bool exclusive)
Quoted 9 lines
kernel/power/swap.c +1
-2@@ -1567,7 +1567,7 @@ int swsusp_check(bool exclusive) }/** -* swsusp_close - close swap device. +* swsusp_close - close resume device. * @exclusive: Close the resume device which is exclusively opened. */ --
Applied as 6.7 material, thanks!