[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/11] hw/i386/pc: Unexport functions used only internally
From: |
Bernhard Beschow |
Subject: |
[PATCH 05/11] hw/i386/pc: Unexport functions used only internally |
Date: |
Thu, 5 May 2022 18:17:59 +0200 |
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/i386/pc.c | 4 ++--
include/hw/i386/pc.h | 3 ---
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index c2975d7de5..789fe9afdc 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -569,7 +569,7 @@ static const char * const fdc_container_path[] = {
* Locate the FDC at IO address 0x3f0, in order to configure the CMOS registers
* and ACPI objects.
*/
-ISADevice *pc_find_fdc0(void)
+static ISADevice *pc_find_fdc0(void)
{
int i;
Object *container;
@@ -713,7 +713,7 @@ static const int ne2000_io[NE2000_NB_MAX] = { 0x300, 0x320,
0x340, 0x360,
0x280, 0x380 };
static const int ne2000_irq[NE2000_NB_MAX] = { 9, 10, 11, 3, 4, 5 };
-void pc_init_ne2k_isa(ISABus *bus, NICInfo *nd)
+static void pc_init_ne2k_isa(ISABus *bus, NICInfo *nd)
{
static int nb_ne2k = 0;
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index b34c664ff5..a087ea7598 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -168,7 +168,6 @@ void pc_basic_device_init(struct PCMachineState *pcms,
ISADevice **rtc_state,
bool create_fdctrl,
uint32_t hpet_irqs);
-void pc_init_ne2k_isa(ISABus *bus, NICInfo *nd);
void pc_cmos_init(PCMachineState *pcms,
BusState *ide0, BusState *ide1,
ISADevice *s);
@@ -179,8 +178,6 @@ typedef void (*cpu_set_smm_t)(int smm, void *arg);
void pc_i8259_create(ISABus *isa_bus, qemu_irq *i8259_irqs);
-ISADevice *pc_find_fdc0(void);
-
/* port92.c */
#define PORT92_A20_LINE "a20"
--
2.36.0
- [PATCH 01/11] hw/rtc/mc146818rtc: Inline isa_connect_gpio_out() and remove it, (continued)
- [PATCH 01/11] hw/rtc/mc146818rtc: Inline isa_connect_gpio_out() and remove it, Bernhard Beschow, 2022/05/05
- [PATCH 02/11] hw: Reuse TYPE_I8042 define, Bernhard Beschow, 2022/05/05
- [PATCH 03/11] hw/audio/cs4231a: Const'ify global tables, Bernhard Beschow, 2022/05/05
- [PATCH 06/11] hw/i386/pc: Remove orphan declarations, Bernhard Beschow, 2022/05/05
- [PATCH 04/11] hw/i386/pc: Unexport PC_CPU_MODEL_IDS macro, Bernhard Beschow, 2022/05/05
- [PATCH 05/11] hw/i386/pc: Unexport functions used only internally,
Bernhard Beschow <=
- [PATCH 07/11] hw/ppc/e500: Remove unused BINARY_DEVICE_TREE_FILE, Bernhard Beschow, 2022/05/05
- [PATCH 09/11] accel/tcg/cpu-exec: Unexport dump_drift_info(), Bernhard Beschow, 2022/05/05
- [PATCH 11/11] docs/devel: Fix link to developer mailing lists, Bernhard Beschow, 2022/05/05
- [PATCH 08/11] hw/net/fsl_etsec/etsec: Remove obsolete and unused etsec_create(), Bernhard Beschow, 2022/05/05
- [PATCH 10/11] accel/tcg: Inline dump_opcount_info() and remove it, Bernhard Beschow, 2022/05/05
- Re: [PATCH 00/11] Random cleanup patches, Michael S. Tsirkin, 2022/05/13