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

Hiago De Franco posted 1 patch 6 days, 8 hours ago
xen/arch/riscv/include/asm/sbi.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[PATCH] xen/riscv: sbi: fix kernel-doc parameter annotations
Posted by Hiago De Franco 6 days, 8 hours ago
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.

Signed-off-by: Hiago De Franco <hfranco@baylibre.com>
---
 xen/arch/riscv/include/asm/sbi.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xen/arch/riscv/include/asm/sbi.h b/xen/arch/riscv/include/asm/sbi.h
index 2a245d0b42..c585845907 100644
--- a/xen/arch/riscv/include/asm/sbi.h
+++ b/xen/arch/riscv/include/asm/sbi.h
@@ -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
Re: [PATCH] xen/riscv: sbi: fix kernel-doc parameter annotations
Posted by Baptiste Le Duc 6 days, 6 hours ago
Lgtm, thanks!
Reviewed-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>

On 11/17/26 2:52 PM, Hiago De Franco wrote:
> 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.
> 
> Signed-off-by: Hiago De Franco <hfranco@baylibre.com>
> ---
>   xen/arch/riscv/include/asm/sbi.h | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/xen/arch/riscv/include/asm/sbi.h b/xen/arch/riscv/include/asm/sbi.h
> index 2a245d0b42..c585845907 100644
> --- a/xen/arch/riscv/include/asm/sbi.h
> +++ b/xen/arch/riscv/include/asm/sbi.h
> @@ -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