From nobody Tue Dec 03 02:17:09 2024 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 4Y2PRp29hRz5fRkW; Tue, 03 Dec 2024 02:17:10 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y2PRn6vygz4hMG; Tue, 3 Dec 2024 02:17:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733192230; 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=ioShujQWg/QgOMi5OcxszKuuGLlueryworrBiG0Z0vM=; b=PfUtcsFpOxW7PFVLpoqmE91VPwlty7NibMjfPLUWmEbwlbZVf6ST3d33qVWGJVDwJQfeYu e8sVLbgxXiznsC5tP8zeYAIFJJEywoympq4hF28yTRoGWepcifvYE8dzn8SNV3y/Zy5wDg vFt20ttrs4qeLbGyO1S6SkEf7ovAeplRQ6UkbPKBO3+idVwdTAVcoybWD9cWtSFK3I5yZ9 JocpJ0FnZy2ceb2Ic2I+XRS/6dNM3KQgPPM2NOlGMHKheVujMNxE2DpepegsiQJ7PknTr/ TlULaaOAw/plh55/3t40Q6qYg/37+w7KASrO4xSQ7H7hdHk7P0vLYj3BimGHJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733192230; 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=ioShujQWg/QgOMi5OcxszKuuGLlueryworrBiG0Z0vM=; b=HwNvv6Dh3u6x7ItiDLavGkzFcM4GKj77Q64Gixx0vKt9IQ+V4OlzZJcGOkne3XbBCOykaJ VWmxE/GbwWRpp6B3Y59olSCKtZLNHtqLI72eQ5gCjMhUz8kBTUf3Q+ZEVjzh70P95Ncfxx MfotTQz9gYu6hd5GQfCrJTVMDTbmuIHL/oIk1f/PXjmK2a3ulKxdCNaXvqEBi4b5TKLJlT u3rx+1zrQMSHqV6su6XYW9zT2QHzUJbjOF+VPVWWgxigD7DX8+0o84c50KPrsLPSoqGKvf amcQeHgd3DvBr4wSbIT7MpeHGbzXSG1bFx6igfVvJQMNj4vETm+yqFm15vXEcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733192230; a=rsa-sha256; cv=none; b=xO76mheIK0rB+cZlgJ6PHTKVe8wptrToM/OxHtVncdM68QMwIMbjjfpy5dUKsxP00js+lS tUY9UvxoRK56QCTgnTXXvocBGRT76D/QQWwL8J5gfr/E4L3xz005V6U/BK2xwV1zH+fPO5 +KWwcjyZbkq84SS9mA7cUY9p0yXFWQotYyK2zksmzL4azESB5v73NSBH/yrjqUXzvFZYi7 Isqpbj6gyVh4OyHDrSQqU48UY5bGrwveAeOh9LpYS9opy1tOFNFfAXl9isD2WAXhhMWIMb RSBs+lb9SFlUIpLpWB6TNrZHkLVIprnZ2DHqzMMYa7uImq3Q00cMeZ6P3QirjA== 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 4Y2PRn5PjBz1393; Tue, 3 Dec 2024 02:17:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B32H9pa070622; Tue, 3 Dec 2024 02:17:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B32H9uj070619; Tue, 3 Dec 2024 02:17:09 GMT (envelope-from git) Date: Tue, 3 Dec 2024 02:17:09 GMT Message-Id: <202412030217.4B32H9uj070619@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: d841b67b4747 - stable/14 - vnode: Make the vop_vector reference a pointer to const 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d841b67b47479b19606768b348a6f99dacd64a98 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d841b67b47479b19606768b348a6f99dacd64a98 commit d841b67b47479b19606768b348a6f99dacd64a98 Author: Mark Johnston AuthorDate: 2024-11-25 22:38:22 +0000 Commit: Mark Johnston CommitDate: 2024-12-03 01:02:10 +0000 vnode: Make the vop_vector reference a pointer to const No functional change intended. MFC after: 1 week (cherry picked from commit cd048d5d8be736419df878c26e6e170b8569dd12) --- sys/sys/vnode.h | 2 +- sys/tools/vnode_if.awk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 0cd48ea44747..2cf62a51e101 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -134,7 +134,7 @@ struct vnode { seqc_t v_seqc; /* i modification count */ uint32_t v_nchash; /* u namecache hash */ u_int v_hash; - struct vop_vector *v_op; /* u vnode operations vector */ + const struct vop_vector *v_op; /* u vnode operations vector */ void *v_data; /* u private data for fs */ /* diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index 0fff9a831756..b477bbc91c43 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -328,7 +328,7 @@ while ((getline < srcfile) > 0) { # Print out function prototypes. printh("int " uname "_AP(struct " name "_args *);"); - printh("int " uname "_APV(struct vop_vector *vop, struct " name "_args *);"); + printh("int " uname "_APV(const struct vop_vector *vop, struct " name "_args *);"); printh(""); printh("static __inline int " uname "("); for (i = 0; i < numargs; ++i) { @@ -392,7 +392,7 @@ while ((getline < srcfile) > 0) { printc(""); printc("\treturn(" uname "_APV(a->a_" args[0] "->v_op, a));"); printc("}"); - printc("\nint\n" uname "_APV(struct vop_vector *vop, struct " name "_args *a)"); + printc("\nint\n" uname "_APV(const struct vop_vector *vop, struct " name "_args *a)"); printc("{"); printc("\tint rc;"); printc("");