Message ID | 20240423-sysctl-const-handler-v3-4-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 BF471C04FF8 for <linux-mm@archiver.kernel.org>; Tue, 23 Apr 2024 07:56:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A7026B00C6; Tue, 23 Apr 2024 03:56:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 72F266B00C8; Tue, 23 Apr 2024 03:56:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 46FBA6B00CB; Tue, 23 Apr 2024 03:56:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 021906B00C6 for <linux-mm@kvack.org>; Tue, 23 Apr 2024 03:56:07 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B440BC0697 for <linux-mm@kvack.org>; Tue, 23 Apr 2024 07:56:07 +0000 (UTC) X-FDA: 82040038374.20.E50666C Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by imf07.hostedemail.com (Postfix) with ESMTP id 006A84001E for <linux-mm@kvack.org>; Tue, 23 Apr 2024 07:56:05 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=weissschuh.net header.s=mail header.b=HfImcajL; spf=pass (imf07.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=1713858966; 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=uX9q7voY2/t78vmYjI1zYaX1XEM3o5/p4a5uy/8deh8=; b=R5C26d7btp/rb4exXTrrn/WzZJGlDvLPVw5fO6BQc4zaumgz4aOy+t4b/b6shL+V00iyGt KF13lHk07TaGNlIF2hFY5vhYT8IbNrxBUXZzF4HP75sef5J5gjLRvUi7YFLsMnvIcci+wf ZH02a9GNUH0HPJ+LAv4bcUTQTdYXCEQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713858966; a=rsa-sha256; cv=none; b=ElrIovgrIavRubk4ad7NFaxeZ+TW2b3Fe1S5yALnEkmrbdzJwZfxxh34F/TL8B8UnmuSD1 tktfJ7j1MzF9ROjVgu1MJD1VRRjISBw8jkArjBPn9XIAPIpSsFNuA+ZgiEvDfDXtr++MlM PuqCWLzTWpkWXjDi1CSvgvrPKHstD5Q= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=weissschuh.net header.s=mail header.b=HfImcajL; spf=pass (imf07.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=opGR4gpnAvbs+lyNBq6fdLjOrQBbmIYYx1eB7UGZHV4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HfImcajLyH9fRAHB6Ui+Edknzu1unFNUQsyZkN6W9dmfU+gHpYzWRB8z1jdPEJfrY Pr+tQUXouYF6Fr8ZB0dJgU5uJKyqI4ZpirRA8P4QYR64pl5zSDWYNSCG1oUxNDMuR7 AXYmALCXm31TMp71SE8rzh6qU7YGEq6bCde/2XZw= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> Date: Tue, 23 Apr 2024 09:54:39 +0200 Subject: [PATCH v3 04/11] utsname: constify ctl_table arguments of utility function MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240423-sysctl-const-handler-v3-4-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=696; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=opGR4gpnAvbs+lyNBq6fdLjOrQBbmIYYx1eB7UGZHV4=; b=ed5W9yz6Y3PYc8dy+kq6hSu45FqtfkT99vg42nbOB1Ni65LnrRYJQZmla0Oue7XwR99Gbnjaj bId0PbgErm0AeGk6gclOc5pv5Xfx6JPwBqf+J7ohAIHsKXAVAE3Ars1 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Rspam-User: X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 006A84001E X-Stat-Signature: kwiejfx6oukpzi4bonpzeee4kdyp7zun X-HE-Tag: 1713858965-164538 X-HE-Meta: U2FsdGVkX19ObfpFduxQ9aeBcqV94BpjOUjRsai1pWpESbYvLGSvfpe5q6y9sKW0bH6s8+XBHE+S6NPoXccB5hgCmRL/BO4t2HnGBPXoQZdVfPgx+NW6Jin1yQ/RTUh5oBlkOisklDoZVqT89IUFEYeXXaQOpE6iNroE+7uNhngmvbR94E+2oh2luOcfxxADAjGG/bH1GvA6v7qIJhbJ3YsjJFsJd/0ZMJ7FliFaBTWlwMGfXAUf6nAy4WBfRtVQ9A/VdMX5pln/ew88WTk2XNhrH8X2RDH2h0jui0x5Ju5w8RODAnmO7NNVuDGIX21CZj3DpzDV30oP87wYD6nODN2Lz7dCmoe52AEWyv9q1PDNiHTv5hVunNeyEnfv/q3UfsMKEKruYYEPDqeR8+/EZRGBpkYi6mIkSmJxE6Psgh9gf/fWty99/O649NT3Ef6W2NCrP8B5TYiE8vndKOUJX0Y4W21pWThTFC/PhGQoGx4kpdW1v66LAaguZDBVVLHaVOKpTyuXg/Zmk31OOK7wuhqB8FcB/tsv371+agiqvFFuR8kKx7KvQVs15mEL/qFjgcj+/zdeViJabJ70HKQRKODe28c4cJADg8NXQsxwkJ9Z6zqBg1jjk9sceL1IxQuEYp9N4Sg3+n4ANuzClnkPEn41+JgIAppSLMCMjlF/vTiupXsrUH2tO9qpPruMXv/+Aa3nmU3sxSpMkAsjIYzghUGNRZ8RMdoRgM1SfFbW0ez/M17kwzrIbLbGQtL+tuz0M8pnvwtUA9iYVv1yE8LW5EzTKq2MqLEQccseeZmcgzKcn8lPuvDXatwrUpO+9DvXvNPtFH048ZGpk8qo6fmeZ2i1mScO1y8Yd1XgXuMP8h07KpvRdhWN8J8MMn/BkMXhgSqz+NcbCdep+uj+zK+kHEGgXzzbOToLraCg9uBhSrqMyLBpIAvly6tqaxN9nIi1C8YMSPgYZZQsXthktuA WVIxhVp5 hzw5vFAw34Sakq1SJfo5OYiwpKvcY0Z+hflE3yLv23W3AhOIGh+YtdUvMpsB1olKsDjwmi0hzIHHzxNrDgnThX2dleVKDnyJBTG1SQnLr+quJjId5U7SLATA0RNiVUd93DgADiQi3Q2SPbjtNV16SfBKAaMeaaPzhPNsRbsYtCB/SteJyNUmUfXsPw/9+CIfGPKz3j0ubunYcdG562OL1wr7BMQ== 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/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c index 76a772072557..04e4513f2985 100644 --- a/kernel/utsname_sysctl.c +++ b/kernel/utsname_sysctl.c @@ -15,7 +15,7 @@ #ifdef CONFIG_PROC_SYSCTL -static void *get_uts(struct ctl_table *table) +static void *get_uts(const struct ctl_table *table) { char *which = table->data; struct uts_namespace *uts_ns;
In a future commit the proc_handlers themselves will change to "const struct ctl_table". As a preparation for that adapt the internal helper. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> --- kernel/utsname_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)