From nobody Tue Oct 08 04:46:11 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 4XN3Pc0hTLz5Ywkw; Tue, 08 Oct 2024 04:46:12 +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 4XN3Pb5mz0z4g5t; Tue, 8 Oct 2024 04:46:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728362771; 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=qvUXijfRMYZT1a7jfcJTAtJc7nztjUl5pCBgXZV00yY=; b=Lx9gyn63eHzedYvbnoMmtMnLlLvdI3SlKLKnH+77D/7YmFbrouuAxIu2LBCFLY0h9G0j0C SR5Y2zi3Om0bHIFm6ALuh+ZwmREQ5NPpokhCzY5CupYq+77oY6RdBwZvEAaB5UI6539DZ/ VE4Rp7mSQKBAy+4uvvXk9MbrBBi5nPNBOtNmXSPTDmU7hVro5mv+mVSpetEajUTrNO78DO +emaD3tCusTmMDSN8+Mwr3+JMyBpnTSCLJhNgx3rR9RWRp6lnsKjDswywTuVZ5mRg3IupC KHeL1YkSRwJNse66T/EMGjbIboBg1ANYdvak9vxaCoepyyqfT1UfSvQED7GvFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728362771; 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=qvUXijfRMYZT1a7jfcJTAtJc7nztjUl5pCBgXZV00yY=; b=NaiBhrfmM3jlREKGs8N51tSySrkDH36C7z4BtH518Qv43EYWM4gngTUM/dtSYMg5wXEmz8 wc5Em7RquMpcHEzR9T7jAl7HI2n12nmJw30iB7JL6Nwq1bIU/XZGyX18zq49LknUIP1R/0 uMd94sQIS24pV+jjcVzPFZAobzoHlUkzhIkJNTzt4iaAhmlIgMPCCDWN87NvujlbQGn6K/ N0tZbwJjWN/4ss2pFw/u673Ab4ebDZ0S3qwxktPF3FosgC+rqa5+8rW0yc9fEUxWZ+/4aW E6vRNucTmUaJcZ36qdlbveFjLUdr9SJq7PUi4H95kt9ffx9R/GtJtu/X9iE5eQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728362771; a=rsa-sha256; cv=none; b=ZPpBVh4iR61G1wU5Cghd/n2oK93lFHq7UHv6ecIFApjxe5MQxfyDjDP2lm8jOgmjxi38k6 unXBUPWFxoUW/FMwOokDBt3pl3jM7ayK/cXEw3H/NmppXJP2hda0nkqpKK/DN5gZeMD6YP J4SpVBEgzihDlnPb7Oxgxc6JcOnREOXFg9lOyQTj05RVaf7dl/e2bTlLBTNGZsX8e/9b/c NfvAdBbsmV6vFEasME2avoYKVVYPnxRcomp1Aun8HOoYMXdANY+m7qusKkeuq4KlkQzAEv cxGZTRuGvvOHGbVMEJdYZnV2WztdWyt1CbmxDSntigxAXrgOvAT/ijxhG+uK9w== 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 4XN3Pb5NQLzGWQ; Tue, 8 Oct 2024 04:46:11 +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 4984kB6W012617; Tue, 8 Oct 2024 04:46:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4984kBLo012614; Tue, 8 Oct 2024 04:46:11 GMT (envelope-from git) Date: Tue, 8 Oct 2024 04:46:11 GMT Message-Id: <202410080446.4984kBLo012614@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 54c79d3ae419 - stable/14 - khelp: Sprinkle const qualifiers where appropriate 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 54c79d3ae419c81a7e6bbc8c60f0959462bf0b4d Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=54c79d3ae419c81a7e6bbc8c60f0959462bf0b4d commit 54c79d3ae419c81a7e6bbc8c60f0959462bf0b4d Author: Zhenlei Huang AuthorDate: 2024-10-01 15:28:37 +0000 Commit: Zhenlei Huang CommitDate: 2024-10-08 04:44:54 +0000 khelp: Sprinkle const qualifiers where appropriate No functional change intended. MFC after: 1 week (cherry picked from commit 89937323bddd41fd8b92430c3ece48d3e32c2c23) --- 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 eadb2b5a8db9..533d75a8dcd6 100644 --- a/sys/kern/kern_khelp.c +++ b/sys/kern/kern_khelp.c @@ -254,7 +254,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; @@ -268,7 +268,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_ */