From nobody Mon May 20 04:04:02 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 4VjP82745Mz5Lh84; Mon, 20 May 2024 04:04:02 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VjP826KRpz4Bnt; Mon, 20 May 2024 04:04:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716177842; 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=uIle0se6l54NXswkCt0biVsZva0j6lvggLD71a8MMBE=; b=KTTNTejCY4iA8EtYzmQE1oAucGPbnSU0TxJftInRJtnYq0cwMmUMeKFduD/MsySKKO09K2 7TaDT6XpJ4j+3SqLe+PSvhU0eGx03/1RxI9OdoBeae/0flF1tIv1K71dYfbhWrN1sVJ9C8 gWHYSBvxCV3Jx0h/qmwlBKdk4DDxltypRPtxJJIlwLdtlmBMJHadO0yKBzs9O3mhjQXSoC HchUEQgrjL6Vh/gF0Rmz9aJ9SyiGJBg7d0aXHvq5Ep0/ei0dPA+A9uQfM0rE/cT6WPA9z5 t8lGqQYBO4ltRBNMi1ENiQaVD2uNTzdT4XSuJtWHntNAx6sHoB1AqZFDzSaeLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716177842; a=rsa-sha256; cv=none; b=JcLT+9POubykTUwLgqF5sP5qjrqiUskSq/6idOhvOEsXUyo1xRsbgSss/p6Rrr+ZMPToZ2 14BNslaz9aMUZUAvvqvPgmQLcu1Zt3lzKMtELSZkIH7T/Q56NgsfiOyp68wUdhf3KUIvW6 mepT6xHMXF47smM3MOvTLsg64+uapddOOvkalEWH4Fopd9Au+6YfQP3exlcH5xwzHRksxF nggl2vVNezezSRGBcT8vOJXsb0NK0fmheycqcngrMiFaxzXu8vGKUUuxQpYOOviE+SC2QP biVXn39CoR7kFuNuuOFXWcZWFIiKrnHtAtJ2cRbcySos80mCewvloPTITse3cA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716177842; 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=uIle0se6l54NXswkCt0biVsZva0j6lvggLD71a8MMBE=; b=Dnp3jvEdkqJ+DFeLE3QIgnkKcfIlQpS+lAK2ns4YOnm7CaPYgJee9P13esHRmHWqM/gnns 6li0l/whXTqiE1DDJ7drewGzCSF4WXKXJSzxgpznUnPuwl1e//JQaTFKdPDQQU3rl+PmeQ zPT1EKdRcCKAG7jfDaDdqljLZzBNZSMtk2pxKFoTtFbnACap8LCHue6GPv+rvjZcxGJ07v 0fWG5RAIlUUbT+R5Eisk7onkutlADCvT/jJogNA+rn+wywpa4M8bmm51Fs9Fsg7ajKWdZq yT752go3IkNOQBcnbxr++oD4eOQRH0WdTslzJQMNh1idGHcwiqJ4Ut1koTrLxA== 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 4VjP825wbCzNDb; Mon, 20 May 2024 04:04:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44K442At080315; Mon, 20 May 2024 04:04:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44K442BH080312; Mon, 20 May 2024 04:04:02 GMT (envelope-from git) Date: Mon, 20 May 2024 04:04:02 GMT Message-Id: <202405200404.44K442BH080312@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: 68c890b4433d - main - linux(4): Add const qualifier to the value parameter of function handle_string() 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: 68c890b4433d3655c7df91cc43f89f4d6a8b35e4 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=68c890b4433d3655c7df91cc43f89f4d6a8b35e4 commit 68c890b4433d3655c7df91cc43f89f4d6a8b35e4 Author: Zhenlei Huang AuthorDate: 2024-05-20 04:02:33 +0000 Commit: Zhenlei Huang CommitDate: 2024-05-20 04:02:33 +0000 linux(4): Add const qualifier to the value parameter of function handle_string() The content that `value` point to is not going to be altered by function handle_string(). MFC after: 1 week --- sys/compat/linux/linux_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_sysctl.c b/sys/compat/linux/linux_sysctl.c index 65c64a7ba563..97341c051af7 100644 --- a/sys/compat/linux/linux_sysctl.c +++ b/sys/compat/linux/linux_sysctl.c @@ -74,7 +74,7 @@ LIN_SDT_PROBE_DEFINE1(sysctl, linux_sysctl, unsupported_sysctl, "char *"); #ifdef LINUX_LEGACY_SYSCALLS static int -handle_string(struct l___sysctl_args *la, char *value) +handle_string(struct l___sysctl_args *la, const char *value) { int error;