From owner-svn-src-head@freebsd.org Fri Jul 13 17:42:49 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DA3E1045CE3; Fri, 13 Jul 2018 17:42:49 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C9AF70B95; Fri, 13 Jul 2018 17:42:49 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0E2C9136C4; Fri, 13 Jul 2018 17:42:49 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6DHgmmn023821; Fri, 13 Jul 2018 17:42:48 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6DHgm2E023817; Fri, 13 Jul 2018 17:42:48 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201807131742.w6DHgm2E023817@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Fri, 13 Jul 2018 17:42:48 +0000 (UTC) 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 X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: in head/sys/x86: acpica x86 xen X-SVN-Commit-Revision: 336251 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2018 17:42:49 -0000 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 -----------------------*/