From nobody Tue May 28 04:22:03 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 4VpK981qqYz5LX4h; Tue, 28 May 2024 04:22:04 +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 4VpK976fXFz4Yg6; Tue, 28 May 2024 04:22:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716870123; 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=zDoMOk7/J/5Y7WYf+YPB5lFvyL1gDf8b4h4WFAze5pA=; b=pgpHEQeqk4C7P+X3XkZ2+brdQWLnARud33K5GkOKx4/1gD5SQ6IYazlZnAQcyeYSq2lCc4 PqeqjWEoxxcHE4mqqrovQgf6wc5ANQmHxld/asoptBI1DHidYhSSR9j/n6w6wkjKX8qWcM yJBI1ajziorWwZK43GjtkCy2TVApglE9p05Dpvo1xN/db7NWGogSheYiMilIOJXXINMo/n pCwsgfyWNKt75KaeEhl+8kStPaYNhJ5wJ+Ag9EssZlyW1TZCI3XS9ANo6mZCDFExr5aHqe fcZyi3cCkRLWA2whEnYSEVHBUl3+OIgCNcku2XioQeUcmPwjcJd0fnIC9Dsg7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716870123; a=rsa-sha256; cv=none; b=biDkP62IYg55iAqq+4EJ8jfxu5ib58hpZuBBpQS/aUY+7eDCAxYswRf2ZtniOIDDUNMhgR wGwMKaXOqvf+0AtZs6vXgJ5PAsWt/nd1oYdv0HE6ZFklo3dp0m/ZYkIo02xMSPG9/jdIrD YnUl73O/CqHY4R3I/aGETh0B20likE+jkw7JDmd03ajrUelVHblSQL62Tj+oi4W9E9/u/U b1Hw0mLZKvaBGOZv9C/JUuBTC8iqlVlE8hG68pO5Oht8x09hoJoogjC6C/Uo4So91QoZ// ISMHbT064L8UQxgghke9Fsn7mCrN0sKxQPEOmUaUKZ9OLaM9bX77JRS05pNhtg== 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=1716870123; 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=zDoMOk7/J/5Y7WYf+YPB5lFvyL1gDf8b4h4WFAze5pA=; b=YiSxOqvqBplgN9s4BmMcz2/9mEy4sJONUh2Hh/SVbRSbrDNey0fRqkuM6uyR9wsKMAFDJH lBeehHWoXyQ0uTP7vkBewLfljS/xiBKs6aQ5Fh7qS6iwTCjYstE6n8jkEkRt6LQoESGgF3 +js9X7lPXJsT+yVmZTz7G5UOSpJbolKEg0vAP7pxWVb8NcvWouTmyqCNovNh4rbfb6oje9 nVCUFQKiNUysPoOTmnjzsRi421PX7RaJ+A69d6PhW7+ketBdw6x0zLEjPajpug+sojYD9h D1/k2xJNNtL/dehgf+TodqPD2772u1kMdRhQz+UZGJVNwnLAIVJpq2mCDXrShw== 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 4VpK976H0Pz1CYl; Tue, 28 May 2024 04:22:03 +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 44S4M3ae015255; Tue, 28 May 2024 04:22:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44S4M3kG015252; Tue, 28 May 2024 04:22:03 GMT (envelope-from git) Date: Tue, 28 May 2024 04:22:03 GMT Message-Id: <202405280422.44S4M3kG015252@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: 1b3f88bc8095 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 1b3f88bc809526cc7cd22c88b4fdaadf1a2e5e75 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=1b3f88bc809526cc7cd22c88b4fdaadf1a2e5e75 commit 1b3f88bc809526cc7cd22c88b4fdaadf1a2e5e75 Author: Zhenlei Huang AuthorDate: 2024-05-28 04:21:20 +0000 Commit: Zhenlei Huang CommitDate: 2024-05-28 04:21:20 +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) --- 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;