Message ID | 20240423-sysctl-const-handler-v3-3-e0beccb836e2@weissschuh.net (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30015C4345F for <linux-mm@archiver.kernel.org>; Tue, 23 Apr 2024 07:56:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0C9BA6B00C5; Tue, 23 Apr 2024 03:56:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 050926B00C9; Tue, 23 Apr 2024 03:56:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE5086B00C8; Tue, 23 Apr 2024 03:56:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C03506B00C5 for <linux-mm@kvack.org>; Tue, 23 Apr 2024 03:56:07 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 66F65801DA for <linux-mm@kvack.org>; Tue, 23 Apr 2024 07:56:07 +0000 (UTC) X-FDA: 82040038374.08.B8948CD Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by imf10.hostedemail.com (Postfix) with ESMTP id A5259C0009 for <linux-mm@kvack.org>; Tue, 23 Apr 2024 07:56:05 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=weissschuh.net header.s=mail header.b=dzsiMjXG; spf=pass (imf10.hostedemail.com: domain of linux@weissschuh.net designates 159.69.126.157 as permitted sender) smtp.mailfrom=linux@weissschuh.net; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713858965; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/qpxneV6QXXa3ldi9X8/PDcAcM2Z9Q+xYllYIWVWWP0=; b=DINJSwNIk46Jo4IKE3uPvhTaCNkZg4lq3nJewj7OohCE5alsgOuZJ44URQSnPU32p4FsKi MRiIKi/aFtGHCe/xHDJTEdG4/SXxYVnPFDbZIM2U7R5QDNdiQ1ks34GwSF1lr7pGxfVi9x SSI8+CwbRBKAy5JYy3tUZ49na3Guato= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713858965; a=rsa-sha256; cv=none; b=IjqoYL95xh1bS5wkaVUfXw3VKsOdGR7LTTCOu1wHyuuWe7BbIlJQfRcF3JM0a2wjUOoBso k+CGsHcDJdaF37gbSv+KtJt9x/zZ08HeAU6POX0njEgj8N7PEcQxB1Brf7OtrxxWWdlwQV JSNTPKAT9ra1hMGcy/reuQa1D0zVXDk= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=weissschuh.net header.s=mail header.b=dzsiMjXG; spf=pass (imf10.hostedemail.com: domain of linux@weissschuh.net designates 159.69.126.157 as permitted sender) smtp.mailfrom=linux@weissschuh.net; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1713858962; bh=rorPfneHsH4rUwSDhKhni5qatzGJBaNeOV3jbM8lXHw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=dzsiMjXGUMnBeinztfZVIlnYV1FybTv3PVNga/7GNRmjq0tvokzKVmAqMxqZ4TZfu 3Mm9Xa73ByvDCbl+zSGzluYBcTMsPar3kyGR78xthILGtEnmvJBhKWCBZI5pDCg6C/ UHsAfQ2uBimCPXwCv8/f91yRU/qBVoZCnvSEXqbk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> Date: Tue, 23 Apr 2024 09:54:38 +0200 Subject: [PATCH v3 03/11] hugetlb: constify ctl_table arguments of utility functions MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240423-sysctl-const-handler-v3-3-e0beccb836e2@weissschuh.net> References: <20240423-sysctl-const-handler-v3-0-e0beccb836e2@weissschuh.net> In-Reply-To: <20240423-sysctl-const-handler-v3-0-e0beccb836e2@weissschuh.net> To: Luis Chamberlain <mcgrof@kernel.org>, Joel Granados <j.granados@samsung.com>, Kees Cook <keescook@chromium.org> Cc: Eric Dumazet <edumazet@google.com>, Dave Chinner <david@fromorbit.com>, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, bpf@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-xfs@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, kexec@lists.infradead.org, linux-hardening@vger.kernel.org, bridge@lists.linux.dev, lvs-devel@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-sctp@vger.kernel.org, linux-nfs@vger.kernel.org, apparmor@lists.ubuntu.com, =?utf-8?q?Thomas_Wei?= =?utf-8?q?=C3=9Fschuh?= <linux@weissschuh.net> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713858961; l=1138; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=rorPfneHsH4rUwSDhKhni5qatzGJBaNeOV3jbM8lXHw=; b=uf+pHLZXXpo1yHHJ2Z13M1e5OT7jsu5lvkviloIZv10UAQiz7g1qEzlA2Tlm9z/kgvmk0wE7S t+OfiZGT2B0DcKcd55qz3Jc+6I9uA8iEvRoTSo4pFJmvocUaelGw1Ie X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: A5259C0009 X-Stat-Signature: ha7eiynr3jsfjo7juuyj6eew467sqags X-Rspam-User: X-HE-Tag: 1713858965-134820 X-HE-Meta: U2FsdGVkX19l7S6MwQH9IwFUF+rBOPgj6NzhZKL68p99jYSGFIVw/A5+wt2S0eZj++wsQpx8XvBBU5NuWbxX1gswCqmPrWTVzG09CSIvBxBuuTNe53d64PiQzC1LshtHIRkDh0fPkQHAQWcFKeprkzR4Ds2tGW0O00hggtbuu/iBtsg6g0vyKHzf8xYQgL+vCDoQ9zGPUcjTk+nJSe/1sc/mbDPXW7+PNV8tTZe+Vktr7sbHY8Ynvu6CwEb+cxvLv53a76jqgnxjQGR78YWHZ3rOJXQN/oKzJPinRdcrMJyYY6y5Q2IuWR+Q+Yo+uKQM64F3wKjRw2r7IwvIzDUksA9ycf3SmA2/KX950YHOvBryYY7TLQnnKzc5QRicRfB8ZPzIECN+szQToy1oezeX9lTTrRg1mvZK8KyDD8VFeewRmQNXZ5Mt2r20Pr2UJ1+HJjUl3uZRfHDGhsnGJrZZCKIvG0fO/KYl0/86BQSIj9oz0OZisKu2nRbikQkN7HW50q5zU0/Pm678g+6MmF0FN3+IkF1GbRfjxS831rwuROcYeZU4sQJaHiJ1AmV2CBLjZjjN3T+f4A/40tNBwbRCChl666+9Z0O+lPw+0lPb/lHvZv8F1sboHNJhBatNu6xNbTEvIf/iR8BNlY40PHq6j0ba5RI9JrWXUkL0tSvZ6Udm+DnrD9JJVN6zTVmV/1y25Xva8plNBUCWHQuDKiwOqWbG+qxdz0OI+zgNy89M3+LGTSbJ+3H6KC8S0PV6DZjtfyIYeBCcKZC4luMepzaBJvWdvG/BANaHQpVVmN8qF77T5wSjLa8wn9i/YVbn5jmMRRZG0bmDp5Pjt6SgZhjynZAUZkxnUOdC8ryXBtklFT2G5JX3/iYPI7DX2JDJlWLiRnDBYAl44ZpZ8jwGn8dq+2ZenmQjt4aWShj4fuCaVU1z4ittdzkteE5NS4V9IFZ1yzH/ZZbSPEd/RZvoTbz +NQSHHrk oJ144yStpxYx3PymCckFCPzIsXLQOrQWIvUYf+VM922HOx+meePcl3qtXrapmY6HR+noJnUSsZ/YO6FLyb+c+RrPUbs7cHXfPPMeZkQAlMt1WnAkDb6AiDILMgJRrLjfrz0NYZpsj+hxubos2FROj0RZMwU9hOzVhVmZTQjxW1sevyuUojXLBbzwMFvUrp6rsNoeJz1jeIjERV5WmtMZYLnd5og== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
sysctl: treewide: constify ctl_table argument of sysctl handlers
|
expand
|
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 3b7d5ddc32ad..8d12ce63a439 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -4911,7 +4911,7 @@ static unsigned int allowed_mems_nr(struct hstate *h) } #ifdef CONFIG_SYSCTL -static int proc_hugetlb_doulongvec_minmax(struct ctl_table *table, int write, +static int proc_hugetlb_doulongvec_minmax(const struct ctl_table *table, int write, void *buffer, size_t *length, loff_t *ppos, unsigned long *out) { @@ -4928,7 +4928,7 @@ static int proc_hugetlb_doulongvec_minmax(struct ctl_table *table, int write, } static int hugetlb_sysctl_handler_common(bool obey_mempolicy, - struct ctl_table *table, int write, + const struct ctl_table *table, int write, void *buffer, size_t *length, loff_t *ppos) { struct hstate *h = &default_hstate;
In a future commit the proc_handlers themselves will change to "const struct ctl_table". As a preparation for that adapt the internal helpers. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- mm/hugetlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)