From 59f1f005aa4873c3416a75cc41db8d3f85bd07a0 Mon Sep 17 00:00:00 2001 From: Chris Ye Date: Fri, 8 Jun 2018 07:18:26 +0800 Subject: [PATCH] bugfix: make remove_intx_remapping static remove_intx_remapping is not global function, make static. Unlike global functions in C, access to static functions is restricted to the file where they are declared. Another reason for making functions static can be reuse of the same function name in other files Signed-off-by: Chris Ye --- hypervisor/arch/x86/assign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/assign.c b/hypervisor/arch/x86/assign.c index 1b13e5e52..3a9fa6ff8 100644 --- a/hypervisor/arch/x86/assign.c +++ b/hypervisor/arch/x86/assign.c @@ -422,7 +422,7 @@ add_intx_remapping(struct vm *vm, uint8_t virt_pin, } /* deactive & remove mapping entry of vpin for vm */ -void remove_intx_remapping(struct vm *vm, uint8_t virt_pin, bool pic_pin) +static void remove_intx_remapping(struct vm *vm, uint8_t virt_pin, bool pic_pin) { int phys_irq; struct ptdev_remapping_info *entry;