From nobody Tue Jan 24 22:11:13 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 4P1h4x3NLXz3bf53; Tue, 24 Jan 2023 22:11:13 +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 4P1h4x2Vnpz4Mj8; Tue, 24 Jan 2023 22:11:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598273; 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=JfIHBNOGnrFhWGWCgkc0gxf9G9MaQZTNjIwaUEVX9AA=; b=RtXORAiXiAgNIFEeXOiK2gvLtEUETkqGiy200XbcXbgwtllk9atDQxDZw9UT16W22v6ctd BfTar+2Dy77Oi2CTHdINfQ+jLkns1ypZ6Gsg2Xb+u7IpbLhSl9b3BRuqXY5JtATxw4Wk+s +hDHuH6qn1SRF439xnwQbZOnetrRiT8dzzhBEsu0lJrEJYDE2wLavszjfNEdAkydgH9uNR PeBAOy2cdLo0C+YCK8ilkA5lZZDt6jnqsIO3avE1DaA/ZRV0TLHt7QiLKmBqkT6K1TBE2B NYV9081UF5e7UOrMT4Z3LM/JjS+sMIQaEjzKaS8VyD7TTyHpE+xeTLFph+OGAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598273; 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=JfIHBNOGnrFhWGWCgkc0gxf9G9MaQZTNjIwaUEVX9AA=; b=CxXb21RaBkoA1aShef5J7g6zf27VeOOpmEBAUCWlDwnz8WPiy6tVMP3QchtYNOOVHYpBlL /LhhO8GEJKNZijas5hnc2ArKkcIzJ04U7lyhZ5iE/BN7X4yOEUiE7kG7vvNg8kQlEtNL3M L4JJGYd1287KfAsMkMSNgB+gwyH4U1zKVJiI+jVFVBsJZbTCW57k+rwW1KRkRJxsXRn/cm EQn6Ro3RfHnArEaEuFQ3XHSy51kVDHeyhF60L4pj2Y0b0dmGda3iOkAGjbvo+7oL0uhnvP L28zlRm37wFQqwlzQyRtw2aQlDyoSi+cquZdO4zNzuodXlQodg7/hl7IaoNqXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598273; a=rsa-sha256; cv=none; b=o3tdLyVUZjmbf201m5wuFrPzQfoyvFCyZornThA8fVm6N5PmTdwRY05qP/+i5E+61RoF0f JyMmnu0dMJfGPhjEsALlJBD8olhxQ21oP3Ej/mYA8YMZnUQF0PI+jdxCt1jqZIAuSqBLdb CReiryxJHYNqeqgzy3fJNvIEHhYaAoOkpWG03pjD00pYA2+K9lRH/qc8AAJgDN4t9XrjK+ IMUR4Th4hzVkLpLJwa7JXY1lesX7KftNBxQJkxYEzYz9JQ0SiNxbKrq4nEQ6MDSxD4z9Or hjf8bqAtrt5G3yo2ag2yyDoFeL43L1jureZwN1B2fnycZlFlgAhoGdxJNBsXWg== 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 4P1h4x1bCQzQTh; Tue, 24 Jan 2023 22:11:13 +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 30OMBDDn083634; Tue, 24 Jan 2023 22:11:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMBDBb083633; Tue, 24 Jan 2023 22:11:13 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:11:13 GMT Message-Id: <202301242211.30OMBDBb083633@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: 149e49d353e6 - stable/13 - stand: Use c99 structure initialization for userboot 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: 149e49d353e67a67e45507051321df4a8fb12ae0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=149e49d353e67a67e45507051321df4a8fb12ae0 commit 149e49d353e67a67e45507051321df4a8fb12ae0 Author: Warner Losh AuthorDate: 2022-07-24 21:51:27 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:25 +0000 stand: Use c99 structure initialization for userboot block device Use c99 structure init for devsw. Sponsored by: Netflix (cherry picked from commit 4c460aaf8342ec80216dd0e7f876903d75790c2f) --- stand/userboot/userboot/userboot_disk.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stand/userboot/userboot/userboot_disk.c b/stand/userboot/userboot/userboot_disk.c index caaa3373812b..ed8a6dbdbbfb 100644 --- a/stand/userboot/userboot/userboot_disk.c +++ b/stand/userboot/userboot/userboot_disk.c @@ -63,15 +63,15 @@ static int userdisk_ioctl(struct open_file *f, u_long cmd, void *data); static int userdisk_print(int verbose); struct devsw userboot_disk = { - "disk", - DEVT_DISK, - userdisk_init, - userdisk_strategy, - userdisk_open, - userdisk_close, - userdisk_ioctl, - userdisk_print, - userdisk_cleanup + .dv_name = "disk", + .dv_type = DEVT_DISK, + .dv_init = userdisk_init, + .dv_strategy = userdisk_strategy, + .dv_open = userdisk_open, + .dv_close = userdisk_close, + .dv_ioctl = userdisk_ioctl, + .dv_print = userdisk_print, + .dv_cleanup = userdisk_cleanup, }; /*