accel/hvf: Reduce hvf_kernel_irqchip_override scope
PATCH 1/1 accel/hvf: Reduce hvf_kernel_irqchip_override scope
hvf_kernel_irqchip_override is only used within the accel/hvf/hvf-all.c file, no need to expose the symbol.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- include/system/hvf_int.h | 1 - accel/hvf/hvf-all.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
include/system/hvf_int.h +0 -1
@@ -113,5 +113,4 @@ bool hvf_arch_cpu_realize(CPUState *cpu, Error **errp);uint32_t hvf_arch_get_default_ipa_bit_size (void );uint32_t hvf_arch_get_max_ipa_bit_size (void ); -extern bool hvf_kernel_irqchip_override;#endif
accel/hvf/hvf-all.c +1 -1
@@ -25,7 +25,7 @@bool hvf_allowed;bool hvf_kernel_irqchip;bool hvf_nested_virt; -bool hvf_kernel_irqchip_override; +static bool hvf_kernel_irqchip_override;void hvf_nested_virt_enable (bool nested_virt) {
Signature · 1 line
2.53.0
Quoted 8 lines · Philippe Mathieu-Daudé
hvf_kernel_irqchip_overrideis only used within theaccel/hvf/hvf-all.cfile, no need to expose the symbol.Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Reviewed-by Mohamed Mediouni <[email protected]>
Quoted 32 lines
---
include/system/hvf_int.h| 1 -accel/hvf/hvf-all.c| 2 +-2 files changed, 1 insertion(+), 2 deletions(-)include/system/hvf_int.h +0
-1@@ -113,5 +113,4 @@ bool hvf_arch_cpu_realize(CPUState *cpu, Error **errp);uint32_t hvf_arch_get_default_ipa_bit_size (void );uint32_t hvf_arch_get_max_ipa_bit_size (void ); -extern bool hvf_kernel_irqchip_override;#endif accel/hvf/hvf-all.c +1
-1@@ -25,7 +25,7 @@bool hvf_allowed;bool hvf_kernel_irqchip;bool hvf_nested_virt; -bool hvf_kernel_irqchip_override; +static bool hvf_kernel_irqchip_override;void hvf_nested_virt_enable (bool nested_virt) {Signature · 1 line
2.53.0