Skip to content

x86/mtrr: Fix kernel-doc warnings in amd.c and centaur.c

Kael D'Alcamo lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest1 patch 0 repliesNew

Changes in v2 from the cover letter

* merge changes into a single patch
* add commit message

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1x86/mtrr: Fix kernel-doc warnings in amd.c and centaur.carch/x86/kernel/cpu/mtrr/amd.c arch/x86/kernel/cpu/mtrr/centaur.c+5 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/1] x86/mtrr: Fix kernel-doc warnings in amd.c and centaur.c

Hi Boris,

Thank you for your feedback

Quoted 5 lines
Quoted 5 lines
---
 arch/x86/kernel/cpu/mtrr/centaur.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

arch/x86/kernel/cpu/mtrr/centaur.c static u8 centaur_mcr_type; /* 0 for winchip, 1 for winchip2 */ · line 23

Quoted 9 lines
arch/x86/kernel/cpu/mtrr/centaur.c +1 -0
index 6f6c3ae92943..f4c72402c284 100644
@@ -20,6 +20,7 @@ static u8 centaur_mcr_type;	/* 0 for winchip, 1 for winchip2 */
  *
  * @base: The starting (base) address of the region.
  * @size: The size (in bytes) of the region.
+ * @replace_reg: mtrr index to be replaced; set to invalid value if none.

I'm afraid I can't follow here what invalid value you mean...

In order to solve the warning issue while keeping the documentation homogeneus, I used the same description from the get_free_region in generic.c.
I believe that the original doc author referred to the fact that you can either choose to reuse a specific MTRR (by passing its index in replace_reg) or ask the function to find a free one
by passing an "invalid value" (for instance -1).

Changelog v1 -> v2:
* merge changes into a single patch
* add commit message

Have a nice day,
Kael.

Kael D'Alcamo (1):
x86/mtrr: Fix kernel-doc warnings in amd.c and centaur.c

 arch/x86/kernel/cpu/mtrr/amd.c     | 8 ++++----
 arch/x86/kernel/cpu/mtrr/centaur.c | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.51.1