Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2547873rdb; Sun, 3 Dec 2023 23:53:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrSoeMUA3z5nL2tmQdc7zNqL/2Jt71kFklrs18C80BVtiWd3CPEvqersh+uv6UNrck4ihh X-Received: by 2002:a05:6a20:5497:b0:18c:125c:bdf9 with SMTP id i23-20020a056a20549700b0018c125cbdf9mr1534269pzk.36.1701676392174; Sun, 03 Dec 2023 23:53:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701676392; cv=none; d=google.com; s=arc-20160816; b=Ef7OwEbWmXX8wdZRZrIAd3vaDtXXPx6guk5PjoyPh/dt6dhWLxXFuwaF9sz9gDYB5K 8oMbBQ+XtIdMVqQMu8NjZ45MUA6axL0XUrS1iS6HUFCcH7pzA9i2J88ZP75BO3jSIKpJ QDhDv1bq/5hNqXmcUXK9bqOvq5J+xe1Pyvbh3vP5ifTcG93qEr9hYYop0sqJP5KkQFN+ rNV/jkgc8vN1ydUZtc/Gr21TJkCKDURpXC5lbJ0YQBeypgIgR/+OvPApcLYUi9C/NjQc O1EEArWkGKiBz8JbJaNPo+o5dZQ4NEBZy8JNR6vOak+nTDhAE/QOr7U22CgEMFSUFRlk Jlkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=lkusk1P99fI0BchZnzwAxWBb57bnkbuow6382dfj8Z8=; fh=1v5zqbO9sIGUc9bsdyhYE0zxdK1knZz2xnJYWUWMFKo=; b=b2Zbce6jeJjSp05u+66qDZtgI2tcu2h933FNZkTL58nSRxVAIqn4/bTIIdfQqPqAw9 qYvSUvefhODakfeDwT6YOyarfJGkEy8aYporcm2LEjffPwD37bIZ/CMxZg5WSm6OHKXz eJvSnb9u3ueFRi4k6HEOjU2e4HEsJ/q6Lnt1JJcftfm36GCtyxBP+FCzrcIozJgSuyAp tarmLR6ppqiQCceQ+ZDNZS5iRMO7D57WA27b+YrRm6nC4B/v5QiQEma1kkbczBqX9KrF xj8xYS542+EAHwO9LZNUPEPx4p8FEzy5uBAJx73oSvXGLlS9J/u9QefEGI2HSoP6iQY4 FM7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=ebZp+DVY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f19-20020a056a00239300b006b905fe37b7si7519293pfc.221.2023.12.03.23.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 23:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=ebZp+DVY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2112B80597A4; Sun, 3 Dec 2023 23:53:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234762AbjLDHwt (ORCPT + 99 others); Mon, 4 Dec 2023 02:52:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234758AbjLDHwp (ORCPT ); Mon, 4 Dec 2023 02:52:45 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3444018E; Sun, 3 Dec 2023 23:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1701676352; bh=XX/0Dgv+i6b2iH4R1etXfooZRb2dy5KXDGiPQVphnWA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ebZp+DVYTEEAfjfaE0tgQxKbgsqYJFjNAFwcUYjBzNwvnbfhz3uNMC236Sa1fPfTw NyY5igxxS9b4fxVKkbyqn/gh+YLiw9R55X5EIHr6YQgzV7wOrcR9JY8Vf91oNlaGDV YtvSFjz8UWu4u5MQAanh2PNkPYJH1h1eebMkon+0= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 04 Dec 2023 08:52:20 +0100 Subject: [PATCH v2 07/18] 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: <20231204-const-sysctl-v2-7-7a5060b11447@weissschuh.net> References: <20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net> In-Reply-To: <20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net> To: Kees Cook , "Gustavo A. R. Silva" , Luis Chamberlain , Iurii Zaikin , Greg Kroah-Hartman , Joel Granados Cc: linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701676350; l=696; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=XX/0Dgv+i6b2iH4R1etXfooZRb2dy5KXDGiPQVphnWA=; b=zWbb03OQ8wfovwcUfOlCCPX491ahk1eH62Nq+pjCquKuyWlS5cMqfrOW//ibS7ErluyLMRkWU 8/+YmIhOrdlDhhbBdhUvQ1jGzJTdwvIKPQmgi1Kr/jqFOIqsESa0dt6 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 03 Dec 2023 23:53:08 -0800 (PST) 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 --- kernel/utsname_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c index 019e3a1566cf..46590d4addc8 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; -- 2.43.0