Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2207726lqo; Sun, 19 May 2024 19:58:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzgeWDF+jIo02SjHCPY9eiQe9RazMMO8XnTKoJmQi6SfBN+HXsVF0yzEqlAEkKRf2bvJC1hT70YnBPj48jEbzP1PLMq6wYPVlUS3Vc2g== X-Google-Smtp-Source: AGHT+IEIY6PhrsexsH+5nlRXUQDOFbpx0Zk9LdzbZTvBBvZM0tu8MY3nFy+QJmp0qNOsivbAzoXd X-Received: by 2002:aa7:8885:0:b0:6ec:f1ae:f579 with SMTP id d2e1a72fcca58-6f4e02ced4dmr36279382b3a.19.1716173909105; Sun, 19 May 2024 19:58:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716173909; cv=pass; d=google.com; s=arc-20160816; b=zd4buJkUXQAJ6eaFOqMSMmWt8p30p/wR66uq2fIT9NBsGqKAw1QqYDvJZIGb0HR2wC 0fl1OfVxqPA3AKXUf031cgM3qetIszABKKBUY2+RCnit2SvClAfs/1dt6mQgjBFi6pJ7 Hz0Et82dI9k3xJMJnkoJBYvraTnmcmLk3qjMeWIIT9XelJajEhHKfd0vSaV6hRbPHK+k 8uwmWeTE3zmv5CKb48HnjxMfAzRcLbDNAiupxWQoMLyqc/SgymWI2L1eaKH6S+yUTsWu YR9XX2VXANcNGACAaSw+iITrE4kAJvFrivlOuW9q9g7RME/43ide2qvUwuxEJaHF896P NjYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=r94y7jKsCQRRHGJ+5mpHFx0/+fRIm83jhc8oLIT45YM=; fh=4T8h1zgYXkG0bQ9SdJ4yjxlnII9FzrHBOrKcna10UGY=; b=ucOP+ZJu6LI9/yDfLFbr62wZlHO/mDWFbS/xnkB+nTH91N9ROD2w/9DxmgV0HiMFu4 erf8ZZ3zmA9iuQK2LOVESd3U00YanA3iqvFD3V2PSvdyyyekbaUWkBbFi3d2w/2aZgsI /vsbDnzuA+JOjvKnWdqwKgI7c0PYhdDaVyf9aeyODv9N/tQmzySKNzM80m3D8/LSDOwI AITGXJmKhjOChrNgo9s63y52rxUZPM93DSqOxE1hQ3RwvsSfVE9Yqk76qxzCTxCKAzie R1LRpW+W98OIF1IlE/FVWuCjOjTlvHU+iJ3yD7h8sHjmdcc8d3dRyQ1O7cgXSsF9IWJs 6xvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=XNIUyUXD; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-183367-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b4295asi2596586b3a.358.2024.05.19.19.58.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 19:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183367-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=@linux.dev header.s=key1 header.b=XNIUyUXD; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-183367-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 A356A2812E4 for ; Mon, 20 May 2024 02:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9C71C136; Mon, 20 May 2024 02:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="XNIUyUXD" Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (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 B64F579DC for ; Mon, 20 May 2024 02:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716173902; cv=none; b=tC0ji1VsIyqputuqgfPah4XTRVtWgSSPBoBL4N4BLM6qowUCqyHCT1zBt4/XMlNu+5YZ/zGIPTMEzNSp1Smi+a6kEOcobfLZl/wnIENsn5VEw7U2Pj7i9UkKIoYrRiCPmh8WrGZakGqhzlzuEWdm0llMRywkIVySufzJjh+Pnwo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716173902; c=relaxed/simple; bh=r94y7jKsCQRRHGJ+5mpHFx0/+fRIm83jhc8oLIT45YM=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=HYAt/jK1MSYjJSLnBKlEFexdK4/oDVYDtPWTupamwDBi2sEF+GWt5htH4vOmqowCBO4HM+wuETm3yDhWhXCadg0LzHzRQSHZjWLs2GnHmSJNolmKrUsUhGI5bNGYuo2Tp+FTjgqMvkEFEfvbav3O9sWg+kVpoR6dFQDFtPIrfdY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=XNIUyUXD; arc=none smtp.client-ip=91.218.175.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: linux@weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1716173896; h=from:from: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; bh=r94y7jKsCQRRHGJ+5mpHFx0/+fRIm83jhc8oLIT45YM=; b=XNIUyUXDlITLKNPfmk2QBQ0mS2iScwy1UlTDZDhfqvAsh0bmsC6WDqRgVgnqXdTGlNTo59 FtDHd0O3sDo7orHDsGPjDUjhoR8RnwD3c8AmDGWw3gGS0zk4DB+oBvBWjakeM3nOHMiSeW 1Ppmfi/1jO0LmxohEC/SVVY2unMqyCs= X-Envelope-To: akpm@linux-foundation.org X-Envelope-To: linux-mm@kvack.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: j.granados@samsung.com X-Envelope-To: mcgrof@kernel.org Content-Type: text/plain; charset=utf-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: [PATCH] mm/hugetlb: constify ctl_table arguments of utility functions X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20240518-sysctl-const-handler-hugetlb-v1-1-47e34e2871b2@weissschuh.net> Date: Mon, 20 May 2024 10:57:40 +0800 Cc: Andrew Morton , Linux-MM , linux-kernel@vger.kernel.org, Joel Granados , Luis Chamberlain Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240518-sysctl-const-handler-hugetlb-v1-1-47e34e2871b2@weissschuh.net> To: =?utf-8?Q?Thomas_Wei=C3=9Fschuh?= X-Migadu-Flow: FLOW_OUT > On May 18, 2024, at 22:00, Thomas Wei=C3=9Fschuh = wrote: >=20 > 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. >=20 > As the function prototype of all sysctl handlers throughout the tree > needs to stay consistent that change will be done in one commit. >=20 > To reduce the size of that final commit, switch utility functions = which > are not bound by "typedef proc_handler" to "const struct ctl_table". >=20 > No functional change. >=20 > Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Muchun Song Thanks.