From nobody Fri Dec 06 18:56:09 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y4gT54Hs9z5ghYm; Fri, 06 Dec 2024 18:56:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y4gT52lCWz50Kp; Fri, 6 Dec 2024 18:56:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733511369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eqhirkx6d8DWnd+GAsyqMfl8KI4r6X3Zr1uBNesiqis=; b=u5Ikq1MTsXH/m1cSx9cw4jLu1KefKOOhCF2T9fc5N8XBKxBDCzVwMju5x52hJurpA0aY8f 2laT+TAd94uszR65FVimiRg07SM7txDWa/rzWPM3wR/hA/GXqLEKZzDr5jVe+WkGOt6NcS rx70xRxZ849fzOyctpfMTOzSXwd4mh+ijuHPgJjcmvadLSMnrRspfz61L0sEjCIpwA6BGV ltfC/jkvbGe461vs13Mi/ZdzlDDHe4YY6wgG4Rh6KAnk7E8Yr6ST0mw4EvNaWNhw3emiTN 1m4h1uGwOQ6c55BVj8cpmpS6dNYfpl9Nn9ZgguVNV4FSj9zhluk/axKUFMo+0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733511369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eqhirkx6d8DWnd+GAsyqMfl8KI4r6X3Zr1uBNesiqis=; b=cdTesHpKOoUTrZ88A7bhRvQn29SokEhI4ATw8cxVjhjKzgV6FvoMiYcB8AoRAuWqTdeYa8 nLqefna+D1q+UU2iea957McEfx+b4HxBQgC30p41gexMpxEwOlMdIbZ9IpRZapBRa/sfIs n1AhUlmJ5xTE13nn8qCBFayvrlxuWqFBeGkyiAM2lMMF0f0ukwJlu0yOFFgC6NxUX4qM+d 60m/eyJofZ9dj+bR9TQwqqIV5aGKSWdmBHIlHmj1YtGO00qoQWAybIJnLl1oac1VV3rCCa +vNNcfJfZm1QGdyQDfGItRoCNMn4Ykdb0ZJJLIMjHhOXRye8fflVTel11Wjz2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733511369; a=rsa-sha256; cv=none; b=fQp5icxBK5sXxZWtW97+TRzJJqyYOzZBOSUT8hWZLPB4k5E0Jrkog9usnMtDRlpWfljkTw +5UyZH2c92wWorwqmXGaImzSPQ5ioyUXmWFYKAs95ckECrQYB8kJsWH8ONmeqXy04ZkKxq Q0bTRDLncueWqAwLof15G0xGBHPHcwnYliW+XMGWgcxxAnmP8iE0PByEbTxlxZD2Ruo4o6 z9pQs20P/QBmBjpMdCgR5w6r6haHE3BAgN7KO8FxprqpVEBR66xIGAKHTzs4fJoQnkWgFU h4OdQ4psBv0sJ/geCu/PALcWkiP1OL9bJ9fbYOsV5MBTOD5lAVLq8Dlh3rLtLA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y4gT51tl1zqCF; Fri, 6 Dec 2024 18:56:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B6Iu9hL078295; Fri, 6 Dec 2024 18:56:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B6Iu9O7078292; Fri, 6 Dec 2024 18:56:09 GMT (envelope-from git) Date: Fri, 6 Dec 2024 18:56:09 GMT Message-Id: <202412061856.4B6Iu9O7078292@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 839fb85336a0 - main - intr/x86: cleanup io_apic device method tables List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 839fb85336a01848c2e3e6a833fe4604b6f452f5 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=839fb85336a01848c2e3e6a833fe4604b6f452f5 commit 839fb85336a01848c2e3e6a833fe4604b6f452f5 Author: Elliott Mitchell AuthorDate: 2024-10-03 00:47:59 +0000 Commit: Warner Losh CommitDate: 2024-12-06 18:56:32 +0000 intr/x86: cleanup io_apic device method tables Replace the { 0, 0 } construct with the preferred DEVMETHOD_END. Add a space after to indicate it is separate from the section above. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1457 --- sys/x86/x86/io_apic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/x86/x86/io_apic.c b/sys/x86/x86/io_apic.c index 525547f9482a..36c7cba77a35 100644 --- a/sys/x86/x86/io_apic.c +++ b/sys/x86/x86/io_apic.c @@ -1052,7 +1052,8 @@ static device_method_t ioapic_pci_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ioapic_pci_probe), DEVMETHOD(device_attach, ioapic_pci_attach), - { 0, 0 } + + DEVMETHOD_END }; DEFINE_CLASS_0(ioapic, ioapic_pci_driver, ioapic_pci_methods, 0); @@ -1158,7 +1159,8 @@ static device_method_t apic_methods[] = { DEVMETHOD(device_identify, apic_identify), DEVMETHOD(device_probe, apic_probe), DEVMETHOD(device_attach, apic_attach), - { 0, 0 } + + DEVMETHOD_END }; DEFINE_CLASS_0(apic, apic_driver, apic_methods, 0);