From nobody Tue Jan 24 22:11:09 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 4P1h4t0mcsz3bf3B; Tue, 24 Jan 2023 22:11:10 +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 4P1h4t0BJMz4Mbc; Tue, 24 Jan 2023 22:11:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598270; 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=SJV62ONs6g+G/4IfYMYB4EAnZquc8tYxqlq1+HRRxDM=; b=FmlzSepkb4A4eFLOl3WZdfyLwMV2fMN6JyyoUJHfQB+k5BHXh82Vg0E9qsU7NetCW7OAG2 VN7CHv65wPdAZjypaTvpI6BGVZ1yuGvUiYil+j0kOn8rxsbKUWi+sMqTUQZzM3sSeCY3Km vCpYD4rrGsIGy/Wxp3nqt9CXYKP8mVDzb4g1TmFoTCJr+hRbDjOebzJVZy7e1bS/qIiyNr xHnowzVDH/K5Zt9/sq6a22uS28ZWAxc3GRy853k2Gq+m2/+kr3TQPz5KtobjI+KnxEYcA+ E68akSY5PIf+0foWhljBJzw2yBWpPXDbMaxIG3YWN+A0+KzClRk4W18cjcH2kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598270; 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=SJV62ONs6g+G/4IfYMYB4EAnZquc8tYxqlq1+HRRxDM=; b=fSfnx24GBq+lk1F+TKSycexB4VqwJbGXs+gNinzi/jMb7gULo+pSRZLV69pEnFsG3CglZY ueLsl+ATUi8fEk7Y3FWkUAxRpVGS2T+Xx3KWWCXHNDgVDmugMkM7NqyY7rjpHi/KXxX9fO 1qGxu3eKxe1FbpiiMhKWqNLmrL0XtdVFmnZQXpSewCNENfyjYJU7NLAYTZm5UNuYTVgkKh AVCz2AFxxLgkKBYti4JZVYI52heiP5iDLk+alq6bFIJf+ln3psUlDOhQoEACts/sYYQHN/ rZbXP1PTS7fsN3k6rMDofeDwUqVu6YswRW9I7Sco/dEk9JVWAexaqT8/I4D9+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598270; a=rsa-sha256; cv=none; b=qpojwo2wtvICMIruUUznjDRPAsiiDo88b2yKtyxEBNr7Kt0ET7ApVg3i08Ik5BnWbCreXz +teDYCs0+gJIiR6C6C8cEheHxvH8ytaPesrNk3ivUJSlfe9sd5xIzbVR+P8UF7i++khQib xvelzqw4JWPYCelUGwV76BxAzrCbZ2JN4re02va5zAWx68dVKZNnGN/dGezdzqwpedS29L 8pw1jFrDJULkAjWZ9MlE2g8L8ETsqIWIut+Y03Psw09KSRB1RtV2BO1BmukBJKwoIJMrgh m9EEc1ijryEp3SUkjyPc/0N3S6N3vibc5XE2wY/MA95Wgn3m3U0puI5WYfy/pg== 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 4P1h4s6PHFzQX5; Tue, 24 Jan 2023 22:11:09 +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 30OMB9jR083550; Tue, 24 Jan 2023 22:11:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMB972083549; Tue, 24 Jan 2023 22:11:09 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:11:09 GMT Message-Id: <202301242211.30OMB972083549@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: ff2b7167c3db - stable/13 - stand: Use c99 structure initialization for kboot's hostdisk 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: ff2b7167c3dbcde26e513f85e8e9be6e1815d445 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ff2b7167c3dbcde26e513f85e8e9be6e1815d445 commit ff2b7167c3dbcde26e513f85e8e9be6e1815d445 Author: Warner Losh AuthorDate: 2022-07-24 21:51:19 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:25 +0000 stand: Use c99 structure initialization for kboot's hostdisk device Use c99 structure init for devsw. Sponsored by: Netflix (cherry picked from commit fc5d0d51aafc1a954a5e9cfa69cd8cdf91824e21) --- stand/kboot/hostdisk.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stand/kboot/hostdisk.c b/stand/kboot/hostdisk.c index 3c36f2d3bce6..25348c60fc97 100644 --- a/stand/kboot/hostdisk.c +++ b/stand/kboot/hostdisk.c @@ -40,14 +40,14 @@ static int hostdisk_ioctl(struct open_file *f, u_long cmd, void *data); static int hostdisk_print(int verbose); struct devsw hostdisk = { - "/dev", - DEVT_DISK, - hostdisk_init, - hostdisk_strategy, - hostdisk_open, - hostdisk_close, - hostdisk_ioctl, - hostdisk_print, + .dv_name = "/dev", + .dv_type = DEVT_DISK, + .dv_init = hostdisk_init, + .dv_strategy = hostdisk_strategy, + .dv_open = hostdisk_open, + .dv_close = hostdisk_close, + .dv_ioctl = hostdisk_ioctl, + .dv_print = hostdisk_print, }; static int