mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/mtrr: Fix kernel-doc
@ 2026-09-15 10:31 Manuel Ebner
  2026-09-16  4:27 ` [tip: x86/cleanups] x86/mtrr: Fix kernel-doc notation of amd_set_mtrr() tip-bot2 for Manuel Ebner
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Ebner @ 2026-09-15 10:31 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin
  Cc: Manuel Ebner, linux-kernel

Add ':' to arguments in kernel-doc to shut up compiler warnings:

Warning: arch/x86/kernel/cpu/mtrr/amd.c:63 function parameter 'reg' not described in 'amd_set_mtrr'
Warning: arch/x86/kernel/cpu/mtrr/amd.c:63 function parameter 'base' not described in 'amd_set_mtrr'
Warning: arch/x86/kernel/cpu/mtrr/amd.c:63 function parameter 'size' not described in 'amd_set_mtrr'
Warning: arch/x86/kernel/cpu/mtrr/amd.c:63 function parameter 'type' not described in 'amd_set_mtrr'

Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org>
---
 arch/x86/kernel/cpu/mtrr/amd.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/cpu/mtrr/amd.c b/arch/x86/kernel/cpu/mtrr/amd.c
index a73715d6f..9e440e30c 100644
--- a/arch/x86/kernel/cpu/mtrr/amd.c
+++ b/arch/x86/kernel/cpu/mtrr/amd.c
@@ -51,11 +51,10 @@ amd_get_mtrr(unsigned int reg, unsigned long *base,
 
 /**
  * amd_set_mtrr - Set variable MTRR register on the local CPU.
- *
- * @reg The register to set.
- * @base The base address of the region.
- * @size The size of the region. If this is 0 the region is disabled.
- * @type The type of the region.
+ * @reg: The register to set.
+ * @base: The base address of the region.
+ * @size: The size of the region. If this is 0 the region is disabled.
+ * @type: The type of the region.
  *
  * Returns nothing.
  */
-- 
2.55.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip: x86/cleanups] x86/mtrr: Fix kernel-doc notation of amd_set_mtrr()
  2026-09-15 10:31 [PATCH] x86/mtrr: Fix kernel-doc Manuel Ebner
@ 2026-09-16  4:27 ` tip-bot2 for Manuel Ebner
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Manuel Ebner @ 2026-09-16  4:27 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Manuel Ebner, Borislav Petkov (AMD), x86, linux-kernel

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     c8beda268a6b21910d1325584ce1d45bce4f22f0
Gitweb:        https://git.kernel.org/tip/c8beda268a6b21910d1325584ce1d45bce4f22f0
Author:        Manuel Ebner <manuelebnerli@mailbox.org>
AuthorDate:    Tue, 15 Sep 2026 12:31:37 +02:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Tue, 15 Sep 2026 21:22:03 -07:00

x86/mtrr: Fix kernel-doc notation of amd_set_mtrr()

Add ':' to arguments in kernel-doc comment to fix:

  $ ./scripts/kernel-doc -none arch/x86/kernel/cpu/mtrr/amd.c
  Warning: arch/x86/kernel/cpu/mtrr/amd.c:63 function parameter 'reg' not described in 'amd_set_mtrr'
  Warning: arch/x86/kernel/cpu/mtrr/amd.c:63 function parameter 'base' not described in 'amd_set_mtrr'
  Warning: arch/x86/kernel/cpu/mtrr/amd.c:63 function parameter 'size' not described in 'amd_set_mtrr'
  Warning: arch/x86/kernel/cpu/mtrr/amd.c:63 function parameter 'type' not described in 'amd_set_mtrr'

  [ bp: Massage commit message. ]

Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260915103136.171924-3-manuelebnerli@mailbox.org
---
 arch/x86/kernel/cpu/mtrr/amd.c |  9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/cpu/mtrr/amd.c b/arch/x86/kernel/cpu/mtrr/amd.c
index a73715d..9e440e3 100644
--- a/arch/x86/kernel/cpu/mtrr/amd.c
+++ b/arch/x86/kernel/cpu/mtrr/amd.c
@@ -51,11 +51,10 @@ amd_get_mtrr(unsigned int reg, unsigned long *base,
 
 /**
  * amd_set_mtrr - Set variable MTRR register on the local CPU.
- *
- * @reg The register to set.
- * @base The base address of the region.
- * @size The size of the region. If this is 0 the region is disabled.
- * @type The type of the region.
+ * @reg: The register to set.
+ * @base: The base address of the region.
+ * @size: The size of the region. If this is 0 the region is disabled.
+ * @type: The type of the region.
  *
  * Returns nothing.
  */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-16  4:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15 10:31 [PATCH] x86/mtrr: Fix kernel-doc Manuel Ebner
2026-09-16  4:27 ` [tip: x86/cleanups] x86/mtrr: Fix kernel-doc notation of amd_set_mtrr() tip-bot2 for Manuel Ebner

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®