From nobody Sun Jul 24 22:55:33 2022 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 4Lrdn217wLz3yv2G; Sun, 24 Jul 2022 22:55:34 +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 4Lrdn16WGJz412v; Sun, 24 Jul 2022 22:55:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703333; 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=+9vyk3SO6hTYIvDH8x67U6PlUy6SYm2ceilWc0Q6X+s=; b=Q1bp0pbq7hBtozG8V+Xt5gTlP2x79nyR7ngCl12WAdOoOGBNNgOpJTmgQQQrH7/2CXSsJZ ltFhbJiiei1r9qaiNKRxoT7QVQazmx2qWIdtCGbsdd9Q4axcosQ6v9ZLN1881BSIoEUQtc PaxLOl+c7sseZKeO+wPdQy9fjwpzRTVWSw9Zt1IPcWtfL68IAYHhvs4Yoy+0FkFEdqkSLG SyyH1R7EqkX/Y0eoehMFIpcdIbEZEzo6ShCS10VoQytOHhSP4Xy1CiwtOSQnAuccqAOiIK r7u6vZdahkH4CbySMycN+spgQnBzqCGzheM0xYnq0IZ5HNoQ4TGQG46vG8MSIg== 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 4Lrdn15Zb6zbH2; Sun, 24 Jul 2022 22:55:33 +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 26OMtXmF004374; Sun, 24 Jul 2022 22:55:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMtX4q004373; Sun, 24 Jul 2022 22:55:33 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:55:33 GMT Message-Id: <202207242255.26OMtX4q004373@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: 1e3d1c86bc86 - main - stand: Use c99 structure initialization for uboot block device 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: 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: 1e3d1c86bc86197c1ac7f82b28e13985df58fcf4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703333; 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=+9vyk3SO6hTYIvDH8x67U6PlUy6SYm2ceilWc0Q6X+s=; b=Flf6CklLItMpbcH/bsM3s8zf1rCpZEihUM2CwV2LqGrw5SUtZkEQaYAqueGbXG+pior6D6 kWPWMdNUQXznrIoTXAuHTEOGHN4B4QMacGKvjjDuik0MfL8re2YlvdFH2wPwcHd5cLmldp Kq3B9LS6CmtrwCqLFI8jLUvYj4lfAgtAf+wJucRGonPOpUxuhmvTejBJ4W87zxAvQKiR5X gp+yjbqb6q6J8DSqw+2uKxKrB/EJ5zZwjBuTrNFiqfBn82E05apvNUNMsuWBnq3Eb0xwYb OTVH6gmucsfUJL6PIolgb1aXwinn+bVZ3Y4jsIlnBsPPenTzqEwWvzMzQKIxyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658703333; a=rsa-sha256; cv=none; b=Pz2aPRTZHKD/lpBM+u8YJorQrVJdHsgENsoZGwPJjayREp0QscCb4SuNomL9OBzbnYW5wF dgviynK91LgQ1PG1QM4lH3lLA/2q47qLMib6VCJiEAPe/jKWArYMlV2Sn4nptBRrEZ5AO4 p5oiLAcd70+1r2EUwGN7Tb2rABD88N2b7QgnSf6xU+clah4lP2Nf1qEOXJc632QfTZN/Yg 9XzWEtAN0aR+61v5mS21T/Tefs4go9aW1pflfOvstsqEdGPegQCMVt7WX9kesXGqI7z40a Y9PSi3oH0wc0A1ozyze2pQkGIDI/TjZqJvvBYA37uM7r5m1je7FNA0Zl7+BNvg== 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=1e3d1c86bc86197c1ac7f82b28e13985df58fcf4 commit 1e3d1c86bc86197c1ac7f82b28e13985df58fcf4 Author: Warner Losh AuthorDate: 2022-07-24 21:51:24 +0000 Commit: Warner Losh CommitDate: 2022-07-24 22:53:34 +0000 stand: Use c99 structure initialization for uboot block device Use c99 structure init for devsw. Sponsored by: Netflix --- 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