Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp24806lqb; Fri, 15 Mar 2024 13:50:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWx508w80YP33bS01N8nuqRSerzrGe53MAoYzqZEg2NF8Vgc10Xr20mgDdy5hCZtHbAVIq2JX87q6MBtsDgt+jPgrIj3DIEijjmQsK/mQ== X-Google-Smtp-Source: AGHT+IFYtCWcnjp2nJZlnfPtmmAghVhy8SllYa3IKQg9C6tVc428pifWdatRFTaqFHR70RwYtTg0 X-Received: by 2002:ae9:e60c:0:b0:788:723d:593b with SMTP id z12-20020ae9e60c000000b00788723d593bmr5948732qkf.75.1710535851216; Fri, 15 Mar 2024 13:50:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710535851; cv=pass; d=google.com; s=arc-20160816; b=IX5yaTjOPg71yZO5f3P9sPaenRvb/M2HNZcytedCMDvkWNiS3vjNe19+W3zUOBbEmI izDhLw8dfJ4f40lHzujqyyGsOgl22J3riGTiMBWKnr1FoSqWWQDqPgt97McJBARs5OfV 3vbYoCu8fcZ1NcgEo/HS5X6NuXuTFsrrZz+SuACHKsAMHWVDQkTX8mEwwV7pOniA7fW9 kyTn03vnqzwIoRlBTwVNZZnskH2BSighPzgNnwAtLZjd2XJjZY0YTEVbBvitgvMZ5kiq vMvKNyJ+Mu5sa5Rz7mZWM/lG4c5nMkDRSO6NSzEJN50Kyuk96XXGrd0w9KIKoVsXf68i friQ== 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=fUJrbbz22O+JYEdA7UrsBfA/W1aIoTpG/duL4TJcoAI=; fh=P5LopblOuM+wTyGvxUQN+d1jxiejuSAgMh+CJu1BpsA=; b=xjGoufqD3aUBEfGVQXjZHoO52ncH0hzs4Ug0/Nctza+Q3mEJt3u9TjjvucWH0fSapN T3V3YAeq6XVo3BTLDRVZLfBalzj/yHFmoVxIS7Y9+bLMwMTpBJq2M9nz7woj/8XtmBbR qXP1jw/zAvZo8Pmdu0FHtXkpvLm5uvxHmZ/kvRjyg7j2dO44xu/scuQ8j7WdtCqQAeWY 5QU/hn95O8WpZxa6CLCxgZhdbW4GR22txQY85CWOkbQaVL4mUQwAubT9wrYBIHDv24uD eMtROF7y648KfKM8ICl17gbIdmp1MyCXLpOpPPoy0cKsziGJkM7LkOiyOUvCX/7Xxz8Z eaRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=OzlCngVZ; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-nfs+bounces-2340-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2340-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pc5-20020a05620a840500b00788749079f9si4358497qkn.105.2024.03.15.13.50.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 13:50:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2340-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=OzlCngVZ; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-nfs+bounces-2340-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2340-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DEAAF1C21E3C for ; Fri, 15 Mar 2024 20:50:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91D285B5D1; Fri, 15 Mar 2024 20:48:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="OzlCngVZ" X-Original-To: linux-nfs@vger.kernel.org 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 3B0E855798; Fri, 15 Mar 2024 20:48:27 +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=1710535710; cv=none; b=VmKMjyFNPYUfY4hbXYziQSdUXYy3oKCzddSVXlY8/HLg8qJyCJ83/zkJ0gtriObsbQp9qTcZIwb9EvkgWT/aMO4FKc2ySCt1VY+SxccJqoWo4s+U1jdqR+pcQUdmMbBo8b6HcRbF+TzfI2/GQgqB8hZKjKvOxyrN5SPIfNzF908= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710535710; c=relaxed/simple; bh=oevlPOUTno1lzAS8VyWx7MVuhqnxcH7itmP3/5hwz20=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ddhkBpgjGMwe7LiakJ3p3JUpr4fUhXckAdPtszMMv+RGGNmNZ2k1jLWMJcx6VIZNE0SYlf/Or4nggQxBZMBsFLcq4GpHjnKmQCP4ncxpw5hlRjoyu4F9lYwN9K4LV+IpsU564D9L4TYc1UzJeDOYO9zg9m02Je7wNKm86vcr9OM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none 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=OzlCngVZ; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none 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=1710535698; bh=oevlPOUTno1lzAS8VyWx7MVuhqnxcH7itmP3/5hwz20=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=OzlCngVZzs14BEfB2dc5J4o4ZKkSQQkWcdhqOSjhZhgkw/Ll2JQ6iAP5cU1U+kVsa SrPCNtTtm8SHoDqPXiHa4YsznSa7vqTifHCUJbDAIQNi550jyZtghvHYAeHSFkf+H5 CmLMXq4gfmBvTUDddBCzzP8cINqR1mq64EVXhq9A= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 15 Mar 2024 21:48:03 +0100 Subject: [PATCH 05/11] neighbour: constify ctl_table arguments of utility function Precedence: bulk X-Mailing-List: linux-nfs@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: <20240315-sysctl-const-handler-v1-5-1322ac7cb03d@weissschuh.net> References: <20240315-sysctl-const-handler-v1-0-1322ac7cb03d@weissschuh.net> In-Reply-To: <20240315-sysctl-const-handler-v1-0-1322ac7cb03d@weissschuh.net> To: Greg Kroah-Hartman , Kees Cook , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Muchun Song , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Ahern , Simon Horman , Julian Anastasov , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Luis Chamberlain , Joel Granados , Catalin Marinas , Will Deacon , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Gerald Schaefer , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Phillip Potter , Theodore Ts'o , "Jason A. Donenfeld" , Sudip Mukherjee , Mark Rutland , Atish Patra , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Viro , Christian Brauner , Jan Kara , Eric Biederman , Chandan Babu R , "Darrick J. Wong" , Steven Rostedt , Masami Hiramatsu , Peter Zijlstra , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Ian Rogers , Adrian Hunter , Balbir Singh , "Naveen N. Rao" , Anil S Keshavamurthy , Petr Mladek , John Ogness , Sergey Senozhatsky , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Andy Lutomirski , Will Drewry , John Stultz , Stephen Boyd , Mathieu Desnoyers , "Matthew Wilcox (Oracle)" , Roopa Prabhu , Nikolay Aleksandrov , Remi Denis-Courmont , Allison Henderson , Marcelo Ricardo Leitner , Xin Long , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Trond Myklebust , Anna Schumaker , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Alexander Popov Cc: linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-fsdevel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-xfs@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kexec@lists.infradead.org, bridge@lists.linux.dev, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-sctp@vger.kernel.org, linux-nfs@vger.kernel.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710535695; l=808; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=oevlPOUTno1lzAS8VyWx7MVuhqnxcH7itmP3/5hwz20=; b=nal6nqzlOqju6KoSlkSXv2irkXSIQB1hPxMMvRw5/3x5Pl0PJC8iZv6mLbrbrwrTwJiwMMOTx vrmE29LSkJlAudC9x/ESIVrRSshIpjIXJbLqbScnLDsQB6DzgzZYtRY X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= 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 --- net/core/neighbour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 552719c3bbc3..1fb71107accf 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -3573,7 +3573,7 @@ static void neigh_copy_dflt_parms(struct net *net, struct neigh_parms *p, rcu_read_unlock(); } -static void neigh_proc_update(struct ctl_table *ctl, int write) +static void neigh_proc_update(const struct ctl_table *ctl, int write) { struct net_device *dev = ctl->extra1; struct neigh_parms *p = ctl->extra2; -- 2.44.0