From nobody Wed Dec 11 22:54:52 2024 X-Original-To: dev-commits-src-main@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 4Y7rXD3Qq1z5gbLN; Wed, 11 Dec 2024 22:54:52 +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 4Y7rXD2bZDz42bp; Wed, 11 Dec 2024 22:54:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733957692; 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=iQLljO6NdUaCbTwOvoHwlnp94UCxhggjBWMqp9rju4U=; b=Vsl6IdL5UQ9+1jSc72r9g/enkcYeecdUPAKTi8ZJpz+GwdqkNJgHNSWKqEs3YbzXSDQGNg +Uxs9HWbBemIbLyMfzbr/RjbMaPWBUVjeZKWRA27JLpcK1Wf8GAt+xpHhRx2ari9qNURV8 IlRrllrj46DXu1Q87+by0MmKXNzWSvwcmSlZZ5Jyv8VheAxdgb7MLs3kBjFheE+f8ufSV3 7wHTFPyfidjxD2Kk6RhHCr+uyRtoI0eCFqPpc1ECaJghPswtWUn/aVJrEkuZsYGszd1Zm2 mhrUmLHIVv78ixDhJkJ98BtywG1U9NhHa+kE0zYR/0Nl4C6BgHxqCPRN5hFjDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733957692; 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=iQLljO6NdUaCbTwOvoHwlnp94UCxhggjBWMqp9rju4U=; b=HkYDnwMtxRQKej1Khjj6AA/k3U21TXvn7LHSGOoATs6D+Z8CbEmsM0TanrWSqG6TSyGP7i u6IZc41fPlUhBdVAGqtOknGmP+aKaLcz/B3c8OB/19p1e6XCd5+0b/RJluCEUSjfTfyGaj YaXFGaZ6BBeYEURz4IsLu0xXRT5EQVSGHBDVn0N/zG+y9u46lNqTsz6o5LIAzkG45i/GyF U+eh2w7awo47ntVprwNxkSdA12KBYSRHavFiuzx4WUmgawanhtKiiQqxoSiMdZbovF6eWo n1eEmbQ8k/YEF6NZAL9A/wzzdJRIduNSlPxLKlOa8/zCbJZHdY6apE2zoyPNLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733957692; a=rsa-sha256; cv=none; b=MqKs7Nw4KynbeJqoXxlaKttyTo3d/fw3eB7+MNjgf40G1Pj7nyGHb+/L2lngcei1yAFmpP xSqOhNuVo5lZiFaZ1y+7dgZ3tX/tVN8oq9b5KZONv8dCmAj0HNGW8m3zLfHTpn5XBNzC8V bLLBVQ1mTjaVaXtOvExLxTEUrIf0Kr/AhozDGSgL7hoV0b3eSz91ARy6DToOaj33xmXz5a 7F/cDPGFJOjOJkKtncbhgOM6ZmPtdSnb7n+jBTdCZOyDVIGt/EfwN6GGyhPQjrtiumK/Va 858zhhdWx8aPkmbV0YicHFHElKU4TZBp32cYraC6zhw+k74xJZYoeI2JqOPQnw== 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 4Y7rXD1xsYzRjw; Wed, 11 Dec 2024 22:54:52 +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 4BBMsqcG026286; Wed, 11 Dec 2024 22:54:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BBMsqte026283; Wed, 11 Dec 2024 22:54:52 GMT (envelope-from git) Date: Wed, 11 Dec 2024 22:54:52 GMT Message-Id: <202412112254.4BBMsqte026283@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: 638b29fe651e - main - x86/atpic: convert INTSRC() macro into designated initializer List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 638b29fe651e9a2454d6d73f0af0aec0d208c5d0 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=638b29fe651e9a2454d6d73f0af0aec0d208c5d0 commit 638b29fe651e9a2454d6d73f0af0aec0d208c5d0 Author: Elliott Mitchell AuthorDate: 2024-12-11 22:53:42 +0000 Commit: Warner Losh CommitDate: 2024-12-11 22:54:09 +0000 x86/atpic: convert INTSRC() macro into designated initializer Move to using C99 initializers. These make the macros more understandable and easier to use. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1457 --- sys/x86/isa/atpic.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/x86/isa/atpic.c b/sys/x86/isa/atpic.c index 4ea80cfff7f9..56566ef8d64d 100644 --- a/sys/x86/isa/atpic.c +++ b/sys/x86/isa/atpic.c @@ -113,8 +113,12 @@ inthand_t } #define INTSRC(irq) \ - { { &atpics[(irq) / 8].at_pic }, IDTVEC(atpic_intr ## irq ), \ - IDTVEC(atpic_intr ## irq ## _pti), (irq) % 8 } + { \ + .at_intsrc = { &atpics[(irq) / 8].at_pic }, \ + .at_intr = IDTVEC(atpic_intr ## irq ), \ + .at_intr_pti = IDTVEC(atpic_intr ## irq ## _pti), \ + .at_irq = (irq) % 8, \ + } struct atpic { struct pic at_pic;