Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1821824lqb; Sun, 26 May 2024 20:33:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNyq6fg7N0sOrR0NafesISQQoukkxNiRkT6a3QzWwmRS/0YVa+l+GpezpD1xlYL64+zzT0zr7KB8fY1Tpsqxhe7l47MtaW6hZXiD1Ecg== X-Google-Smtp-Source: AGHT+IHNRkeG7c/QOMOw48QybI4knmpQzhhZPv+nD+f7VOMdLJ47xShr+Qguj6TS2bSKl5fpfpsz X-Received: by 2002:a50:ab13:0:b0:578:5aef:23e3 with SMTP id 4fb4d7f45d1cf-5785aef24bamr4822784a12.21.1716780803877; Sun, 26 May 2024 20:33:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716780803; cv=pass; d=google.com; s=arc-20160816; b=TvWUn5zbrErq3jPyaFl00p/r74ZPQHxXCTcaITaCc+oFfbTZBUVGH66ygVnhh/CXO3 xi6/WcCpvPd+9T4nBd9qui3ShG8GenM8z6npvLxT+2oxTNgHL4d53lfx0AX8RqssIS/K tya1Mscw7PmucBhYs7YARJRhjSjeC56O8WhLKegOVVWTDFzKtN1ChLJ0dED7nTzbt/tc 8TdsxjGCLrsbsYOiVKnf/AIzc6fENkT4kxaD3NOZJaHFpFg0HF93pjWhagGTuvGOsJdg vq693IMLE889TI4Eg/O+U9D9Ealr/CKdrPWQbkHuJFQzKFuz89T2vbC7esIkGeS85N4V M7Cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=4ULxJHakq8WrIYTmL8w/EKL+mKNfR0R9UJ7PV9piAMw=; fh=B2GH2hxNPO1X+SQmPIvvrDK5/4b3i9yQ0BbH/Mp1F5c=; b=GnjAY/iMD9apLXreEp0AVArJLywXSQWLS4n6b1u8/dde691oy499iEXIhe/G5jzKnV vhhELUX7BZhrL6iGyfTuOgbbaaYiT66pbnzbBC50/NspAuK0LKc0YdnJaxdNr8XuZLXh qeSp174VYEs1NnqFgYI4ke4B5SpmQ9uRKnmGhJoD7I/WPeh0/322zDBZQEthi/Ck8+gb v+bn8j0Wgdn5qZK7FgnazntsI3UyZbQvRxTdDKlbJaObbu10CVds9k9bGxN1fR/FB5qV v25PyKcrXp3J/HnXqh0Tjvb9S+uvAkyB/AL9hEeFTqSwyyUrzKiOgGF4IHB4l5yB8Vnd D0vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=t547aMtr; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=t547aMtr; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-189989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57991796fbbsi2021743a12.373.2024.05.26.20.33.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 20:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=t547aMtr; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=t547aMtr; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-189989-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9A9591F21D08 for ; Mon, 27 May 2024 03:33:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED0E76FCB; Mon, 27 May 2024 03:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="t547aMtr"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="UFaca0rA"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="t547aMtr"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="UFaca0rA" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E492F20E6 for ; Mon, 27 May 2024 03:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716780797; cv=none; b=bVcWwfMCll02y7MCMV51u25Ks8XJnS//jkkjztH058s3UTnhlGCV3RCwF95lP9CqoxUfIvF3ZaSD7JAD0F+W50Z7F9DjkD6hmrRWr6RGzaF9IcIRavoo0c6du7KgsGa5cUfo6+Ro0HxHQlEEO1x7lZ+g8YqtiIrtRcg8oBUpCHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716780797; c=relaxed/simple; bh=jXP0S+k/rC7k2jKmWETCgnlEY8baDz5/X7npkE+HsOY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zye4CeiDol8VbNBlgVVZMe0FMzuQOpXIEpfpTCaz6KXYghXWUBaWnxWQUUstw+6MGku829QBj714NGsc+j4ckL1k1DGy5F7/1RQPSLJFnjvqaNql6lwEiZft8MnAWPON9HbcqmrNACocHMHPeV5BKnmEE2OVbE47jQvsoNHaMXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=t547aMtr; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=UFaca0rA; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=t547aMtr; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=UFaca0rA; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 017CF21A59; Mon, 27 May 2024 03:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716780792; h=from:from:reply-to: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=4ULxJHakq8WrIYTmL8w/EKL+mKNfR0R9UJ7PV9piAMw=; b=t547aMtrVMIleC1XNtrb8vE3OfilVzHK2sGEcMgyfIgM3lHjMelN7lTpwBCuxtz/1DysFm HXBtbh+Kfgmi7uFL4Vz37gBFfp16vp7ehy1x4V6QI3YARuGG5jNRLWIlwIQNqNHArBlkVH 3bqLE2KGVgM233lBUVPxPnIJ0RN11e0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716780792; h=from:from:reply-to: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=4ULxJHakq8WrIYTmL8w/EKL+mKNfR0R9UJ7PV9piAMw=; b=UFaca0rAMP/3A6sUQtFPEAIGzOzodCMNoCyBJ8S+P2e2nrtfHI5IhyCpAnJZFNRkDDMjvS W+iul53wtCfVqpAw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716780792; h=from:from:reply-to: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=4ULxJHakq8WrIYTmL8w/EKL+mKNfR0R9UJ7PV9piAMw=; b=t547aMtrVMIleC1XNtrb8vE3OfilVzHK2sGEcMgyfIgM3lHjMelN7lTpwBCuxtz/1DysFm HXBtbh+Kfgmi7uFL4Vz37gBFfp16vp7ehy1x4V6QI3YARuGG5jNRLWIlwIQNqNHArBlkVH 3bqLE2KGVgM233lBUVPxPnIJ0RN11e0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716780792; h=from:from:reply-to: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=4ULxJHakq8WrIYTmL8w/EKL+mKNfR0R9UJ7PV9piAMw=; b=UFaca0rAMP/3A6sUQtFPEAIGzOzodCMNoCyBJ8S+P2e2nrtfHI5IhyCpAnJZFNRkDDMjvS W+iul53wtCfVqpAw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 8C27813A6B; Mon, 27 May 2024 03:33:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id /Y2hH/f+U2agdQAAD6G6ig (envelope-from ); Mon, 27 May 2024 03:33:11 +0000 Date: Mon, 27 May 2024 05:32:55 +0200 From: Oscar Salvador To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Muchun Song , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joel Granados , Luis Chamberlain Subject: Re: [PATCH] mm/hugetlb: constify ctl_table arguments of utility functions Message-ID: References: <20240518-sysctl-const-handler-hugetlb-v1-1-47e34e2871b2@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240518-sysctl-const-handler-hugetlb-v1-1-47e34e2871b2@weissschuh.net> X-Spam-Level: X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_SEVEN(0.00)[7]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email] X-Spam-Score: -4.30 X-Spam-Flag: NO On Sat, May 18, 2024 at 04:00:04PM +0200, Thomas Wei?schuh wrote: > 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. > > As the function prototype of all sysctl handlers throughout the tree > needs to stay consistent that change will be done in one commit. > > To reduce the size of that final commit, switch utility functions which > are not bound by "typedef proc_handler" to "const struct ctl_table". > > No functional change. > > Signed-off-by: Thomas Wei?schuh Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE Labs