Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2192483lqb; Mon, 27 May 2024 10:43:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUw+dI0Q7TREbTtsyQ7/CHkPuW4fUHW+EhhwUFZEcR0eaQdkudAOoH7KEIAAtI3mqWS8BeLhBUXbJDMGAZnegI9SS81Rvc6YFxGlYsRqA== X-Google-Smtp-Source: AGHT+IE+aMxqm7m8se5uiOPgnlCOEF2KTooZji2Z8Q5dz935uHKUVfdO+JftD8t3s7onZozlR9dr X-Received: by 2002:a17:90b:3110:b0:2bd:d680:3c8a with SMTP id 98e67ed59e1d1-2bf5e139562mr9921659a91.5.1716831817712; Mon, 27 May 2024 10:43:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716831817; cv=pass; d=google.com; s=arc-20160816; b=vv61fbnG2braXs/XRmM1Bz9wxoCztnhbPaC1rfL/pPEB7dmqJ6vWTNsRWZ74pk80M1 1abp+BYJH9+jfylo4BN8/9AIlpgN4yWLVvU47bawOOzSC0XwjjTl3lzV11DB8zkNV3lX PBOKEAZ8t6m4AtZ8FBzMo3r83EnudNge5V/XCNHSeqSRSz1gd9ErJo3ytMDqVdI+akVO uHj5ylcBdhRG9H42Rck7a0W8wloqh/K0Ac0WetNpCxrdkXPev2YBlieKVP3+MKURgj29 kXrEK1nThKshAV23EwZwAods4R/S1FdpMuPqqsyjpQbYf5BAZDb15VvDBmK8tV0CSzPK V/MA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=tNiDjiSg7uGzha1FT57A0ziQ35MDVBUwL+t+PHUh478=; fh=YDg0oqa5hJ28OLR24+Z65EoTJ/ju8hSx1U8sxTUfo9w=; b=STv5oJzkzV08p8mrPxxwZLaFJyko3LbsVq7aLDRcoqbjJgaLeBFxesU5SIp1W3kR/u eWMB10pd525rQT2/VNMvrAc9+cdrQIJyaBYD+eH2O4bpGj34q/XyL141GVP12D4wKCMA z6Lil5ZM5hwaycYd4dyR9zbyJAjCzsudOFJpukolT/y5Of+1zMMrrkxdFSQ8wLYdl0NH nsDBWQTrEbGoRDOHhnBAyXyOP7jSwT6prKjEZgf4STv1LxvClLm5F26Dz/riwsatRxaI hHgnublRUD42p9BbYSMJWH+R7FPUKfdqktRlPhjKvvqqj1DTRj12WhlqKbkyLu80l1c0 v2EA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="da/fhpWv"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-191280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9ed93ecsi8249393a91.26.2024.05.27.10.43.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 10:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="da/fhpWv"; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-191280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 269D7B269DD for ; Mon, 27 May 2024 17:06:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A471415FD01; Mon, 27 May 2024 17:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="da/fhpWv" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 817CC15EFC2; Mon, 27 May 2024 17:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716829479; cv=none; b=puPx8ylwREKFVNCQsC8G7d0Z6SN87p6LUh3kYjYKHbKgZt+Y9R997Hu9kHvydIRcnkELIk5SaGzK5LefumioHCM3FRl4ybqGJUiRSsfur+Ge9FXdQzkSbK3kHzKMi8HSI2uzjcP4NoWMkF8hogP2X5UaGpAmj/0J2kmtLAI7LCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716829479; c=relaxed/simple; bh=IZAxBClgjR2JRRgfT5u1GNIr+agkxq1+agyYcocn9Rs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s7BCaF916vJiCg+dBkEgPXIT/qeRxzpVK+Gyd+MdTRmDv9hL6TuV9bnTeeBRlRao1yz412EFhgWhHZplSkOVMwhhmwzd4lv9Rcp+ak504Es2gY+t3N7j4WYHpeAqvFmnAeiRtGYWFjuqQA5BGXBP5YDmHv1aOlGVdc0RUun3Z7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=da/fhpWv; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1716829474; bh=IZAxBClgjR2JRRgfT5u1GNIr+agkxq1+agyYcocn9Rs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=da/fhpWvJelKxMWpgjF8T7sg0ljON57xbSnx/pR9isNqHBqFm5Lr/c8WMZs0ZP4bq b71Vzcrn3R9Q2+LG6r6EHTJFx4RoZJJRLRZ4C5VWv1j4LSuXhG2el/8I0+S5yK9Hsv iJUcNRq1H55iPWiGLsQeTSaojsBi0YAZXy00+vx8= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 27 May 2024 19:04:22 +0200 Subject: [PATCH net-next 4/5] net/ipv6/ndisc: constify ctl_table arguments of utility function Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240527-sysctl-const-handler-net-v1-4-16523767d0b2@weissschuh.net> References: <20240527-sysctl-const-handler-net-v1-0-16523767d0b2@weissschuh.net> In-Reply-To: <20240527-sysctl-const-handler-net-v1-0-16523767d0b2@weissschuh.net> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Ahern , Simon Horman , Julian Anastasov , Pablo Neira Ayuso , Jozsef Kadlecsik Cc: Joel Granados , Luis Chamberlain , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716829474; l=1095; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=IZAxBClgjR2JRRgfT5u1GNIr+agkxq1+agyYcocn9Rs=; b=hw+Pgu/VKaC68kmI3/6DupMdnaPEiQWJV4ODKOTgA1hLEJwxHTRAfUo5GeMcva1eO0s8yKF9v 1wznNFvMJTOC66Nx627QVe8fLrKNrFbhksSFY1a6itTykcQ7gRtObEE X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The sysctl core is preparing to only expose instances of struct ctl_table as "const". This will also affect the ctl_table argument of sysctl handlers. As the function prototype of all sysctl handlers throughout the tree needs to stay consistent that change will be done in one commit. To reduce the size of that final commit, switch utility functions which are not bound by "typedef proc_handler" to "const struct ctl_table". No functional change. Signed-off-by: Thomas Weißschuh --- net/ipv6/ndisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index d914b23256ce..254b192c5705 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1936,7 +1936,7 @@ static struct notifier_block ndisc_netdev_notifier = { }; #ifdef CONFIG_SYSCTL -static void ndisc_warn_deprecated_sysctl(struct ctl_table *ctl, +static void ndisc_warn_deprecated_sysctl(const struct ctl_table *ctl, const char *func, const char *dev_name) { static char warncomm[TASK_COMM_LEN]; -- 2.45.1