From nobody Tue Jan 24 22:11:12 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 4P1h4w66xHz3bfLJ; Tue, 24 Jan 2023 22:11:12 +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 4P1h4w1yPhz4McV; Tue, 24 Jan 2023 22:11:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598272; 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=OFytOvWvWNMxgckTqpyyWeYcuHEkYBRZEKwGQC6TZlY=; b=kCvPjyTecjfqejAHYJt/YIbJd3IwjiflCFjzG89ZduTNC01ingO62dSTMUrXyCYLYoPEsj bFpQ1GXyaCr6vhNAPvUBUedoyQ7mD81DNxQrXbMqcd5HKrzyat2DftnwdMfhTaQie0P4M1 /u1FVcbZw4IPOLnz7Yez+ol150Wk3qMgp10weSryuTNGLxiaVRlwXpUL+C4r4fn56WyDxq 8gsMOFXT53AswZqNPniZowIuS2YAQ+scHuHgTd7FedrJ1n77Mlk/832mKqlN9zohXYp6f/ KtEP/dj57BDycn5zY4nHlSfXF6eJBEVs/+YYXXqy+yEEe0EnfUH/lrvScJvJ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598272; 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=OFytOvWvWNMxgckTqpyyWeYcuHEkYBRZEKwGQC6TZlY=; b=yqxp2cl3EhVoYnIlSK5VlnHrYf8T5Y6CU1rF3D3df2IXgiOfLU0xqcEIPgd692wyQ1yWdL gtyPE2fnTkBgjS8+dNgoVTKNoGCPfuJG1PuQz0zbNuI3eHzxR/RbI4Rzqpuo/HUEzX4gxV I1/271Fq3QM1FiTXAsqSHO+RPze5XTl0qWWLaqyKzok+etGVqWiByFYu9FghNavh1cGiqB 5tTySlz7RAmGT9kk4ijYQfidxhJrD/WYIb6pr5ZE7C7EvvdyAmaCK4mHehllLYL6F1Vddg 4sZwiAJKj4Es6Php4jRiU85Ek/kUcNug9ofQ55uc7BftclW5PYLKWlP6t5x+Dg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598272; a=rsa-sha256; cv=none; b=yENI6Pl44c0rehYgzaDrbJ7ff6RBS01v/frojbxRsMP0zbpkLG5lpfM3R/cgvU7VoP2a2B njQnwnmBdz3uvs90rbsXmrzM781VxFZ1kRsQYW8mRXq/NNLhXApICDld1wXPIWmi9DWmKR pNHP2aOkld5Grv8bZTaO3Tf4lPhEJBvAKYNKA+PnCSW5MfmLWp0BlTgDWrG588ONPU/vnZ klIjQl+qnt6yIsYJT64uRM4a4Yp/MTbpSSDDTW7I2ev8BJdHpJxlJ13DurZ89SvUFNnGji i+5O6LN/sjYRrMby/L8WP29UPsJbidvY27AOhWQoawk0wrbY19zJ73/+f2XQ1A== 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 4P1h4w12vKzQX6; Tue, 24 Jan 2023 22:11:12 +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 30OMBCoS083602; Tue, 24 Jan 2023 22:11:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMBCnO083601; Tue, 24 Jan 2023 22:11:12 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:11:12 GMT Message-Id: <202301242211.30OMBCnO083601@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: 15aff38147fe - stable/13 - stand: Use c99 structure initialization for uboot block 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: 15aff38147fee691fe3b06a7dd3736ac61cf4f63 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=15aff38147fee691fe3b06a7dd3736ac61cf4f63 commit 15aff38147fee691fe3b06a7dd3736ac61cf4f63 Author: Warner Losh AuthorDate: 2022-07-24 21:51:24 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:25 +0000 stand: Use c99 structure initialization for uboot block device Use c99 structure init for devsw. Sponsored by: Netflix (cherry picked from commit 1e3d1c86bc86197c1ac7f82b28e13985df58fcf4) --- stand/uboot/uboot_disk.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stand/uboot/uboot_disk.c b/stand/uboot/uboot_disk.c index 70dcfdcc8863..236a118b915a 100644 --- a/stand/uboot/uboot_disk.c +++ b/stand/uboot/uboot_disk.c @@ -81,15 +81,15 @@ static int stor_print(int); static void stor_cleanup(void); struct devsw uboot_storage = { - "disk", - DEVT_DISK, - stor_init, - stor_strategy, - stor_open, - stor_close, - stor_ioctl, - stor_print, - stor_cleanup + .dv_name = "disk", + .dv_type = DEVT_DISK, + .dv_init = stor_init, + .dv_strategy = stor_strategy, + .dv_open = stor_open, + .dv_close = stor_close, + .dv_ioctl = stor_ioctl, + .dv_print = stor_print, + .dv_cleanup = stor_cleanup, }; static int