Message ID | 20240315-sysctl-const-handler-v1-5-1322ac7cb03d@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 192DAC54E67 for <linux-mm@archiver.kernel.org>; Fri, 15 Mar 2024 20:48:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B614880146; Fri, 15 Mar 2024 16:48:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AC246800B4; Fri, 15 Mar 2024 16:48:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8515580146; Fri, 15 Mar 2024 16:48:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 67C4D800B4 for <linux-mm@kvack.org>; Fri, 15 Mar 2024 16:48:31 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 4A05A1C11B3 for <linux-mm@kvack.org>; Fri, 15 Mar 2024 20:48:31 +0000 (UTC) X-FDA: 81900461622.16.FA442EB Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by imf15.hostedemail.com (Postfix) with ESMTP id 5BD1EA0008 for <linux-mm@kvack.org>; Fri, 15 Mar 2024 20:48:28 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=weissschuh.net header.s=mail header.b=OzlCngVZ; dmarc=none; spf=pass (imf15.hostedemail.com: domain of linux@weissschuh.net designates 159.69.126.157 as permitted sender) smtp.mailfrom=linux@weissschuh.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710535708; 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=fUJrbbz22O+JYEdA7UrsBfA/W1aIoTpG/duL4TJcoAI=; b=6p9/73KLUuJ9LXMMUc953EWWhyS6tUAbvPZwaKAxT0FM5S/RL6egD7rsGfhPQmXKZriKGW MS76K8D97JUZCQCqVQnLyq9wm3PcV1OHg/cJUWQMBdD6/j9v4ZOJBhK8uowsw9Fq1ENpRC U2KW5RWoUKfSRvmoAVMH9uTKiqsYxsg= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=weissschuh.net header.s=mail header.b=OzlCngVZ; dmarc=none; spf=pass (imf15.hostedemail.com: domain of linux@weissschuh.net designates 159.69.126.157 as permitted sender) smtp.mailfrom=linux@weissschuh.net ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710535708; a=rsa-sha256; cv=none; b=EvenuIz2DNVW/bmIE2wX95mwc/dTHQbA+VbkPRc+/z6UfBSbYQLDLRhefEhc6yTb6AHm36 DDkH0fbbHIwlLtXfaXNBDHNOrC0356rmJd2pSwXFRTPVoEFUdWblZyajITM+fjp7SLXYH6 XX0LT2n6G6Wjf6uFvnEHVteD3JObNa4= 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?= <linux@weissschuh.net> Date: Fri, 15 Mar 2024 21:48:03 +0100 Subject: [PATCH 05/11] neighbour: constify ctl_table arguments of utility function 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 <gregkh@linuxfoundation.org>, Kees Cook <keescook@chromium.org>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, John Fastabend <john.fastabend@gmail.com>, Andrii Nakryiko <andrii@kernel.org>, Martin KaFai Lau <martin.lau@linux.dev>, Eduard Zingerman <eddyz87@gmail.com>, Song Liu <song@kernel.org>, Yonghong Song <yonghong.song@linux.dev>, KP Singh <kpsingh@kernel.org>, Stanislav Fomichev <sdf@google.com>, Hao Luo <haoluo@google.com>, Jiri Olsa <jolsa@kernel.org>, Muchun Song <muchun.song@linux.dev>, Andrew Morton <akpm@linux-foundation.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, David Ahern <dsahern@kernel.org>, Simon Horman <horms@verge.net.au>, Julian Anastasov <ja@ssi.bg>, Pablo Neira Ayuso <pablo@netfilter.org>, Jozsef Kadlecsik <kadlec@netfilter.org>, Florian Westphal <fw@strlen.de>, Luis Chamberlain <mcgrof@kernel.org>, Joel Granados <j.granados@samsung.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, Gerald Schaefer <gerald.schaefer@linux.ibm.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Phillip Potter <phil@philpotter.co.uk>, Theodore Ts'o <tytso@mit.edu>, "Jason A. Donenfeld" <Jason@zx2c4.com>, Sudip Mukherjee <sudipm.mukherjee@gmail.com>, Mark Rutland <mark.rutland@arm.com>, Atish Patra <atishp@atishpatra.org>, Anup Patel <anup@brainfault.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>, Eric Biederman <ebiederm@xmission.com>, Chandan Babu R <chandan.babu@oracle.com>, "Darrick J. Wong" <djwong@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Masami Hiramatsu <mhiramat@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Arnaldo Carvalho de Melo <acme@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, Balbir Singh <bsingharora@gmail.com>, "Naveen N. Rao" <naveen.n.rao@linux.ibm.com>, Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>, Petr Mladek <pmladek@suse.com>, John Ogness <john.ogness@linutronix.de>, Sergey Senozhatsky <senozhatsky@chromium.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>, Daniel Bristot de Oliveira <bristot@redhat.com>, Valentin Schneider <vschneid@redhat.com>, Andy Lutomirski <luto@amacapital.net>, Will Drewry <wad@chromium.org>, John Stultz <jstultz@google.com>, Stephen Boyd <sboyd@kernel.org>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, Roopa Prabhu <roopa@nvidia.com>, Nikolay Aleksandrov <razor@blackwall.org>, Remi Denis-Courmont <courmisch@gmail.com>, Allison Henderson <allison.henderson@oracle.com>, Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>, Xin Long <lucien.xin@gmail.com>, Chuck Lever <chuck.lever@oracle.com>, Jeff Layton <jlayton@kernel.org>, Neil Brown <neilb@suse.de>, Olga Kornievskaia <kolga@netapp.com>, Dai Ngo <Dai.Ngo@oracle.com>, Tom Talpey <tom@talpey.com>, Trond Myklebust <trond.myklebust@hammerspace.com>, Anna Schumaker <anna@kernel.org>, John Johansen <john.johansen@canonical.com>, Paul Moore <paul@paul-moore.com>, James Morris <jmorris@namei.org>, "Serge E. Hallyn" <serge@hallyn.com>, Alexander Popov <alex.popov@linux.com> 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?= <linux@weissschuh.net> 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= X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 5BD1EA0008 X-Stat-Signature: n3utzj18sd8jz7yfi1mapyq1gxmpe5ys X-HE-Tag: 1710535708-735395 X-HE-Meta: U2FsdGVkX18QUB4WzcKCQkQ7qmMSHjpuxxdR9twC5G3ef5kXyXwfdpk9bIP8SEY7SBJRpG2Bh6H3pOI0YP7j+hjVdQhx1HVAHxUaegnjYRFGS/RqkeAIiP+K/jq9TRrEytM9JjhmSENn+USESoqb6ap8gzQ9dkXjNbT4r1Q7Wn4jmjJrAo4ZX5nMoTeSIEpAz/5T2PaNLVLB3pxDeRJpK/nuwvI+71oT8b5G1zzYU4Y4bpV51aZMagd3HhLUYqVjKI3x69hphYShSw+wQewZP4gjzAODySLyLnut0BlYCCygNajY35Lm79O0JA3fR8hp6SBwoOsWbeIKqwIPzHSAYKIxg07Zuo37vorabJosME7pn3Lrhd4lWy13RSbsupRAWopVTKD4jxzdjQqux9ghoTZPVjFGRL922o78w2TG/KtUXa4QjDrH1Ptl1YEikjwNZDXHAd4PL6IX78rD02p+N4iAbYZhJfmudl5CUx88FX9vjpgzyKcsxDy3Tfy65ZTvyd6JOp1zVb5+QbMsCpzQYHz2IHpJtXddicCXt5iUj1cxZIoCl3lLZXkNfR8VIQtAbA3bZkWrgrzDkozIliYVafDRTCCqdGjsu3qujWqbG9npgp0V26et5L1mnoUowDlpANYc57Ytj03ARt39YM+gOLwSmTw+GJK7Ws+R7nIjIQqwAY7N2EKJgnY9YHueQOHepTEB6QxNtAb/BCrhe/Phzcc0Dm/EXxI4fIWL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WqUALQQHrbUpJK1UcOrYtHepMO96/L2QMjwR47G1FlgKh43/1o4fZ13DlL7s/Skot8tsbELgs8KmIN9ZDlDVomJ2cJRglvJqHmbtaalhuN+PAOMUtqYLq+8URqracwTaV663iJcqFGqqvuzzjXklMLE/Y/kwX+1P1G7wSviDNxqQmfVWFj9ZzGigkyFuHiP3V4fTnS8j74JHBGWZ+Sp1RITWCZTXQ2ABO5Yzck1/CPsF710Uazp451bxg6FjNpZIv6y8x1sIM//9vNUwiJTWt0jtRpr2xJuY2LMrhbFz/af9FcjXWLF4dWyPd+cgkRB6a09jnXYYw== 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/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;
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> --- net/core/neighbour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)