* [PATCH -next] mm/munlock: Fix kernel-doc formatting issues
@ 2022-02-10 0:48 Yang Li
2022-02-10 2:20 ` Hugh Dickins
0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2022-02-10 0:48 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, Yang Li, Abaci Robot
Some functions had kernel-doc that used a hash instead of a colon to
separate the parameter name from the one line description.
Replacing them to remove warnings found by running scripts/kernel-doc,
which is caused by using 'make W=1'.
mm/mlock.c:218: warning: Function parameter or member 'page' not
described in 'mlock_page'
mm/mlock.c:240: warning: Function parameter or member 'page' not
described in 'mlock_new_page'
mm/mlock.c:260: warning: Function parameter or member 'page' not
described in 'munlock_page'
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
mm/mlock.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/mlock.c b/mm/mlock.c
index d50d48961b22..7fb97e1242f1 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -212,7 +212,7 @@ bool need_mlock_page_drain(int cpu)
/**
* mlock_page - mlock a page already on (or temporarily off) LRU
- * @page - page to be mlocked, either a normal page or a THP head.
+ * @page: page to be mlocked, either a normal page or a THP head.
*/
void mlock_page(struct page *page)
{
@@ -234,7 +234,7 @@ void mlock_page(struct page *page)
/**
* mlock_new_page - mlock a newly allocated page not yet on LRU
- * @page - page to be mlocked, either a normal page or a THP head.
+ * @page: page to be mlocked, either a normal page or a THP head.
*/
void mlock_new_page(struct page *page)
{
@@ -254,7 +254,7 @@ void mlock_new_page(struct page *page)
/**
* munlock_page - munlock a page
- * @page - page to be munlocked, either a normal page or a THP head.
+ * @page: page to be munlocked, either a normal page or a THP head.
*/
void munlock_page(struct page *page)
{
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] mm/munlock: Fix kernel-doc formatting issues
2022-02-10 0:48 [PATCH -next] mm/munlock: Fix kernel-doc formatting issues Yang Li
@ 2022-02-10 2:20 ` Hugh Dickins
0 siblings, 0 replies; 2+ messages in thread
From: Hugh Dickins @ 2022-02-10 2:20 UTC (permalink / raw)
To: Yang Li; +Cc: akpm, linux-mm, linux-kernel, Abaci Robot, Hugh Dickins
On Thu, 10 Feb 2022, Yang Li wrote:
> Some functions had kernel-doc that used a hash instead of a colon to
> separate the parameter name from the one line description.
>
> Replacing them to remove warnings found by running scripts/kernel-doc,
> which is caused by using 'make W=1'.
>
> mm/mlock.c:218: warning: Function parameter or member 'page' not
> described in 'mlock_page'
> mm/mlock.c:240: warning: Function parameter or member 'page' not
> described in 'mlock_new_page'
> mm/mlock.c:260: warning: Function parameter or member 'page' not
> described in 'munlock_page'
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Oh, great, thanks. I thought I was just following what was already
there, but now I look closer, yes, the ones with "/*" at the top had
dashes and the ones with "/**" at the top had colons: apparently I fell
for the wrong combination - sorry.
Hugh
> ---
> mm/mlock.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/mm/mlock.c b/mm/mlock.c
> index d50d48961b22..7fb97e1242f1 100644
> --- a/mm/mlock.c
> +++ b/mm/mlock.c
> @@ -212,7 +212,7 @@ bool need_mlock_page_drain(int cpu)
>
> /**
> * mlock_page - mlock a page already on (or temporarily off) LRU
> - * @page - page to be mlocked, either a normal page or a THP head.
> + * @page: page to be mlocked, either a normal page or a THP head.
> */
> void mlock_page(struct page *page)
> {
> @@ -234,7 +234,7 @@ void mlock_page(struct page *page)
>
> /**
> * mlock_new_page - mlock a newly allocated page not yet on LRU
> - * @page - page to be mlocked, either a normal page or a THP head.
> + * @page: page to be mlocked, either a normal page or a THP head.
> */
> void mlock_new_page(struct page *page)
> {
> @@ -254,7 +254,7 @@ void mlock_new_page(struct page *page)
>
> /**
> * munlock_page - munlock a page
> - * @page - page to be munlocked, either a normal page or a THP head.
> + * @page: page to be munlocked, either a normal page or a THP head.
> */
> void munlock_page(struct page *page)
> {
> --
> 2.20.1.7.g153144c
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-10 2:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 0:48 [PATCH -next] mm/munlock: Fix kernel-doc formatting issues Yang Li
2022-02-10 2:20 ` Hugh Dickins
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.