Use C99 initializers for instances of struct apic_enumerator.

MFC after:	3 days
This commit is contained in:
Mark Johnston 2018-07-13 17:42:48 +00:00
parent 25bc561e68
commit 6ac05ba486
3 changed files with 15 additions and 15 deletions

View File

@ -93,11 +93,11 @@ static int madt_setup_io(void);
static void madt_walk_table(acpi_subtable_handler *handler, void *arg);
static struct apic_enumerator madt_enumerator = {
"MADT",
madt_probe,
madt_probe_cpus,
madt_setup_local,
madt_setup_io
.apic_name = "MADT",
.apic_probe = madt_probe,
.apic_probe_cpus = madt_probe_cpus,
.apic_setup_local = madt_setup_local,
.apic_setup_io = madt_setup_io
};
/*

View File

@ -206,11 +206,11 @@ static void mptable_walk_table(mptable_entry_handler *handler, void *arg);
static int search_for_sig(u_int32_t target, int count);
static struct apic_enumerator mptable_enumerator = {
"MPTable",
mptable_probe,
mptable_probe_cpus,
mptable_setup_local,
mptable_setup_io
.apic_name = "MPTable",
.apic_probe = mptable_probe,
.apic_probe_cpus = mptable_probe_cpus,
.apic_setup_local = mptable_setup_local,
.apic_setup_io = mptable_setup_io
};
/*

View File

@ -68,11 +68,11 @@ static vm_paddr_t madt_physaddr;
static vm_offset_t madt_length;
static struct apic_enumerator xenpv_enumerator = {
"Xen PV",
xenpv_probe,
xenpv_probe_cpus,
xenpv_setup_local,
xenpv_setup_io
.apic_name = "Xen PV",
.apic_probe = xenpv_probe,
.apic_probe_cpus = xenpv_probe_cpus,
.apic_setup_local = xenpv_setup_local,
.apic_setup_io = xenpv_setup_io
};
/*--------------------- Helper functions to parse MADT -----------------------*/