Skip to contentSkip to conversation

x86: Fix W=1 kernel-doc warnings

PATCH In review Anuradha Weeraman 2 participants 2 messages Mar 11, 2023 – Mar 12, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Fix W=1 kernel-doc warnings

Fix W=1 kernel-doc warnings for:
- arch/x86/lib/insn-eval.c
- arch/x86/mm/pat/memtype.c

---
 arch/x86/lib/insn-eval.c  | 6 +++---
 arch/x86/mm/pat/memtype.c | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/x86/lib/insn-eval.c +3 -3
index 558a605929db..0bc9d87ab95d 100644
@@ -1129,15 +1129,15 @@ static int get_eff_addr_modrm_16(struct insn *insn, struct pt_regs *regs,
  * get_eff_addr_sib() - Obtain referenced effective address via SIB
  * @insn:	Instruction. Must be valid.
  * @regs:	Register values as seen when entering kernel mode
- * @regoff:	Obtained operand offset, in pt_regs, associated with segment
+ * @base_offset:Obtained operand offset, in pt_regs, associated with segment
  * @eff_addr:	Obtained effective address
  *
  * Obtain the effective address referenced by the SIB byte of @insn. After
  * identifying the registers involved in the indexed, register-indirect memory
  * reference, its value is obtained from the operands in @regs. The computed
  * address is stored @eff_addr. Also, the register operand that indicates the
- * associated segment is stored in @regoff, this parameter can later be used to
- * determine such segment.
+ * associated segment is stored in @base_offset, this parameter can later be
+ * used to determine such segment.
  *
  * Returns:
  *
arch/x86/mm/pat/memtype.c +1 -0
index 46a00aa858b6..380bec99fab5 100644
@@ -700,6 +700,7 @@ static enum page_cache_mode lookup_memtype(u64 paddr)
 /**
  * pat_pfn_immune_to_uc_mtrr - Check whether the PAT memory type
  * of @pfn cannot be overridden by UC MTRR memory type.
+ * @pfn: page frame number
  *
  * Only to be called when PAT is enabled.
  *
Signature · 1 line
2.39.2
Acked-by Tested-by on v1 1/1
#1 lore raw

Hi--

Quoted 15 lines · Anuradha Weeraman

Fix W=1 kernel-doc warnings for:
- arch/x86/lib/insn-eval.c
- arch/x86/mm/pat/memtype.c

---
 arch/x86/lib/insn-eval.c  | 6 +++---
 arch/x86/mm/pat/memtype.c | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/x86/lib/insn-eval.c +0 -0
index 558a605929db..0bc9d87ab95d 100644

arch/x86/lib/insn-eval.c static int get_eff_addr_modrm_16(struct insn *insn, struct pt_regs *regs, · line 1132

Quoted 5 lines
arch/x86/lib/insn-eval.c +1 -1
@@ -1129,15 +1129,15 @@ static int get_eff_addr_modrm_16(struct insn *insn, struct pt_regs *regs,
  * get_eff_addr_sib() - Obtain referenced effective address via SIB
  * @insn:	Instruction. Must be valid.
  * @regs:	Register values as seen when entering kernel mode
- * @regoff:	Obtained operand offset, in pt_regs, associated with segment
+ * @base_offset:Obtained operand offset, in pt_regs, associated with segment

I would insert a space after @base_offset:
but ultimately it's up to the maintainers.

Quoted 17 lines
arch/x86/lib/insn-eval.c +2 -2
  * @eff_addr:	Obtained effective address
  *
  * Obtain the effective address referenced by the SIB byte of @insn. After
  * identifying the registers involved in the indexed, register-indirect memory
  * reference, its value is obtained from the operands in @regs. The computed
  * address is stored @eff_addr. Also, the register operand that indicates the
- * associated segment is stored in @regoff, this parameter can later be used to
- * determine such segment.
+ * associated segment is stored in @base_offset, this parameter can later be
+ * used to determine such segment.
  *
  * Returns:>   *
arch/x86/mm/pat/memtype.c +0 -0
index 46a00aa858b6..380bec99fab5 100644

arch/x86/mm/pat/memtype.c static enum page_cache_mode lookup_memtype(u64 paddr) · line 706

Quoted 7 lines
arch/x86/mm/pat/memtype.c +1 -0
@@ -700,6 +700,7 @@ static enum page_cache_mode lookup_memtype(u64 paddr)
 /**
  * pat_pfn_immune_to_uc_mtrr - Check whether the PAT memory type
  * of @pfn cannot be overridden by UC MTRR memory type.
+ * @pfn: page frame number
  *
  * Only to be called when PAT is enabled.
  *

Thanks.

Signature · 1 line
~Randy