* [PATCH v2] x86/usercopy: fix kernel-doc function param name
@ 2024-02-11 6:25 Randy Dunlap
2024-02-13 21:43 ` Borislav Petkov
0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2024-02-11 6:25 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Dave Hansen, x86, Sohil Mehta
Correct the function parameter name in clean_cache_range() to prevent
kernel-doc warnings:
usercopy_64.c:29: warning: Function parameter or member 'addr' not described in 'clean_cache_range'
usercopy_64.c:29: warning: Excess function parameter 'vaddr' description in 'clean_cache_range'
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
---
v2: add Rev-by: Sohil Mehta
From: Randy Dunlap <rdunlap@infradead.org>
Subject: [PATCH v2] x86/usercopy: fix kernel-doc function param name
Correct the function parameter name in clean_cache_range() to prevent
kernel-doc warnings:
usercopy_64.c:29: warning: Function parameter or member 'addr' not described in 'clean_cache_range'
usercopy_64.c:29: warning: Excess function parameter 'vaddr' description in 'clean_cache_range'
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
---
v2: add Rev-by: Sohil Mehta
arch/x86/lib/usercopy_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -- a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c
--- a/arch/x86/lib/usercopy_64.c
+++ b/arch/x86/lib/usercopy_64.c
@@ -18,7 +18,7 @@
#ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE
/**
* clean_cache_range - write back a cache range with CLWB
- * @vaddr: virtual start address
+ * @addr: virtual start address
* @size: number of bytes to write back
*
* Write back a cache range using the CLWB (cache line write back)
arch/x86/lib/usercopy_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -- a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c
--- a/arch/x86/lib/usercopy_64.c
+++ b/arch/x86/lib/usercopy_64.c
@@ -18,7 +18,7 @@
#ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE
/**
* clean_cache_range - write back a cache range with CLWB
- * @vaddr: virtual start address
+ * @addr: virtual start address
* @size: number of bytes to write back
*
* Write back a cache range using the CLWB (cache line write back)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] x86/usercopy: fix kernel-doc function param name
2024-02-11 6:25 [PATCH v2] x86/usercopy: fix kernel-doc function param name Randy Dunlap
@ 2024-02-13 21:43 ` Borislav Petkov
2024-02-13 22:29 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Borislav Petkov @ 2024-02-13 21:43 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-kernel, Thomas Gleixner, Ingo Molnar, Dave Hansen, x86,
Sohil Mehta
On Sat, Feb 10, 2024 at 10:25:01PM -0800, Randy Dunlap wrote:
> Correct the function parameter name in clean_cache_range() to prevent
> kernel-doc warnings:
>
> usercopy_64.c:29: warning: Function parameter or member 'addr' not described in 'clean_cache_range'
> usercopy_64.c:29: warning: Excess function parameter 'vaddr' description in 'clean_cache_range'
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Borislav Petkov <bp@alien8.de>
> Cc: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: x86@kernel.org
> Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
> ---
> v2: add Rev-by: Sohil Mehta
>
> From: Randy Dunlap <rdunlap@infradead.org>
> Subject: [PATCH v2] x86/usercopy: fix kernel-doc function param name
>
> Correct the function parameter name in clean_cache_range() to prevent
> kernel-doc warnings:
>
> usercopy_64.c:29: warning: Function parameter or member 'addr' not described in 'clean_cache_range'
> usercopy_64.c:29: warning: Excess function parameter 'vaddr' description in 'clean_cache_range'
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Borislav Petkov <bp@alien8.de>
> Cc: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: x86@kernel.org
> Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
> ---
> v2: add Rev-by: Sohil Mehta
>
> arch/x86/lib/usercopy_64.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -- a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c
> --- a/arch/x86/lib/usercopy_64.c
> +++ b/arch/x86/lib/usercopy_64.c
> @@ -18,7 +18,7 @@
> #ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE
> /**
> * clean_cache_range - write back a cache range with CLWB
> - * @vaddr: virtual start address
> + * @addr: virtual start address
> * @size: number of bytes to write back
> *
> * Write back a cache range using the CLWB (cache line write back)
> arch/x86/lib/usercopy_64.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -- a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c
> --- a/arch/x86/lib/usercopy_64.c
> +++ b/arch/x86/lib/usercopy_64.c
> @@ -18,7 +18,7 @@
> #ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE
> /**
> * clean_cache_range - write back a cache range with CLWB
> - * @vaddr: virtual start address
> + * @addr: virtual start address
> * @size: number of bytes to write back
> *
> * Write back a cache range using the CLWB (cache line write back)
What happened here? :)
Commit message and patch diff appear twice.
Once not enough huh?
:-P
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] x86/usercopy: fix kernel-doc function param name
2024-02-13 21:43 ` Borislav Petkov
@ 2024-02-13 22:29 ` Randy Dunlap
0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2024-02-13 22:29 UTC (permalink / raw)
To: Borislav Petkov
Cc: linux-kernel, Thomas Gleixner, Ingo Molnar, Dave Hansen, x86,
Sohil Mehta
On 2/13/24 13:43, Borislav Petkov wrote:
> On Sat, Feb 10, 2024 at 10:25:01PM -0800, Randy Dunlap wrote:
>> Correct the function parameter name in clean_cache_range() to prevent
>> kernel-doc warnings:
>
> What happened here? :)
>
> Commit message and patch diff appear twice.
>
> Once not enough huh?
>
> :-P
>
Wow, I have no idea. I'll fix it up.
Thanks.
--
#Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-13 22:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-11 6:25 [PATCH v2] x86/usercopy: fix kernel-doc function param name Randy Dunlap
2024-02-13 21:43 ` Borislav Petkov
2024-02-13 22:29 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®