[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 21/32] hw/i386/pc: Reduce gsi_handler scope
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 21/32] hw/i386/pc: Reduce gsi_handler scope |
Date: |
Tue, 15 Oct 2019 18:26:54 +0200 |
pc_gsi_create() is the single function that uses gsi_handler.
Make it a static variable.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/i386/pc.c | 2 +-
include/hw/i386/pc.h | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index a7597c6c44..59de0c8a1f 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -346,7 +346,7 @@ GlobalProperty pc_compat_1_4[] = {
};
const size_t pc_compat_1_4_len = G_N_ELEMENTS(pc_compat_1_4);
-void gsi_handler(void *opaque, int n, int level)
+static void gsi_handler(void *opaque, int n, int level)
{
GSIState *s = opaque;
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index d0c6b9d469..75b44e156c 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -172,8 +172,6 @@ typedef struct GSIState {
qemu_irq ioapic_irq[IOAPIC_NUM_PINS];
} GSIState;
-void gsi_handler(void *opaque, int n, int level);
-
GSIState *pc_gsi_create(qemu_irq **irqs, bool pci_enabled);
/* vmport.c */
--
2.21.0
- Re: [PATCH 16/32] piix4: add a mc146818rtc controller as specified in datasheet, (continued)
- [PATCH 17/32] hw/mips/mips_malta: Create IDE hard drive array dynamically, Philippe Mathieu-Daudé, 2019/10/15
- [PATCH 18/32] hw/mips/mips_malta: Extract the PIIX4 creation code as piix4_create(), Philippe Mathieu-Daudé, 2019/10/15
- [PATCH 19/32] hw/isa/piix4: Move piix4_create() to hw/isa/piix4.c, Philippe Mathieu-Daudé, 2019/10/15
- [PATCH 20/32] hw/i386/pc: Extract pc_gsi_create(), Philippe Mathieu-Daudé, 2019/10/15
- [PATCH 21/32] hw/i386/pc: Reduce gsi_handler scope,
Philippe Mathieu-Daudé <=
- Re: [PATCH 21/32] hw/i386/pc: Reduce gsi_handler scope, Thomas Huth, 2019/10/17
- [PATCH 22/32] hw/i386/pc: Move gsi_state creation code, Philippe Mathieu-Daudé, 2019/10/15
- [PATCH 23/32] hw/i386/pc: Extract pc_i8259_create(), Philippe Mathieu-Daudé, 2019/10/15
- [PATCH 24/32] hw/i386/pc: Remove kvm_i386.h include, Philippe Mathieu-Daudé, 2019/10/15
- [PATCH 25/32] hw/pci-host/piix: Extract piix3_create(), Philippe Mathieu-Daudé, 2019/10/15