Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2018 17:42:48 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336251 - in head/sys/x86: acpica x86 xen
Message-ID:  <201807131742.w6DHgm2E023817@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Jul 13 17:42:48 2018
New Revision: 336251
URL: https://svnweb.freebsd.org/changeset/base/336251

Log:
  Use C99 initializers for instances of struct apic_enumerator.
  
  MFC after:	3 days

Modified:
  head/sys/x86/acpica/madt.c
  head/sys/x86/x86/mptable.c
  head/sys/x86/xen/pvcpu_enum.c

Modified: head/sys/x86/acpica/madt.c
==============================================================================
--- head/sys/x86/acpica/madt.c	Fri Jul 13 17:41:28 2018	(r336250)
+++ head/sys/x86/acpica/madt.c	Fri Jul 13 17:42:48 2018	(r336251)
@@ -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
 };
 
 /*

Modified: head/sys/x86/x86/mptable.c
==============================================================================
--- head/sys/x86/x86/mptable.c	Fri Jul 13 17:41:28 2018	(r336250)
+++ head/sys/x86/x86/mptable.c	Fri Jul 13 17:42:48 2018	(r336251)
@@ -206,11 +206,11 @@ static void	mptable_walk_table(mptable_entry_handler *
 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
 };
 
 /*

Modified: head/sys/x86/xen/pvcpu_enum.c
==============================================================================
--- head/sys/x86/xen/pvcpu_enum.c	Fri Jul 13 17:41:28 2018	(r336250)
+++ head/sys/x86/xen/pvcpu_enum.c	Fri Jul 13 17:42:48 2018	(r336251)
@@ -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 -----------------------*/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807131742.w6DHgm2E023817>