x86: Fix W=1 kernel-doc warnings
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
Signed-off-by Anuradha Weeraman <[email protected]>
--- 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
@@ -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
@@ -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
Hi--
Quoted 15 lines · Anuradha Weeraman
Fix W=1 kernel-doc warnings for:
-arch/x86/lib/insn-eval.c
-arch/x86/mm/pat/memtype.cSigned-off-by Anuradha Weeraman <[email protected]>--- 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
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
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. *
Acked-by Randy Dunlap <[email protected]>
Tested-by Randy Dunlap <[email protected]>
Thanks.
Signature · 1 line
~Randy