From patchwork Tue Nov 7 13:44:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados via B4 Relay X-Patchwork-Id: 13448707 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 6165EC4332F for ; Tue, 7 Nov 2023 13:44:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 51C6F8D004A; Tue, 7 Nov 2023 08:44:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 310938D004C; Tue, 7 Nov 2023 08:44:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F18B88D0048; Tue, 7 Nov 2023 08:44:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id BBE5E8D0049 for ; Tue, 7 Nov 2023 08:44:51 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 93A171CB676 for ; Tue, 7 Nov 2023 13:44:51 +0000 (UTC) X-FDA: 81431278782.07.3D6812C Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id E87411A000C; Tue, 7 Nov 2023 13:44:48 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=oFTJ5WLB; spf=pass (imf19.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699364689; h=from:from:sender:reply-to: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=o2CaxK92zok3gBzSEBzraG1QRD0Qw4c4lnLmPOAYs3o=; b=hVoLxJigU0fXyfHULKEYSwumzD8cZZN/qaZnNOr4TNWO2iVI/vLh9RREHQSotOf2CGlTgl qyFADGjfjiCvyREQDgbLCtrMAu8bY0pMRU+CIuVGhVhZRxFw/+VBCe2AqprKWgI4syTfdS YJVRZZHu10DsGWUFkhFrZW8MzfPrByo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699364689; a=rsa-sha256; cv=none; b=tqjUgheaZwqZCqGkfOhGWAiHFtPLAMqxySDTrUtN7dsINos47EHdHTX5Tthz/kJ+7PCRl+ ck4AnqRK0aemXaIA4IfRtxdUy2mICNkWNTNb57Vkbr2aq6p+bInQnM4IMRcQjZ91D1rQlH 2OaISXF7yJDAWa+GxlLIUQDJcNHhTZE= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=oFTJ5WLB; spf=pass (imf19.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AA46861224; Tue, 7 Nov 2023 13:44:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 936E0C4339A; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699364686; bh=Xj/qeNJ1fWTZ5t8tG8CiKkqyjuOspbgdeEVbMKEatVA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oFTJ5WLB7vlFQRcquJ5uh9QbuamVM8WKMIV/pw4Xd8rfT0VxGp+9nySvqMUfIT85k jeZzDs7dDrDim5hsFqidsuy7UIvV4+jJ8yJeFGlLV83K7sDhPAon3CEgZJe28WiXU/ LCCN6o2VK85ipkpLoSjRiVG2tzpPv+FOSrsO4eRFSJoUoW7g7aTr0WMK1wrFzoVIf5 eUzraECuGYMnOa6MdeEofoNcsrUFgxtcDEMxuGxEZdMd8h2zRy59/0RLFbWB8FzaES /8eIG/5UkIkvcZK0M9b80kKzZcpJGZWOqfOTinUOONpBFnwDeWlR8PZXMrAKgx/LlP VeXIYRw5LcYvQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77B0FC4167B; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) From: Joel Granados via B4 Relay Date: Tue, 07 Nov 2023 14:44:22 +0100 Subject: [PATCH 3/4] sysctl: Remove the now superfluous sentinel elements from ctl_table array MIME-Version: 1.0 Message-Id: <20231107-jag-sysctl_remove_empty_elem_fs-v1-3-7176632fea9f@samsung.com> References: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> In-Reply-To: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> To: Luis Chamberlain , willy@infradead.org, josh@joshtriplett.org, Kees Cook , David Howells , Alexander Viro , Christian Brauner , Benjamin LaHaise , Eric Biederman , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Jan Kara , Amir Goldstein , Matthew Bobrowski , Anton Altaparmakov , Namjae Jeon , Mark Fasheh , Joel Becker , Joseph Qi , Iurii Zaikin , Eric Biggers , "Theodore Y. Ts'o" , Chandan Babu R , "Darrick J. Wong" , Jan Harkes , coda@cs.cmu.edu Cc: linux-cachefs@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ocfs2-devel@lists.linux.dev, fsverity@lists.linux.dev, linux-xfs@vger.kernel.org, codalist@coda.cs.cmu.edu, Joel Granados X-Mailer: b4 0.13-dev-86aa5 X-Developer-Signature: v=1; a=openpgp-sha256; l=1106; i=j.granados@samsung.com; h=from:subject:message-id; bh=ep6ig3KsG/haTwVjLCKKm4Kk60+leb3CQTaGMwbdTjg=; b=owEB7QES/pANAwAKAbqXzVK3lkFPAcsmYgBlSj9MqPIIARlpG1B3CB33QBqVpFDk5COfTwoWh HqFk8BAtBKJAbMEAAEKAB0WIQSuRwlXJeYxJc7LJ5C6l81St5ZBTwUCZUo/TAAKCRC6l81St5ZB T8o5C/9te1uxNMdDRUp6GfQqK8yJSbjVLxDs0abTPfEjp57TX/AOdFOmrwiXgdAGkwDUpVY5rKg qp0gHNnyXGtehooFW3SxZUwwtjPSVXxpquEnkv8gCjhenPHbGBAmOakMeL/KnhQXmtTWdZmkUDx iQU5SlQjl1a/Gz8IFzQ1MUTKrwEwlvA6K1ytVD+PbkS+gTi8OuUnZcIYG/2j/B+n3xMKoPjIjq2 tda2fAiMgQpMxzcedyBjpK3EF4br8IF9NRBk+2eRARZ4TZBQbe3+d8x8c12d6nE8l1Dl6+v8XmC bF3irI5j7i0eA+ybQNI9qLEKv+ajjVTiVPDvndJhtvbFzP/002Ok8AvVDXnWNAfiNPPCg561Shh 0Fa85geyCxUZXk6Kn1GwDdUYeMmie6vRU3YJtYdyrXeujBUHq5VE2iTh29hNEoI5869gs2nrZBZ h/Kx8YXwlg4ru1KYYeSbg04EcMK0N8fGC5qDPrdmtWsu3hksyO0KsYOGOz4r0PfP2pK9E= X-Developer-Key: i=j.granados@samsung.com; a=openpgp; fpr=F1F8E46D30F0F6C4A45FF4465895FAAC338C6E77 X-Endpoint-Received: by B4 Relay for j.granados@samsung.com/default with auth_id=70 X-Original-From: Joel Granados Reply-To: X-Stat-Signature: eewkmyjfsntoamaonimqzx78c5zz6e1f X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: E87411A000C X-Rspam-User: X-HE-Tag: 1699364688-884535 X-HE-Meta: U2FsdGVkX18kZ2u40iyE5aL8yNrEBD/UietHH9pLgHp2bNPTGgxeVHmLtbAsjg5g2jNJGXGZ4wdJrpBIOYk1P8CqTF3RS6giTOJEfcVWxEuPSBKqiEam2PgZqz1pCf5HzPQxCA2FOxE5dukq6oNBvhcQwaWV5w8lo8QCYY2TjVozbQ99YSYkTSyyVFEZTlNIyEWlvGhW9uPU/NBQwasIqKbJlBVBRp03X4aKTJWwF1f3MNpyOaeGOGk/zaM5mg9XwXVvAkM+DPkqbRv4AYZEqEh43GDvy95lscKXHDly71dN1KFyCBW8qaNj4M2fLSwVY31bzcdiaAepKydEQlTVWOKaNipbPs1R5HVuoKxq12RjicliYaCaxbNqWI/BDCRc/+eWr7Fo/c3PP4TWKmfpAS4++H9g0SJIVZHTVYfK/8+OYpvTSpjAIF2lHCanGikNqT/iH9m1yqSuYv4rH4oAfyr0p9AH5ft2eRpQez8ySTAUXDuzNz9OV1sK1OQSG4zEJ7xRiwmjpZGc5MseIZf2g81Z7K+dg2rhzl24tPnw1qj8zFgfJxOEZnrwRSNoQmINOa2I/cXfqQb4vR9u59emN4npaVPxO1nN9I6gU6EUo+E9IW9zRIrtzrUOteQPue4YeYr/fmhUPErEa5YFcY17ELEFJp2QDBsqcoqqkVz0RV5p6ZkelMfseZwF/43qBdiec2VeOiOTNxZ7fuCPh+SnQIh325jwh0bIaU3Sks2THPeeOJewT9Sk4m8uL5h7u7PeSqF1+i2mg440HrE0sJCuW5VTHoZMoV0cnVxX8C6+Dkie84XLNDmPlT+ITIrH05a3sWAbM02SoaAO9Wi6LTzbBRKDyNJRrJgnTy5S8Z0dTWKpNzCfu6M50lMmg/X6/LSeGiTOFybsgMsD83yrJWqLXH1f+JMDsRxyUv0Ef9/OQErMvocjMgKTNT1+KkuvJDy4c0AO8ofaT24qqT5NqAV wlNJLErx ryatgXD/c2l+Lr6o0MBLKqAIfZfEb3Q3lfwv3ggm0twQEZhSW3FR9zhW4oY4nm65Cu1Tfw6JvFudediHdgi1SVCxkeaYTSCiNVliF1wUdN9h8kipGzfomOp5bXBMjxgggbrGP3DYqo29Je8sERsKidjigOQNLqpySwl0cZtReGkSQUUwL3Rt0BuuLg1NQLSFTKh3oLFv7LkIwF65kKd4QoC2wjSY157hJKNNUi+Vy+KKz82nylcOTPhMuP8PVVvQHb1UMREROVagfmSOf33bqDDTrYqavW6ux3y0AGZJowoHUXcrrIeMLRrfD2j6MtS9YcnFJgzwlLvEeP+tMuaqRpVg6oqSt79/IW88yoKTkFsGi51IcqUu8Uijv6XjOR3Ed5MlBHQ80hqKzPfUwUwtWq5eJcXFPEjpJI25TDPHUf7YS5rtbm13ds6ZX27n6ui2wAuKL99rtJFZ1QxItCR+0bfFs/g== 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: From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) Remove empty sentinel element from test_table and test_table_unregister. Signed-off-by: Joel Granados --- lib/test_sysctl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/test_sysctl.c b/lib/test_sysctl.c index 8036aa91a1cb..9d71ec5e8a77 100644 --- a/lib/test_sysctl.c +++ b/lib/test_sysctl.c @@ -130,7 +130,6 @@ static struct ctl_table test_table[] = { .mode = 0644, .proc_handler = proc_do_large_bitmap, }, - { } }; static void test_sysctl_calc_match_int_ok(void) @@ -184,7 +183,6 @@ static struct ctl_table test_table_unregister[] = { .mode = 0644, .proc_handler = proc_dointvec_minmax, }, - {} }; static int test_sysctl_run_unregister_nested(void)