On 3/8/25 15:09, Philippe Mathieu-Daudé wrote:
Currently kvm_irqchip_add_irqfd_notifier() and
kvm_irqchip_remove_irqfd_notifier() are only declared on
target specific code. There is not particular reason to,
as their prototypes don't use anything target related.

Move their declaration with common prototypes, otherwise
the next commit would trigger:

   hw/vfio/pci.c: In function ‘vfio_realize’:
   hw/vfio/pci.c:3178:9: error: implicit declaration of function 
‘kvm_irqchip_add_change_notifier’
    3178 |         
kvm_irqchip_add_change_notifier(&vdev->irqchip_change_notifier);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         kvm_irqchip_add_irqfd_notifier
   hw/vfio/pci.c:3236:9: error: implicit declaration of function 
‘kvm_irqchip_remove_change_notifier’
    3236 |         
kvm_irqchip_remove_change_notifier(&vdev->irqchip_change_notifier);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         kvm_irqchip_remove_irqfd_notifier

Reviewed-by: Pierrick Bouvier<pierrick.bouv...@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé<phi...@linaro.org>
---
  include/system/kvm.h | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to