From nobody Tue May 28 04:42: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 4VpKcM651Tz5LZGQ; Tue, 28 May 2024 04:42:11 +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 4VpKcM5M5qz4chJ; Tue, 28 May 2024 04:42:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716871331; 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=YFNjRyM6jNR5/Z4Sb/nGMMvm1mESTtEwoHJo1KqzHMw=; b=lUP4EkiEto/SGxz/48uCoHBHdjIN/sw/kLSFecU9uHcNfc+BZJ+t2hzUfnDpa2RXNCZi/Z Ii2MCZFEwTNTZ84QKM8F51VUjuxsZywb9Pw1fUquQ3MR8ikDDO+03jCDVvziV5CToGMq67 zJicVRj+yn9JUPUEfHtV4BJ+ANUmvzyqr+EYZ/XA7CQnZeKTOQN9vCtrJRYYYJoTdgEQLV WOZsWUSoo72uft5Islj4NgPzBE7R+nLBWabn96nol6y56av0TbIR/f7RNzfgjCjMa6Ajb1 Zf5etW2K77GMw6z2mB2+uyh8Xns/ZLHs5JNHJkNHMfZN3tpMKYvV6boQu46p6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716871331; a=rsa-sha256; cv=none; b=TlOEsLnP+AAL0CQw5Kyczcr1MKq96Sg+ypLTQvKAVR2peqToxwcqCZ8+g7OG1DPIObbzCE uyg6/WmYsOQTGC1K6lF/97L5yGXL5xCjjdcobrZtzHuvdPllICxc2Zt6IeuoAAyElv71GU 3jMMVB5LJ8JKRc5K3QWoNaU/u4ixHfDH0ia//fChTvr6T6/6sN4CKcNwP3NsgJkFrQR8xn XEIasmVJDjJE5Xgem00ZbefLji0tIPZWzUNGr4KtS3onAFeDo2HC5dDK94Do3niBoSh2IX bn3V9tv6pT0G/J8KV0dcfA+v75qwN4thHtY1oNT9oH5FHthiiaEf+dCGbES5kA== 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=1716871331; 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=YFNjRyM6jNR5/Z4Sb/nGMMvm1mESTtEwoHJo1KqzHMw=; b=rijFeta3DreOqIFyx85gk6HjLMJc46cgoNT5X5T5Pxu8cnljses3ePEL8DjugnjplrBs0B xTtK9pMjkOGBtV0a/WHAZ+7HfDHF1m3QyXKuQlHUV9JhZu2SJOjaH67it689f3Y96BgRFJ /u+FMOxP80vfoQjr+xPLgmhUfBvJLwV6U6SpCIoBfSzf8wyECSzoraKs8/yky2VnYKIDl9 K5gOAL3PFXZKFOx11l5NvvLXaPnzvTuI+c5A2Dv4qTA0eBbNiAH7nBi/JyMlER+1cPQAgx aCp4BimkWRkt712Zgdobweq7bbdoA98dNC4hw5dYK7N/FEOBHGp40/26XHjK+g== 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 4VpKcM4yccz1Crt; Tue, 28 May 2024 04:42:11 +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 44S4gBZc049939; Tue, 28 May 2024 04:42:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44S4gBMo049936; Tue, 28 May 2024 04:42:11 GMT (envelope-from git) Date: Tue, 28 May 2024 04:42:11 GMT Message-Id: <202405280442.44S4gBMo049936@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: a29cc9eca779 - stable/13 - linux(4): Add const qualifier to the value parameter of function handle_string() 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/13 X-Git-Reftype: branch X-Git-Commit: a29cc9eca779394c2f285de5a6ddf648682bffa2 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=a29cc9eca779394c2f285de5a6ddf648682bffa2 commit a29cc9eca779394c2f285de5a6ddf648682bffa2 Author: Zhenlei Huang AuthorDate: 2024-05-28 04:21:20 +0000 Commit: Zhenlei Huang CommitDate: 2024-05-28 04:41:45 +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 (cherry picked from commit 68c890b4433d3655c7df91cc43f89f4d6a8b35e4) (cherry picked from commit 1b3f88bc809526cc7cd22c88b4fdaadf1a2e5e75) --- 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 6753941505b8..891ef6a7e6c5 100644 --- a/sys/compat/linux/linux_sysctl.c +++ b/sys/compat/linux/linux_sysctl.c @@ -75,7 +75,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;