From nobody Tue Nov 26 21:32:38 2024 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 4XybQH0lKyz5f3P3; Tue, 26 Nov 2024 21:32:39 +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 4XybQG6SRQz4CwF; Tue, 26 Nov 2024 21:32:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732656758; 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=e35vJVcJfvTH3qx55s6x/a/s4vqYtmTShx5R1ZLtr+8=; b=dIlr/58Z7EmOysfsPHuZ6HPy1RedCx0us1l1xPMBW0XESSa7BCplWCP4DavzHIoGr79cVG f1EabuKWrjm+/zfmoexuariKchq9YUsfoBAMHcHfXrCpatbPFtBZAhz9WrWNkiX0s2Tq5w Lef99+KY6vRZmHs0ha5OLTHb81mjyEI17JblIRMnaaZSH/HXhezGwEhkni17AvlWOJoEdF 8G+ewdeGBfC2R0fadWKVZtGoWmNEz7idLsCucXJI9uG0dzTFi3LFYHTG99aJAT7SF8Pt9y DthKEb5g7zRanxyt8+CkPMTt6/yDAiVJExyyw3cqEBny4If2h6X9cvXFPLrKbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732656758; 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=e35vJVcJfvTH3qx55s6x/a/s4vqYtmTShx5R1ZLtr+8=; b=PGTH+4MRm57Kw/lFaLBm+1KMW7RJaZcYL/6cDI2PIB2kaw9SEPaEgoprcHtpoA2sl3Q0ZA s3505HwN4F86nh+eFqYmyshMCRfwYXG6PNM4nlRLv55LAlH7SHXzeOLI+PjPvdNnrbeoS0 YquRxISAj+pFrXI8fDmvIzutCftPqcQ1bcecjMtig+fGeEF42QC7do/gIQG4HCtDk2X8qt SQ+1aP8SakCQAXHKuJLfOyTjx0TV6M1xM5RyEEnoy//FXDdd2Ujp0I/fEbvbiBKvRiBjfy NmAK5ofMR8QcFgu/HLRkxB8GjvP9dlye9G6iacmWTeCucAJT6iG9X4M16uztOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732656758; a=rsa-sha256; cv=none; b=QyE8MdgSpekYn3OmuSvZgko9p62CS8ptC7qoSR/pAlbyNndQ3rvje3nodfO4Uq/o1pkj7w Gdt1NCXH6fJ7DuNT9OmHexGizHrIleq/vBEWJS5zAmfDW2JNJBr0dQLEBUpTWfTnHrvboD EyJ87gxa/NpxNUfBFKJ5S015bO9U0bWeIjvB7ihj2QHFvjmgsM+XZWY+lUfXlbV7k4haIN UN23WXtcHdGg9lFqGfy3NapqikWjnxgGaOO/8lW/Lg/yVpPtiYg7+I34W5KfTAGs5gvEtl rHVlcDtAW5AW3LkpzNs3M0ru8CyuXI+98LvuESSLoOnSsGK4opZ+r5EE/Hx9IQ== 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 4XybQG64Gtzh17; Tue, 26 Nov 2024 21:32:38 +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 4AQLWc18046449; Tue, 26 Nov 2024 21:32:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AQLWcC3046446; Tue, 26 Nov 2024 21:32:38 GMT (envelope-from git) Date: Tue, 26 Nov 2024 21:32:38 GMT Message-Id: <202411262132.4AQLWcC3046446@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: cd048d5d8be7 - main - vnode: Make the vop_vector reference a pointer to const 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: cd048d5d8be736419df878c26e6e170b8569dd12 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=cd048d5d8be736419df878c26e6e170b8569dd12 commit cd048d5d8be736419df878c26e6e170b8569dd12 Author: Mark Johnston AuthorDate: 2024-11-25 22:38:22 +0000 Commit: Mark Johnston CommitDate: 2024-11-26 20:57:54 +0000 vnode: Make the vop_vector reference a pointer to const No functional change intended. MFC after: 1 week --- 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 c929b4265552..42973adac287 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -132,7 +132,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 b8f616f08fd9..2326d0e28956 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -325,7 +325,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) { @@ -389,7 +389,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("");