From nobody Tue Oct 08 10:09:20 2024 X-Original-To: dev-commits-src-branches@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 4XNBZT3W3jz5ZFmm; Tue, 08 Oct 2024 10:09:21 +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 4XNBZT1dnbz4MFT; Tue, 8 Oct 2024 10:09:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728382161; 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=Qu75MJ4rJgGQnHUB8wn6ksM6JPtfzVWIkpbnsb/qA+w=; b=tFoWQ4uvy3b3UQv2Fqfd0iRwuHuuSoIH2olnAMSAu/C/3jaaVL5sN5zM47psBIq5GzKkIA Sa85xeT/CvTiMV9oIk+UllwT9hPAabLIc99RA1bGsJXPFTSirfK5JMXD3TCceE/JE8jWAS CyFZ4XIzFXPh4jFQ/R/8maIlx7BwEYVhA8VND0b4bc6GNpeLmHSdkPPcKZ9HtK+YlJmvTe N6FhBmSFUf7avR0vrkzbYVavXfaBKJY8pPU2oIXJk6IsCEi35GSp354mtGhpSEsQm55x9d Tt39TnjmPbwx62BIUlYJzSJjtmtaOeZnLRCRlkO+rj9oHarKqnAek2YTnLSBYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728382161; 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=Qu75MJ4rJgGQnHUB8wn6ksM6JPtfzVWIkpbnsb/qA+w=; b=YIpox1kuwMxaiE42I8dXLdjVfpcSASUOmehqOXewjAoLeds73p1mk3WsFeQ7Jwmi0W1Saz ltLKBCBId7Po0jPoIcT6QDbpLM8o/wWAapTjx19tfQ2RPFg05SBHYgFVQkqfVMinwSGDKW p/y/eW8gkntHgjiqqbh+lprjwm2iP9JRYtwQ0586kcqgNnQPZ9B7nHbKtniiW8Eckxi8AP 3ufxuFJierxtdMPSrFvd49NoY/lewhKZtzKmW8kcyqBMU+SmTTlFPEPhGVh2Oq2PGygL4o +wX9nHjrAUOZZjXXgMOruBiMiLZln9zEhrcmgeeHu+5g3tmkfrVsxu9mEo35RA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728382161; a=rsa-sha256; cv=none; b=yVVMTeiyLX7GtFXFAr7+FzqWbGg63+Hk9kAFM8ttuEPNncZ/ncsf3Iaa+t/g5wcfCS52+j DMedTinzdgZNXrVOgT1cC1UWcbenUCTRHjDRgcE1E9aQA+j+cYorSNEQaCgpB5O15OrInm sdiLYawDWoUcYW0gatmsOELT/4QE1/Xrj5YX8ySMO1OfsYz2Dn0Qvh+E5Dh37TIqA1GUdW Uxi/GbDVy1SMbY4Bk9sFzW1gfUyZ5sUVkqsOeZTC1+BDTsBbw44FxB1tVLqZ21xW+ALOGQ elMtu8wLgwM6lAUIr47O6uNa2o0s29WFRnS2tIYz/WYkhSw0dg3mjLExcTlkUQ== 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 4XNBZT0crDzQhZ; Tue, 8 Oct 2024 10:09:21 +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 498A9KPB059126; Tue, 8 Oct 2024 10:09:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 498A9Kw5059123; Tue, 8 Oct 2024 10:09:20 GMT (envelope-from git) Date: Tue, 8 Oct 2024 10:09:20 GMT Message-Id: <202410081009.498A9Kw5059123@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: d92fc5d447ae - stable/13 - khelp: Sprinkle const qualifiers where appropriate List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/13 X-Git-Reftype: branch X-Git-Commit: d92fc5d447aedd255676579aec0a06494cd6d469 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=d92fc5d447aedd255676579aec0a06494cd6d469 commit d92fc5d447aedd255676579aec0a06494cd6d469 Author: Zhenlei Huang AuthorDate: 2024-10-01 15:28:37 +0000 Commit: Zhenlei Huang CommitDate: 2024-10-08 10:07:18 +0000 khelp: Sprinkle const qualifiers where appropriate No functional change intended. MFC after: 1 week (cherry picked from commit 89937323bddd41fd8b92430c3ece48d3e32c2c23) (cherry picked from commit 54c79d3ae419c81a7e6bbc8c60f0959462bf0b4d) --- 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 3d75da141b48..3e815e140d93 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_ */