x86/mtrr: Fix kernel-doc
PATCH 1/1 x86/mtrr: Fix kernel-doc
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'
--- arch/x86/kernel/cpu/mtrr/amd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
arch/x86/kernel/cpu/mtrr/amd.c +4 -5
@@ -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. */
Signature · 1 line
2.55.0
[tip: x86/cleanups] x86/mtrr: Fix kernel-doc notation of amd_set_mtrr()
The following commit has been merged into the x86/cleanups branch of tip:
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 <[email protected]> AuthorDate: Tue, 15 Sep 2026 12:31:37 +02:00 Committer: Borislav Petkov (AMD) <[email protected]> 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. ]
--- arch/x86/kernel/cpu/mtrr/amd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
arch/x86/kernel/cpu/mtrr/amd.c +4 -5
@@ -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. */