From patchwork Tue Apr 23 07:54:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13639465 Return-Path: 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 B4C5EC4345F for ; Tue, 23 Apr 2024 07:56:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7EBEA6B00CD; Tue, 23 Apr 2024 03:56:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4E5E06B00CB; Tue, 23 Apr 2024 03:56:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 24D5B6B00D0; Tue, 23 Apr 2024 03:56:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id E25156B00CD for ; Tue, 23 Apr 2024 03:56:09 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 89D3F1C12F2 for ; Tue, 23 Apr 2024 07:56:09 +0000 (UTC) X-FDA: 82040038458.05.D227BBC Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by imf18.hostedemail.com (Postfix) with ESMTP id E055C1C0005 for ; Tue, 23 Apr 2024 07:56:07 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=weissschuh.net header.s=mail header.b=dtp2KrFT; spf=pass (imf18.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=1713858968; 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=cRO+HDvPAFtWjU15NZurUgUgr1bdJer2r7B6/F9QL6A=; b=aHLml6pWEhWf6AiTH91f5zmAGQnnaa74vw2fG6TsPcxZGAf43reeFlSF4hxA+s2qqp36wc QJD/nMUB7MOdUphyVTPOPW0TfjW673Ctcy0c+PArEkaGJn+AvOgVPE4qa+kVMR0wDfsdxQ VpXVY5lDyTkZbMIvfA35Bvv6Tl4okjQ= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=weissschuh.net header.s=mail header.b=dtp2KrFT; spf=pass (imf18.hostedemail.com: domain of linux@weissschuh.net designates 159.69.126.157 as permitted sender) smtp.mailfrom=linux@weissschuh.net; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713858968; a=rsa-sha256; cv=none; b=5kdT7lzpFaP84MuKytL9jTRoTEn5L/wd6kzcSBXHfT3rVt89yANyOLGaoG8b3z6CjpYEAu 5o5Qv5Ek5jNaL0HZneIRmYQU/mlEBLTlTDxJewWVEWAc6wvyO0QmLN4jwwnbPMj+ksif7m vf4fgVNbzEAH5iEKSwDlEnYMd8oxjBA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1713858962; bh=C10U8w+9znaxkvj5EdGV6iNeFy+LKwoCMige5+WbmRk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=dtp2KrFTs1ZPOV423X3Lj+ohYH+w1R0E/8kBpk9DMXXZtdIcFmbTu30wN5OkBGmMP FLzPXuqgfXj6gzjMKHmGAW69Xpdffu14WLEeO5qDjUe0ZwtkRmnV3IoKoevaneipoy 3sjOVDTg0D0OU3K0YuEo6+K2obOUKB6HIC+G61H4= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 23 Apr 2024 09:54:40 +0200 Subject: [PATCH v3 05/11] neighbour: constify ctl_table arguments of utility function MIME-Version: 1.0 Message-Id: <20240423-sysctl-const-handler-v3-5-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 , Joel Granados , Kees Cook Cc: Eric Dumazet , Dave Chinner , 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?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713858961; l=808; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=C10U8w+9znaxkvj5EdGV6iNeFy+LKwoCMige5+WbmRk=; b=EAoTey3kmtnh/z6T2K9kHOuOiGQPDvnlrHzdVg4MNSMG74MpVnrzaAzOlr8qG7tTA+0aGApZ5 EfQ5uq8SVYaAWFetEV8qu3UzVUp6J12UzjZsoq4ZupsTosh3ACnOL89 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Stat-Signature: gqzuk9yrd3r19ek95x49kyj1n7qn9fjg X-Rspamd-Queue-Id: E055C1C0005 X-Rspamd-Server: rspam02 X-Rspam-User: X-HE-Tag: 1713858967-912665 X-HE-Meta: U2FsdGVkX19yUPqJggRVERfjRDcydqXbGSIBz9dKCYETlOeQraoRAEJh4smVWdJvDhQ84NQJqHlO2yXao7rf2BxiG8QpO4ty3nWFRB2aUPVvfU6PRNe+Q013g46rVcBkbJeLw3kQLVX5Q05H7q4EXjdbCiUDX7RPGYVocf8bm7SwCvUgtMIqjQU71Xu4EgyrcFFYtWwNrwFmtxuA/pQMBWB9FdCUbe8KHdZI0CMX6mmqFC6icXu7+o/dUKbU+iKnKCwrNHXzNrK0Ifrv/7roH03wDaSFkeFfd7HzLIIbHA8eYXKpqqNoT/Poq+aChlJwXK3SURG6ZUc1IDj0s1hwAEnPfTzBW4SLPyUu52uMuQM1Z1uVUHRT43SzC9xh5lMtWNDGUQ2L37hOx2dT+13ZSNqeLSw11z96yChxIhwnAYKzjMeE5wS+KM+l0Ih5GFKYBxQD4Fmv7NNg0EMPE9u9G4NB1bT3Do2fE+eU0Z6yXG/Cr38nkr8zi+x4V+cOH02usA+leI+v9hGWxNy1nRWftbS7RsOnmnttW5bvARgwqzmA8GkIX6txdrD7fMxtIAJ9jI3V6NOAWrYvfmn8GgdyT3ubZWJ2nPOErXam/0MMZ6ifoI8o/cAZiCqCL2/B57QD2s6USKcegwntCeGuP+nS51vudlZuykV9p1s3fqvdXjDRV4yE6LYc0507uESnKitfRqOVwCDO8Y6Gppkw2BNzqhBdustr19FqyTCQ9VCZygvUCMqdOq44CoV68hzBEGNXy+xlMbv7KaJqcPf5FDzCh/bPDYORy9wCyqCLlZN55HkOXxbJAlaZnb1b5m7Kj7A1FFHlv5vFn7s= 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: List-Subscribe: List-Unsubscribe: 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 0805c00c63d4..92a01664a723 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -3578,7 +3578,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;