Skip to contentSkip to conversation

xen/riscv: sbi: fix kernel-doc parameter annotations

PATCH In review Hiago De Franco 2 participants 2 messages Nov 17 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/riscv: sbi: fix kernel-doc parameter annotations

sbi_remote_sfence_vma() uses @hart_mask, while sbi_remote_hfence_gvma() and sbi_remote_hfence_gvma_vmid() uses @cpu_mask without the @param prefix. Fix and make all three consistent.

No functional change.

---
 xen/arch/riscv/include/asm/sbi.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xen/arch/riscv/include/asm/sbi.h +3 -3
index 2a245d0b42..c585845907 100644
@@ -99,7 +99,7 @@ bool sbi_has_rfence(void);
  * Returns 0 if IPI was sent to all the targeted harts successfully
  * or negative value if start_addr or size is not valid.
  *
- * @hart_mask a cpu mask containing all the target harts.
+ * @param cpu_mask a cpu mask containing all the target CPUs (in Xen space).
  * @param start virtual address start
  * @param size virtual address range size
  */
@@ -118,7 +118,7 @@ int sbi_remote_sfence_vma(const cpumask_t *cpu_mask, vaddr_t start,
  *  - start_addr and size are both 0, or
  *  - size is equal to 2^XLEN-1.
  *
- * @cpu_mask a cpu mask containing all the target CPUs (in Xen space).
+ * @param cpu_mask a cpu mask containing all the target CPUs (in Xen space).
  * @param start virtual address start
  * @param size virtual address range size
  */
@@ -130,7 +130,7 @@ int sbi_remote_hfence_gvma(const cpumask_t *cpu_mask, vaddr_t start,
  * instructions, covering the range of guest physical addresses
  * in [start_addr, start_addr + size) only for the given VMID.
  *
- * @cpu_mask a cpu mask containing all the target CPUs (in Xen space).
+ * @param cpu_mask a cpu mask containing all the target CPUs (in Xen space).
  * @param start virtual address start
  * @param size virtual address range size
  * @param vmid virtual machine id

---
base-commit: aa6070d2c840301bceae28763d20a32c48f0d3e4
change-id: 20261117-riscv-kernel-doc-fix-39926007bff4

Best regards,

Signature · 1 line
Hiago
Reviewed-by on v1 1/1
#1 lore raw

Lgtm, thanks!

Quoted 50 lines · Hiago De Franco

sbi_remote_sfence_vma() uses @hart_mask, while sbi_remote_hfence_gvma() and sbi_remote_hfence_gvma_vmid() uses @cpu_mask without the @param prefix. Fix and make all three consistent.

No functional change.

---
  xen/arch/riscv/include/asm/sbi.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
xen/arch/riscv/include/asm/sbi.h +3 -4
index 2a245d0b42..c585845907 100644
@@ -99,7 +99,7 @@ bool sbi_has_rfence(void);
   * Returns 0 if IPI was sent to all the targeted harts successfully
   * or negative value if start_addr or size is not valid.
   *
- * @hart_mask a cpu mask containing all the target harts.
+ * @param cpu_mask a cpu mask containing all the target CPUs (in Xen space).
   * @param start virtual address start
   * @param size virtual address range size
   */
@@ -118,7 +118,7 @@ int sbi_remote_sfence_vma(const cpumask_t *cpu_mask, vaddr_t start,
   *  - start_addr and size are both 0, or
   *  - size is equal to 2^XLEN-1.
   *
- * @cpu_mask a cpu mask containing all the target CPUs (in Xen space).
+ * @param cpu_mask a cpu mask containing all the target CPUs (in Xen space).
   * @param start virtual address start
   * @param size virtual address range size
   */
@@ -130,7 +130,7 @@ int sbi_remote_hfence_gvma(const cpumask_t *cpu_mask, vaddr_t start,
   * instructions, covering the range of guest physical addresses
   * in [start_addr, start_addr + size) only for the given VMID.
   *
- * @cpu_mask a cpu mask containing all the target CPUs (in Xen space).
+ * @param cpu_mask a cpu mask containing all the target CPUs (in Xen space).
   * @param start virtual address start
   * @param size virtual address range size
   * @param vmid virtual machine id
 
---

base-commit: aa6070d2c840301bceae28763d20a32c48f0d3e4
change-id: 20261117-riscv-kernel-doc-fix-39926007bff4

Best regards,
--
Hiago