From nobody Tue Oct 01 15:30:35 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 4XJ22N1rMWz5Y0Yl; Tue, 01 Oct 2024 15:30:36 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJ22N1D2cz4CpG; Tue, 1 Oct 2024 15:30:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727796636; 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=e7i6WNlGFjSQxOAxfaZHHe9ghity9tAn31xpY8Wph1E=; b=eWY/mnMHL8K9Da7p+++JtCXEkf6YDPbw4dxGPwEtgH+A5ddsXdteacGhUG3uHXO9G2UgWR K1pn2omOZ9dMLDNQpGUXtA4WcWhwdZcgOWsObU5xL50ppwOwxhgDTnoofv4SeqtWt8Aubk Gs0rRrNrnUdlo2phTIAXuTh7HrIYD9v8q7LpQogE/2EiQ5MCBz2dvvaX38S7Ro5gTHZdx+ 4j66X/8OXhuX5r4e9TPohl4hYrXqpNfWiMH9Gq3+9OKQL7DHS6N6Py1o3PLzKugWWslnQ2 uLocPUn7cM8QxvgDd2ztdRFGL0cXZGFzsNVKVnNgf2j4/mQWWQG8fEv534p0lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727796636; 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=e7i6WNlGFjSQxOAxfaZHHe9ghity9tAn31xpY8Wph1E=; b=r4X6KupIOyz5ItJ/YOms7UkpOF6Tw+fPUSMKvowKxcQKz4qcoiaBc2zo/3IUQ4IUeGqyOU iSmfgF0gNrgsQQnhIHoIcgOg1igskPgxtEkmvrrdC42Ob/jG9F3JjObQD6lyIUswRHGTXg sxQjn1Z5YsSqQTRJQdPg82rrGTbKgIGTXZ1vP+bwG1EZc76gQXSfCww8hiL1htPrZJiD0x DRDjnyvCd4/6gYObkBWrMffrU5/IzBdjmDoqbHbfTFm4OAgJ6EBN5P95csFtzxLG1N+Vux ZYE9BrKT4XmEQNxsPFTaKjm5NOxHg9v/1GxZ9svLuaHxbnZkLnFRu8xJKGjqpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727796636; a=rsa-sha256; cv=none; b=J5EJdKVdDLdmt2J1/oXK9FYDcfmWVLvCq04FF06NBK2kw1FGmNtEY/Z73S0M5Nyjx4gExp szNIs+uXT4RqhS5VoRgyE9WmkzqyyNZI2m1TXcN+hR3V9pZVwdE1WMUsXdnkyTxIvsGdIU NRP/Hu14MJHuNe88tnPjIx1nB+v1wFWsRNSZXmOt2hTMBtrbJm8jtPodjXC25Ejl7Ia8yy e7lShj0oByj3FKTjKn7ILyqWQhWwCXdoGH1cQ/zQ7T570qNaVk1CdwJ70kqRu8AHXNFbU4 o4lz07MsbyN4YW66hlkhYnuXGIaVDxZ3QN9WkSqK075cW54M4NFuZLX19EbRXg== 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 4XJ22N0LpgzjY4; Tue, 1 Oct 2024 15:30:36 +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 491FUZub067259; Tue, 1 Oct 2024 15:30:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 491FUZrL067256; Tue, 1 Oct 2024 15:30:35 GMT (envelope-from git) Date: Tue, 1 Oct 2024 15:30:35 GMT Message-Id: <202410011530.491FUZrL067256@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 89937323bddd - main - khelp: Sprinkle const qualifiers where appropriate 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 89937323bddd41fd8b92430c3ece48d3e32c2c23 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=89937323bddd41fd8b92430c3ece48d3e32c2c23 commit 89937323bddd41fd8b92430c3ece48d3e32c2c23 Author: Zhenlei Huang AuthorDate: 2024-10-01 15:28:37 +0000 Commit: Zhenlei Huang CommitDate: 2024-10-01 15:28:37 +0000 khelp: Sprinkle const qualifiers where appropriate No functional change intended. MFC after: 1 week --- share/man/man9/khelp.9 | 6 +++--- sys/kern/kern_khelp.c | 4 ++-- sys/sys/khelp.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/share/man/man9/khelp.9 b/share/man/man9/khelp.9 index 39515eef237c..d619f385d513 100644 --- a/share/man/man9/khelp.9 +++ b/share/man/man9/khelp.9 @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd February 15, 2011 +.Dd October 1, 2024 .Dt KHELP 9 .Os .Sh NAME @@ -48,8 +48,8 @@ .Fn "int khelp_destroy_osd" "struct osd *hosd" .Fn "int32_t khelp_get_id" "char *hname" .Fn "void * khelp_get_osd" "struct osd *hosd" "int32_t id" -.Fn "int khelp_add_hhook" "struct hookinfo *hki" "uint32_t flags" -.Fn "int khelp_remove_hhook" "struct hookinfo *hki" +.Fn "int khelp_add_hhook" "const struct hookinfo *hki" "uint32_t flags" +.Fn "int khelp_remove_hhook" "const struct hookinfo *hki" .Fn KHELP_DECLARE_MOD "hname" "hdata" "hhooks" "version" .Fn KHELP_DECLARE_MOD_UMA "hname" "hdata" "hhooks" "version" "ctor" "dtor" .Sh DESCRIPTION diff --git a/sys/kern/kern_khelp.c b/sys/kern/kern_khelp.c index 1ab56780f394..4a7e93ff69fa 100644 --- a/sys/kern/kern_khelp.c +++ b/sys/kern/kern_khelp.c @@ -253,7 +253,7 @@ khelp_get_id(char *hname) } int -khelp_add_hhook(struct hookinfo *hki, uint32_t flags) +khelp_add_hhook(const struct hookinfo *hki, uint32_t flags) { int error; @@ -267,7 +267,7 @@ khelp_add_hhook(struct hookinfo *hki, uint32_t flags) } int -khelp_remove_hhook(struct hookinfo *hki) +khelp_remove_hhook(const struct hookinfo *hki) { int error; diff --git a/sys/sys/khelp.h b/sys/sys/khelp.h index 2ef45806c35a..7aadb6a58faa 100644 --- a/sys/sys/khelp.h +++ b/sys/sys/khelp.h @@ -70,8 +70,8 @@ void * khelp_get_osd(struct osd *hosd, int32_t id); int32_t khelp_get_id(char *hname); -int khelp_add_hhook(struct hookinfo *hki, uint32_t flags); +int khelp_add_hhook(const struct hookinfo *hki, uint32_t flags); -int khelp_remove_hhook(struct hookinfo *hki); +int khelp_remove_hhook(const struct hookinfo *hki); #endif /* _SYS_KHELP_H_ */