From nobody Sun Apr 09 21:35:40 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 4PvllK1bcSz44JS2; Sun, 9 Apr 2023 21:35:41 +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 4PvllJ5qMmz4MsM; Sun, 9 Apr 2023 21:35:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076140; 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=cXf61+EmomesZsEVARy4XxSs9Mz/wdE0uU4Ny2hCmZQ=; b=f9yPM20TPmzqLTy8B3P6c6pgwr+cCVADuh81Rj0zPCPP7sfrUDEUlu9D9hCnWSXZKCDhhb Pkk0LMwY9Npj7J4iORPqvWNmxv1SwWcazE8fYMP0IQYoqh4Z00dao5t7JSKMQOMzOGu8iR zU2YsOdf8T3oguYjF0LUHdrfXJbvkEZdFOSXmsq+YSCRfa9TDET+LIxW9cCQP/EMNkEO2w M4AlG01MJTpJdBQSY+LzQBgKvRo2pyePzX3viEf/xrGRl3e0ZGMrkQ9ooJziolE3C6EyLC yUL7rKwlLyk9Rsu3dqZYKAIdfWzCvk8cXXWDdf5Mgx2XKQUnckEp1QJ8l2ogCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681076140; 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=cXf61+EmomesZsEVARy4XxSs9Mz/wdE0uU4Ny2hCmZQ=; b=LCkr6DMktOpCb1YCCufB6UAGT+urQ6XBu1hBkETUsqGC6VjPpCZ+IbCoSEJubQ2YINGc+E JIEDfceUiobDnV3TY0i1hmEa3rWMf/g8TiEkYI0b14jAVeGPopIP5GpMwk62iQ0ZmAlY4l JPixJoo6CNs+2Fx4KR3/+w4y3wXqtfEgIKhnfy/CD5BQDyQ7EF9hmPuoW6cSN69ZO1r0RL lKxM/tVqqqzSe20wEzcdqwjR7LG1W4965L9W1eIBK7j6xlbtyR5vJLjRfQEX7q48Lw8SMl gE7VynaIk08TY+edixDKvLXHqVaQliH07HoHPV9koz/kO9AS/HRnYg8HtUQwbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681076140; a=rsa-sha256; cv=none; b=nPLO4dw9mGRn+CZy0tQVDbkYXYtdUbrM67onCMu1mHSKUcgt1zg3N2S9vqNbLjDB0DhLn+ 7FZkhpT9+ovJNAp+hWQRSYo8OJUBWctWFtE1RjiScPylRXGMFHcYlgd85/D2ZiAFm+LGD+ 6ziPBUrMQf1IZ5YW5Ue2FWJLSHMCyi+4w0aNEcXehq7p2+hlhyQBymqDzds/rNxGVoA0jq 7EZiDGEUx9nnDExqenaAehce0aRcEowzAqpNfwGKxZqUPrH2G8v8YkW1vSK9xVpQNNyvSR +FtIOgwh0IlgngtrhLcAYVzQwJ/Fuv9Nk323YLjvRQ4QieIDCB1Uvjj+7cHadg== 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 4PvllJ4npwzPkn; Sun, 9 Apr 2023 21:35:40 +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 339LZeaN081982; Sun, 9 Apr 2023 21:35:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 339LZeVp081981; Sun, 9 Apr 2023 21:35:40 GMT (envelope-from git) Date: Sun, 9 Apr 2023 21:35:40 GMT Message-Id: <202304092135.339LZeVp081981@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: b14680d4d707 - stable/13 - nullfs: ansify 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b14680d4d707cace67e724bd10796e8fe18c9b8a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=b14680d4d707cace67e724bd10796e8fe18c9b8a commit b14680d4d707cace67e724bd10796e8fe18c9b8a Author: Mateusz Guzik AuthorDate: 2023-02-07 23:22:27 +0000 Commit: Dimitry Andric CommitDate: 2023-04-09 15:40:36 +0000 nullfs: ansify Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 24641b8b3964e9015d3f8579b2359104bb0e5eea) --- sys/fs/nullfs/null_vfsops.c | 45 ++++++++++----------------------------------- 1 file changed, 10 insertions(+), 35 deletions(-) diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 1a83973313b1..241e89a60f6f 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -230,9 +230,7 @@ nullfs_mount(struct mount *mp) * Free reference to null layer */ static int -nullfs_unmount(mp, mntflags) - struct mount *mp; - int mntflags; +nullfs_unmount(struct mount *mp, int mntflags) { struct null_mount *mntdata; struct mount *ump; @@ -281,10 +279,7 @@ nullfs_unmount(mp, mntflags) } static int -nullfs_root(mp, flags, vpp) - struct mount *mp; - int flags; - struct vnode **vpp; +nullfs_root(struct mount *mp, int flags, struct vnode **vpp) { struct vnode *vp; struct null_mount *mntdata; @@ -305,19 +300,13 @@ nullfs_root(mp, flags, vpp) } static int -nullfs_quotactl(mp, cmd, uid, arg) - struct mount *mp; - int cmd; - uid_t uid; - void *arg; +nullfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg) { return VFS_QUOTACTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd, uid, arg); } static int -nullfs_statfs(mp, sbp) - struct mount *mp; - struct statfs *sbp; +nullfs_statfs(struct mount *mp, struct statfs *sbp) { int error; struct statfs *mstat; @@ -352,9 +341,7 @@ nullfs_statfs(mp, sbp) } static int -nullfs_sync(mp, waitfor) - struct mount *mp; - int waitfor; +nullfs_sync(struct mount *mp, int waitfor) { /* * XXX - Assumes no data cached at null layer. @@ -363,11 +350,7 @@ nullfs_sync(mp, waitfor) } static int -nullfs_vget(mp, ino, flags, vpp) - struct mount *mp; - ino_t ino; - int flags; - struct vnode **vpp; +nullfs_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp) { int error; @@ -381,11 +364,7 @@ nullfs_vget(mp, ino, flags, vpp) } static int -nullfs_fhtovp(mp, fidp, flags, vpp) - struct mount *mp; - struct fid *fidp; - int flags; - struct vnode **vpp; +nullfs_fhtovp(struct mount *mp, struct fid *fidp, int flags, struct vnode **vpp) { int error; @@ -396,13 +375,9 @@ nullfs_fhtovp(mp, fidp, flags, vpp) return (null_nodeget(mp, *vpp, vpp)); } -static int -nullfs_extattrctl(mp, cmd, filename_vp, namespace, attrname) - struct mount *mp; - int cmd; - struct vnode *filename_vp; - int namespace; - const char *attrname; +static int +nullfs_extattrctl(struct mount *mp, int cmd, struct vnode *filename_vp, + int namespace, const char *attrname) { return (VFS_EXTATTRCTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd,