[PATCH v2] x86/platform/quark: fix all kernel-doc warnings in imr.c

Randy Dunlap posted 1 patch 1 month, 2 weeks ago
arch/x86/platform/intel-quark/imr.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH v2] x86/platform/quark: fix all kernel-doc warnings in imr.c
Posted by Randy Dunlap 1 month, 2 weeks ago
Use correct parameter names in kernel-doc comments to avoid warnings:

imr.c:300: warning: Function parameter or struct member 'rmask' not
 described in 'imr_add_range'
imr.c:300: warning: Function parameter or struct member 'wmask' not
 described in 'imr_add_range'
imr.c:300: warning: Excess function parameter 'read_mask' description
 in 'imr_add_range'
imr.c:300: warning: Excess function parameter 'write_mask' description
 in 'imr_add_range'

Fixes: 28a375df16c2 ("x86/intel/quark: Add Isolated Memory Regions for Quark X1000")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
v2: modify patch description and rebase

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

 arch/x86/platform/intel-quark/imr.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20260227.orig/arch/x86/platform/intel-quark/imr.c
+++ linux-next-20260227/arch/x86/platform/intel-quark/imr.c
@@ -291,8 +291,8 @@ static inline int imr_address_overlap(ph
  *
  * @base:	physical base address of region aligned to 1KiB.
  * @size:	physical size of region in bytes must be aligned to 1KiB.
- * @read_mask:	read access mask.
- * @write_mask:	write access mask.
+ * @rmask:	read access mask.
+ * @wmask:	write access mask.
  * @return:	zero on success or negative value indicating error.
  */
 int imr_add_range(phys_addr_t base, size_t size,