From nobody Tue Jan 24 22:11:23 2023 X-Original-To: dev-commits-src-branches@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 4P1h574YDhz3bfPm; Tue, 24 Jan 2023 22:11:23 +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 4P1h5744Gqz4NJG; Tue, 24 Jan 2023 22:11:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598283; 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=Dx0klaHMfB40+v4R1ulS0cQ5LFDQ7zpqanlnrp0x1VI=; b=F9t5YkMGBIpQGriQJU1lPr4Idwy7anjIXOx0WE8y5AgXjYCiZWiJfVJ6BfJ8eA35in+MOE /lTLJJ9B7o9bcDQCOJt3gTR+WPdA8oQqvs5STnrji0Acm80+7sVEsgoQ5ejJMPGH+BpDIS QZLoNYgEPwpkOgmjirRpwCrkcPVUiWhaJMIfykACp9kGWLOLDuG+NvSLaM18g7OL7wFMEH 6mY6fTezem/EBuy0qCVbjbGVx0KqPsJIJL1nAyer2rJvbAKRel2FYMH4x98/lONyxedJ34 dOuZ9qD2dVZaoxhClztV1sAdMe8+iNlROw3BtyMK7j07SuxwLeKbAIqMqQSS+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598283; 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=Dx0klaHMfB40+v4R1ulS0cQ5LFDQ7zpqanlnrp0x1VI=; b=TOrzCAArYVWRNRqZ0CekV9hc8a8zw2xUig7eysq6DyOaMxK3nmEXw180XRoJzb9D1Iilwr yLslcPgQTeXu3QuEThSyDYIV9Vn1aoU2Gb8/t2gphLXOxtHFFV57dnTx0jCJqz0ybUqoiF 6cmQMYmQcQLaRPa+5OR7+SrE8p9uN88Bil6Il2bivxW4mWvFrR26Hp54gTDGAP4by7rysa VJvFjjjdfpW+pyh7Tiv7gjQUZ+/E2CGyO2atBpJz6auoQT6hfdAcii6KWcVLqi8IGv4o2h hiGNgm1dfJUy3k3bPsXR9EMkRMg2Hk5W6LmT2TpFWZycZ3aRjHA2QboaQGDu0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598283; a=rsa-sha256; cv=none; b=RBCGDOjJXJQ04LwZ5puRnEjRFo9kyFNT+KDL1kw54KgTsVTJ482JlzoUaWPdmIl7SOHiD0 eY+Dwg7sgAzQ6VDlJJf285onKC9kJgtyyU/UdHm5owtxj67eIGcO9lg74a+K2iNET1/D+n heQk6eojxZ8u79X1isBrypn+3vAmSV+QFSkLetl/bGZPrxxrhzvD+rPQSISxuF+V5RpvIr 0uuXd3Ir9joSfna+3GLjnkOGxFo9W4CN9DZCKqZ5V6CHkpAbtUlBht6T0Kgm9JvQ1siT0z ckM8SV+teDKaUJ4s6Azk6BejBPCQEB3gKVfqFK4aNp6PiwmG7VV5QTBh2Q9JsA== 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 4P1h5730sSzQNr; Tue, 24 Jan 2023 22:11:23 +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 30OMBNgr083865; Tue, 24 Jan 2023 22:11:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMBN0M083864; Tue, 24 Jan 2023 22:11:23 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:11:23 GMT Message-Id: <202301242211.30OMBN0M083864@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: f3295e763c06 - stable/13 - stand: Use c99 structure initialization for userboot's host_fsops List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: f3295e763c06aaca27e0fa78d1fc331285f7f264 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f3295e763c06aaca27e0fa78d1fc331285f7f264 commit f3295e763c06aaca27e0fa78d1fc331285f7f264 Author: Warner Losh AuthorDate: 2022-07-24 21:51:50 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:27 +0000 stand: Use c99 structure initialization for userboot's host_fsops Sponsored by: Netflix (cherry picked from commit b3f43ee0317ad241fd35cd8a0e087fd2b158ca1f) --- stand/userboot/userboot/host.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stand/userboot/userboot/host.c b/stand/userboot/userboot/host.c index 20952983e0d1..74727fd8ce3b 100644 --- a/stand/userboot/userboot/host.c +++ b/stand/userboot/userboot/host.c @@ -155,14 +155,14 @@ host_dev_strategy(void *devdata, int rw, daddr_t dblk, size_t size, } struct fs_ops host_fsops = { - "host", - host_open, - host_close, - host_read, - null_write, - host_seek, - host_stat, - host_readdir + .fs_name = "host", + .fo_open = host_open, + .fo_close = host_close, + .fo_read = host_read, + .fo_write = null_write, + .fo_seek = host_seek, + .fo_stat = host_stat, + .fo_readdir = host_readdir, }; struct devsw host_dev = {