Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2780273lqt; Tue, 23 Apr 2024 00:56:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCQSxG6hulT+UvypzloEA3qchP4dDmv1x4USriVA0a0/FmYd4F3MNqmuLIO97jFCOSDvRHwLm36TJJm2O8gJF7Izt1GR7nHUV6ioND5Q== X-Google-Smtp-Source: AGHT+IGo/iw4Oo1DsWzpZ5M4a4xWPIVzUMwpvhYpMb9LB1+f3mNaaiVXe7FHDGeGjWF4zg9RexJq X-Received: by 2002:a9d:7c94:0:b0:6ea:2723:39d9 with SMTP id q20-20020a9d7c94000000b006ea272339d9mr14774219otn.0.1713859013262; Tue, 23 Apr 2024 00:56:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713859013; cv=pass; d=google.com; s=arc-20160816; b=k3iJMiIIqZJ86dv+0Y6LjyGp4hVAt8x6W+gKgCLeMiqd9ZaFJ5rchHtqbpC0/EewVP MsXF8J4dBzzpQ1GKJ2UZhDsd6o8MxZO3rcg7EvRKJ0sqXlmFr28Pe/j6hS8XVopplLr3 lhzcDG7FVF7uuEtQ/9koB2NXN7ZBVEr0q81vBClweChdQkYHMcRMKaQcyk00QUd1nSz9 NKvQhkcRvKE1rTrQ4pJkOAdBqzK9iCl88nQwwHXKI3Wcdk4j0rwuj0+tIyLE3SnQo1i7 WTWD0swStTYvtB6c7fej/Bvj99/LLEkzoRw9TIoDsVLcaGZPeXkzvdDCswYfd9JuBgsW FbRA== 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=RH63MKPwBnqVQniCp8meCxRPD68GQSfUHeVcLvWQV0I=; fh=VMT1zhh5TdCzVW4WOkCTD64YoVs6fdICDULVwYjy/wU=; b=KHTUqrhMG0eOScTHhaOiz18Kto12BQUW+WNrh6qtlXLhKm904WBCfZqNYEbKy9AoA1 q7JrT0U/jROoeS1tGn0ThEh3IWn/ivxb4vbSAn91rpKn4AAsx1QVqd97b4HX5begYTHb M1wcZusOG0kVmcOFIA1AKgpkQkCZBLD71yoW7uVJVTq9lHQSh5PIweGDFZnNwCMNYO7C c6dNcxSAwKirMJtBqbDS69Heqf8AlWcjyLMRG4mxUOPEjVExxQYdqLlgf/hiEhs5Rdi+ s+qR5BiahSYjurvd0nFMwUAT3eSpT/CM0MRJGqT0TOMeykPowGJF1Td2cQITmmtSPm0V xV7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=uTNAVwQO; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-nfs+bounces-2933-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2933-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r26-20020a635d1a000000b005cdfc01b502si9470086pgb.337.2024.04.23.00.56.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 00:56:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2933-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=uTNAVwQO; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-nfs+bounces-2933-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2933-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DF24428465C for ; Tue, 23 Apr 2024 07:56:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2305554668; Tue, 23 Apr 2024 07:56:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="uTNAVwQO" 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 355B54CE13; Tue, 23 Apr 2024 07:56:15 +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=1713858976; cv=none; b=SnLqDtk9WDj7mWGMMw/6SPp8TqKr31CDHF3h06uS2EWj8dDeXV0ax5kLHkINK2NDcdJWfe05qVCVatKOURiTUN9hcxIdXdNKxgQ9SHiyKnjRzOzFAhjPyeQV3cih6AagGK3jB3LapcBYdElvH8DPcPTbaZEtXo/6Gkcr5aU0/Fo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713858976; c=relaxed/simple; bh=m+K+pCOcUIKDJXVlXdIjxkNCOOD+02kNnAffkd4pv3g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nHpTi3La0zi5Nnlk1DPzk2gzzDFtP/eD6farb3Yqnsy/NCFBSqabN/xv9oiQWnUmWVUS7l0WYBrILWxv570jaRPc54K7WQSlDihW/M6k73u7OA15mWuEofrZVK0fvfPe8zkad8ZdCT7JGQBTCqwu5JrIluS0ZfIEUmEGJU9z5Ns= 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=uTNAVwQO; 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=1713858962; bh=m+K+pCOcUIKDJXVlXdIjxkNCOOD+02kNnAffkd4pv3g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=uTNAVwQOIrRyal1El9mD80wWXIn5+WwLLWjNLDCcaegSzdSC84+iXuF/GhKNCzZey dqHH7jcVgd6z8KAGRhgZtLRswyOrd22fZMdq605pjyZEWmoyB7lxnYP/oYvWQiq6lf wEKqJImxcbL8ej1t87j4xoAeM5vL0mYBMuWiF53E= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 23 Apr 2024 09:54:43 +0200 Subject: [PATCH v3 08/11] ipv6/ndisc: 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: <20240423-sysctl-const-handler-v3-8-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=C3=9Fschuh?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713858961; l=778; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=m+K+pCOcUIKDJXVlXdIjxkNCOOD+02kNnAffkd4pv3g=; b=Q+YktwnSI6kCGsBTIybu9xGGD/NXt4eNC5iasTFmeHPKR3qFek7DAHVOAL6ODtVWxHz0IlTDl mOjC9oMpS6vAF/sGF+2/gRvvMn2SvCRtOwEY6l6YCWFhCxPgYjqZVDv 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/ipv6/ndisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index ae134634c323..945d5f5ca039 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.44.0