Skip to contentSkip to conversation

PM: hibernate: fix the kerneldoc comment for swsusp_check and swsusp_close

PATCH Applied Christoph Hellwig 2 participants 2 messages Sep 25, 2023 – Sep 26, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 kernel/power/swap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/power/swap.c +2 -2
index 48ec6a8ef9c445..b9763f2f632b8a 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 27 lines · Christoph Hellwig

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.

---
 kernel/power/swap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/power/swap.c +1 -1
index 48ec6a8ef9c445..b9763f2f632b8a 100644
@@ -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!