From nobody Sun Jul 24 22:55:30 2022 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 4Lrdmy47Cyz3yvGP; Sun, 24 Jul 2022 22:55:30 +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 4Lrdmy3RTmz40nG; Sun, 24 Jul 2022 22:55:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703330; 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=nqJR1xaU0in+kQFlcQ04cL8KteUt9J39j5aX561OYnc=; b=eZ1kAPucrr73/PjcEWT9zNtjZnM4l0UHKmlbfeUFJBSRhA/G5j3LFAt0bEGYJca+p4ZFUV M/rdhf9xC1oxEAtr7VaVgWLE+riBKLs0dpoMGFKjuxQuczVjfrWFm01+/XllcuGxw4JOkk grtRKoYk2dnPPL1YjLbZYWw4LjSw91W2Wf30BxTIdNOobKlxKEpGYkzHQM6FYIQuDkoSo7 7GW7yVplgH5ZnZ9L9doIX1OnDmdpwZg+io7qt3o2/L7+Vt5E4FHPWrsbaAcqwIUtN83ZXg LIYcx7l6gyIcZoOd0WFfqBJgs8nGvfODbOxn1gW9S4U/nZd5Rkp3PzSkNaNnpw== 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 4Lrdmy2WxmzbVL; Sun, 24 Jul 2022 22:55:30 +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 26OMtU0r004295; Sun, 24 Jul 2022 22:55:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMtUgG004294; Sun, 24 Jul 2022 22:55:30 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:55:30 GMT Message-Id: <202207242255.26OMtUgG004294@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: 143452f7609f - main - 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/main X-Git-Reftype: branch X-Git-Commit: 143452f7609fc232ba9ae625a1f87d12449ff55b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703330; 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=nqJR1xaU0in+kQFlcQ04cL8KteUt9J39j5aX561OYnc=; b=OoeO6XcXD3km4SVbjw4WOixM1WNg5o2inhRkkaqdS5ZnjdyRf+xBUWfHZEaBSgXanPNT+9 xxzDAN280CrDsw6ga5LVlEhXG/lrlqxFzTsHm/OodDan9OuBzCKXbPt2XT3uW2DXZq2Kxs x7PV6F2h3VX9b5Hi1uFAtSF3AF8bzJFPRvodUklcMiAVA1I/BJw1ZtYIo1v7Ru57mSTO5b koGG7qUs9XpTzbZDBHZL/HZP569+Ei3rtMUXojhTvMwEMYwmk9RvgOk4dKF0lWyYKcAxuR XFxib5Vn1CeyAfZaNbrMS4MV5fP1n2Doij4PiT8c1PklxgQlfCER695avBzh4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658703330; a=rsa-sha256; cv=none; b=Cgo43IN+x5QMLTf7Y4X5mhaA+xrFWKH6bzeM9X8NvPmCzWWo3YUIdto2n08vOlyoPxkWg2 FbmUmEM3iaE2hwX2VGrfqAuUxqS3Kn2iRs/iRRHerGNECrR/aPh624T8MkE05YpNZ6yxVF uTbtLMKFRu07ChSinypgDSDAkcxZGo5j03+EKKcUaW2EdHt8d6MT1uc0OoTP418g6as0Hx +KomhBGozRiFapgYBkhtYkuP3xiiT4DgD7NV48xg2FxKedOMf0KfzSVdEx9I9FX2lU3dUK wbW+ildZdzylNjsX2FVfRAxVkwv8FrUokh/CSOv6Pv6vpbPk6Q1FhQ/c/JX2ug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=143452f7609fc232ba9ae625a1f87d12449ff55b commit 143452f7609fc232ba9ae625a1f87d12449ff55b Author: Warner Losh AuthorDate: 2022-07-24 21:51:15 +0000 Commit: Warner Losh CommitDate: 2022-07-24 22:53:34 +0000 stand: Use c99 structure initialization for md device Use c99 structure init for devsw. Sponsored by: Netflix --- 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