From nobody Sun Jul 24 22:55:45 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 4LrdnF65Wxz3yvTX; Sun, 24 Jul 2022 22:55:45 +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 4LrdnF1d73z41xK; Sun, 24 Jul 2022 22:55:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703345; 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=2IzwCivXhRVDG1AAlk4SzruH961jMT3+CcODMBcd0IU=; b=gz2burAyibaRW1selyUf9AJquhxvVb02n2f3N0ZMdrcLNeZURVW0mQob4AUNo9RD37ti/5 fvrK8OEaC+mlhUfdh3l5SOxEY/Cowrg1it9VfqlzcJtQdeJG5GgAexRwU7IYnrYVuOlvna cZ/3tbIb0yM1ehmw16QpdER162/OJHzkz0v97h4wCDUxbZzf2LTz591NJAOmHyzeWtV4Ge awnEHlg9OB5EmbTFLBKQLNounamD4+QOYdFNZvIJWDSyCJJJuiscmL8d7zynZwrTLghCIY Q+04g2DNEYPEsOkyDiKCyttFz/HCS2iopCibEa+FXfxSlkLYjoGEu5+6sR9jhA== 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 4LrdnF0kstzbmV; Sun, 24 Jul 2022 22:55:45 +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 26OMtjTm004626; Sun, 24 Jul 2022 22:55:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OMtjoA004625; Sun, 24 Jul 2022 22:55:45 GMT (envelope-from git) Date: Sun, 24 Jul 2022 22:55:45 GMT Message-Id: <202207242255.26OMtjoA004625@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: b3f43ee0317a - main - stand: Use c99 structure initialization for userboot's host_fsops 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: b3f43ee0317ad241fd35cd8a0e087fd2b158ca1f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658703345; 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=2IzwCivXhRVDG1AAlk4SzruH961jMT3+CcODMBcd0IU=; b=bbiXdf9/V5LpMs/2mCK2A9b0QGuQ4mNdriw4wDwyOLPfAJYn2aqMA8gUXba5aW33ygL4bT GsaGsf4xn2zylWXcVjKf83/1jVtl4cuFFmraUo7jd6aGVsbPw+NSsexkRVHTh42EASHPxy XYY+EnisCXbNNpdd7WQOVkBjpKnRJ3rRNBgecV1dnMhE+v0fp0Q6//jaBYAt9RGgL+MV6A TOpGpdkWSz5ymhD4Y9MygvebQYHwm54UYNluFtlYZ6sJC8xCT903BfMNhwCxVrpdrjA9M+ phQ9aHLgf6H4tMrq+OS4aBlLt1w9gUEtRPtj+9qcc21hdJlKnNqsG/y5SkilAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658703345; a=rsa-sha256; cv=none; b=ez1cjHPgY4NXK/B1l0GDpn71nF2OwvEYZ9vbAwNo3yM8BtWNsYvpVOfSbc9eUxg98Veox2 Iq+fib7XU3kvGCLm5LD0xUgXMGWSLzRoSEh7MLXQEMW84WY5P5hkfQX6qJsGnxE8TQF92X PiBj5wWFFKE1xZZI+PJ3KaXvfU/7LqlCXB6Y6sYQc9bj34HKdl2Ss49nu0AhsEZlL0i+f9 E5VHgjV5z9FROYGtxFookzXHzi4xaBeUkhMri3Kd/MPk79aIwodeeo4cbenaHNDwlemZMZ C/nZRzuBf5qrkB+fNr+XauZWV+X+IAr8ZkmJ7NENOWh16vgQgvvh59e16KL7EQ== 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=b3f43ee0317ad241fd35cd8a0e087fd2b158ca1f commit b3f43ee0317ad241fd35cd8a0e087fd2b158ca1f Author: Warner Losh AuthorDate: 2022-07-24 21:51:50 +0000 Commit: Warner Losh CommitDate: 2022-07-24 22:53:35 +0000 stand: Use c99 structure initialization for userboot's host_fsops Sponsored by: Netflix --- 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 = {