block: Fix non-kernel-doc comment
Subsystems (2)
PATCH 1/1 block: Fix non-kernel-doc comment
Fixes the following W=1 kernel build warning:
kernel/power/swap.c:120: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst.
--- kernel/power/swap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
kernel/power/swap.c +4 -4
@@ -88,7 +88,7 @@ struct swap_map_page_list {struct swap_map_page_list *next; }; -/** +/* * The swap_map_handle structure is used for handling swap in * a file-alike way */
@@ -116,7 +116,7 @@ struct swsusp_header {static struct swsusp_header *swsusp_header; -/** +/* * The following functions are used for tracing the allocated * swap pages, so that they can be freed in case of an error. */
@@ -170,7 +170,7 @@ static int swsusp_extents_insert(unsigned long swap_offset)return 0 ; } -/** +/* * alloc_swapdev_block - allocate a swap page and register that it has * been allocated, so that it can be freed in case of an error. */
@@ -189,7 +189,7 @@ sector_t alloc_swapdev_block(int swap)return 0 ; } -/** +/* * free_all_swap_pages - free swap pages allocated for saving image data. * It also frees the extents used to register which swap entries had been * allocated.
Signature · 1 line
2.20.1.7.g153144c
Hi--
Quoted 8 lines · Jiapeng Chong
Fixes the following W=1 kernel build warning:
kernel/power/swap.c:120: warning: This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
The diff looks OK to me, but the Subject is quite misleading. There are no "block:" patch contents here, just "PM:" or "PM: hibernate:" according to
$ git log --oneline kernel/power/swap.c
Quoted 36 lines
--- kernel/power/swap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)kernel/power/swap.c +3
-3@@ -88,7 +88,7 @@ struct swap_map_page_list {struct swap_map_page_list *next; }; -/** +/* * The swap_map_handle structure is used for handling swap in * a file-alike way */ @@ -116,7 +116,7 @@ struct swsusp_header {static struct swsusp_header *swsusp_header; -/** +/* * The following functions are used for tracing the allocated * swap pages, so that they can be freed in case of an error. */ @@ -170,7 +170,7 @@ static int swsusp_extents_insert(unsigned long swap_offset)return 0 ; } -/** +/* * alloc_swapdev_block - allocate a swap page and register that it has * been allocated, so that it can be freed in case of an error. */
kernel/power/swap.c sector_t alloc_swapdev_block(int swap) · line 195
Quoted 8 lines
kernel/power/swap.c +1
-1@@ -189,7 +189,7 @@ sector_t alloc_swapdev_block(int swap)return 0 ; } -/** +/* * free_all_swap_pages - free swap pages allocated for saving image data. * It also frees the extents used to register which swap entries had been * allocated.
thanks.
Signature · 1 line
~Randy
Hi!
Quoted 8 lines
Fixes the following W=1 kernel build warning:
kernel/power/swap.c:120: warning: This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst.
+++b/kernel/power/swap.c
kernel/power/swap.c static int swsusp_extents_insert(unsigned long swap_offset) · line 176
Quoted 8 lines
kernel/power/swap.c +1
-1@@ -170,7 +170,7 @@ static int swsusp_extents_insert(unsigned long swap_offset)return 0 ; } -/** +/* * alloc_swapdev_block - allocate a swap page and register that it has * been allocated, so that it can be freed in case of an error. */
The ones before look ok, but this and next one perhaps should be converted to kerneldoc?
BR,
Pavel
Signature · 1 line
http://www.livejournal.com/~pavelmachek