[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] xen/riscv: add cf_check to vcpu_imsic_{init,deinit}() declarations



commit 523b491289b75d9f58639887c2f94d7dc2786c1c
Author:     Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
AuthorDate: Tue Nov 17 10:01:35 2026 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Nov 17 10:01:35 2026 +0100

    xen/riscv: add cf_check to vcpu_imsic_{init,deinit}() declarations
    
    vcpu_imsic_init() and vcpu_imsic_deinit() are indirect call targets, as
    vAPLIC's vcpu_init and vcpu_deinit callbacks, and are defined cf_check
    accordingly. Their declarations in asm/imsic.h lack the attribute,
    though, while cf_check is to be present on the declarations as well.
    
    Add cf_check to the declarations, so that they match the definitions.
    
    Fixes: 9164a97efbeb ("xen/riscv: introduce minimal virtual APLIC (vAPLIC) 
infrastructure")
    Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
---
 xen/arch/riscv/include/asm/imsic.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/riscv/include/asm/imsic.h 
b/xen/arch/riscv/include/asm/imsic.h
index 639ee327dc..217fc3d49b 100644
--- a/xen/arch/riscv/include/asm/imsic.h
+++ b/xen/arch/riscv/include/asm/imsic.h
@@ -90,8 +90,8 @@ void imsic_irq_disable(unsigned int hwirq);
 
 void imsic_ids_local_delivery(bool enable);
 
-int vcpu_imsic_init(struct vcpu *v);
-void vcpu_imsic_deinit(struct vcpu *v);
+int cf_check vcpu_imsic_init(struct vcpu *v);
+void cf_check vcpu_imsic_deinit(struct vcpu *v);
 unsigned int vcpu_guest_file_id(const struct vcpu *v);
 
 int vimsic_make_domu_dt_node(struct kernel_info *kinfo, unsigned int *phandle);
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.