From nobody Tue Jan 24 22:11:08 2023 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 4P1h4s0Mlqz3bf36; Tue, 24 Jan 2023 22:11: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P1h4r6Rmlz4MNV; Tue, 24 Jan 2023 22:11:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598268; 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=TWJqv5h/rz4FQ8xR6FvqpVYeNv67uDTufEYJPlgqoyg=; b=Q253+OxFGGTnYvyF0300qhgEXKvlRkxIkYMQlmyrV2E15CLirMxwYiTs9IVzvyLlJnPGmi C+0R7ar03Eh1m1p8AOSQAznINw7N8BKq5KMLAGPNJQ0Ej7mGER8yYTqmmGVlbd4QQNhOX+ BMkjDRfKPbAjWbkj4wlolPeO7AIOuVp5wx5GsMUwGcU3pmmHvcr+k/tvQVJZUtmsRW6NBY Jbq1jOdq71vi2bL5QOOHHPEeWlz2rn4M1LlmVigPk5PaaQDutTMTGMdIjFid5gZQL4I7WE WYTSPRx/Iih8Iqox5v50cwTbU31CKenNyKvFAR+sW8aOuYZnUbOkvco4X1MsLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598268; 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=TWJqv5h/rz4FQ8xR6FvqpVYeNv67uDTufEYJPlgqoyg=; b=WCHk3ktTwLD6NzmRbFpQMVkptxy1QuWV9Pq+IxR5buwtJH7ykX2uaj7s3EhDHlrN8SdZP0 +6ukH7H5BDA0eZkIgUYx8S8oE+2/buZgOtHGwpbv7vuXxloXki6IA1Wdcs0NzyVECQJe2Y ny+xWpHljzcH0Ze31YhE7dzi8Axa/06KyLBoCLpZwjnELQQbwyGfCrbaqKUopyxH02FxBG 2IfKCS7tqnkmnb0tNSpo0z2NwoxW1hcdEq2HL8MBwv1HNQDNiuY7ETzxen6zj1Ddse2Kvb xvwFEWl96qgXRf8AFk54rTebQgM+wlqUrFQ3PcB2imrRDWvRUUA8HBrUw18I+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598268; a=rsa-sha256; cv=none; b=AAmPkt0q7D0o4MacIR6lI9vtwBgxDcreIcitWP5A3tGzydyzA1nBpwws/nMDY6XaTjWogO HP0PwZLDPfCZkNS/mUrxJRgu8KNFI7rFwyWMbB45pyCSCx7UjLowKdkAv58b0a8acfvR0G GT2m3qNgZ7AIVLK0Zmhx447yi5HpjugCDb2MrRW8KFDLUmNt2JISYC4pjTDC7My0x60C+S KgFZPfe6ZjrU6OUnE6VNNeQoZXM1Og5FFUE3BBh67uVo+A+3qSdeNWFwZl/+WuYRrYbBdz SlZmwNEQSwQqeYhTBjTPNdLI3e30onV2xmIBu4MrGWA1z4mCRIQF3VvSgYw46Q== 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 4P1h4r5S6czQRS; Tue, 24 Jan 2023 22:11:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30OMB8Tv083523; Tue, 24 Jan 2023 22:11:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMB8rh083522; Tue, 24 Jan 2023 22:11:08 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:11:08 GMT Message-Id: <202301242211.30OMB8rh083522@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 8b50c54588ba - stable/13 - stand: Use c99 structure initialization for md device 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 8b50c54588ba13d809d0bff9c2a580be900dff5a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=8b50c54588ba13d809d0bff9c2a580be900dff5a commit 8b50c54588ba13d809d0bff9c2a580be900dff5a Author: Warner Losh AuthorDate: 2022-07-24 21:51:15 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:25 +0000 stand: Use c99 structure initialization for md device Use c99 structure init for devsw. Sponsored by: Netflix (cherry picked from commit 143452f7609fc232ba9ae625a1f87d12449ff55b) --- stand/common/md.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/stand/common/md.c b/stand/common/md.c index 5585218b3276..e9fcac668d93 100644 --- a/stand/common/md.c +++ b/stand/common/md.c @@ -66,15 +66,14 @@ static int md_close(struct open_file *); static int md_print(int); struct devsw md_dev = { - "md", - DEVT_DISK, - md_init, - md_strategy, - md_open, - md_close, - noioctl, - md_print, - NULL + .dv_name = "md", + .dv_type = DEVT_DISK, + .dv_init = md_init, + .dv_strategy = md_strategy, + .dv_open = md_open, + .dv_close = md_close, + .dv_ioctl = noioctl, + .dv_print = md_print, }; static int