Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp530884lqh; Thu, 28 Mar 2024 08:46:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmMKMRysR2tcBGs5JOciCwijkoyqtUoeecmameGDQagnua1t4JKZNmKJSPh8IlC3FXMDKz+46mt4GCxhVyU8uDTKllmULttKq4mcULSw== X-Google-Smtp-Source: AGHT+IEqxlW2MlsiT1gU0BaqVzYyi6sgfa1tl58BeoRcT2Q4sHtgbSn/qWq4L9O9qAJGdvqiaz2S X-Received: by 2002:a05:620a:844:b0:78a:397b:86ef with SMTP id u4-20020a05620a084400b0078a397b86efmr3430141qku.37.1711640790489; Thu, 28 Mar 2024 08:46:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711640790; cv=pass; d=google.com; s=arc-20160816; b=srEpffU4HUQ1c1Zn9zfAKJPI0FdMQlOb0ma4nQitzzfWiWaHJyfZPsIhXFBDMZJr2K pFEBzVGFKrjy0MwAbKx1Y6GkqE6ed9/2GJl9pBq/1+HqLuRiL3BHd8miIF2OU+6UgtHI lEbUaPXTvD5t8QtKVaunxpvSXYVIMHGl/nxkMF4k3DWsqoxovfc90Bz3U6uUe1hhr1bR Hz+C56kFUfwMAgN4ndsDDtrjZidneF6RTqEZlSiYvh2MrVoT2lEtHGPLxshlPCDcK9Sc T4ogocSGoiZHkT840jCCuFiE55+NcOgHe/OXjX/uORJrOcI5/c95g7qtvOwELw/VjEoH b48A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to: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=KhTeGdyS0b/NRabMTntWlNdoYEgPPIe9nuuFAYemqEQ=; fh=8sEP7PoBw7e4O+S+A/hMUPL5KaSQ94UIL1REULHwRR4=; b=XLUBgDW2pQnHZnjagi5OEPj8pFpgjiVRHc0LugxEKvUPX6N7nCbZtJDxVhkAU968fF +f5D+i/CfkRc5e6/V+Dux1nGSFFjRYHztC3B9wJ3oG5hkGbwz5HiPjlJyDQPqSJVq5jm QyyWfNSBO1r09RySyHw4Uitt+HmzIEL6109Ww9/ZSoYtsRLKgJ7WLjpTfcLkclo6kQZz S6u+rY6+Rf0mTa7wSpc6icBXGapI43/EqS4zMCEwgM0m3ABSy3nrQWG+pWe7CmPME3n7 kQSJTAiPfuFdlzp/pfWHtddk/zWwJSSUf0X8rqGa40jgvlZGppV6YPjdx2AqzKwOW3Kv ukSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VD9M4KpR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i6-20020a37c206000000b0078a100072d2si1629183qkm.3.2024.03.28.08.46.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 08:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VD9M4KpR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1A7141C2E94B for ; Thu, 28 Mar 2024 15:46:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B19C7137C37; Thu, 28 Mar 2024 15:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VD9M4KpR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D14751304AB; Thu, 28 Mar 2024 15:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711640657; cv=none; b=b0/1X7hJ5JWmwrfESYUlvn2pwMad1Yr+qIyXbgkwW/smOeJkrfsuMl5YCv9EGa1O2+hpDy1skB0layiplj7QMCwm7LcAwSAJQJr8sct7ZItKTfpWXn5QXFC0jExxxUVPeEjEtIkxcRz+8uS8yO552g9x8ra2hr4nB9tkzAGdQa0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711640657; c=relaxed/simple; bh=gVjX7kZuMI7PWnIkwvFQDdKgNrPSlsBI7m23GDAWKj8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RN+2lkL+lHyqMxIx1jYRljl6gq0KULjUTr/8BBsdJxi9wBgBnAESwVKvgK+DLPf47zwxNLRlwdo+Evx8I5gmGRTn/eOnPyzyjFq059WUDk2kl1qD5kP4Vq5oz86D//aYzjCSA6URQq2UWOY/GVgw+AnAWqtfWSiNc4CsYDBZbpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VD9M4KpR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 8C601C32790; Thu, 28 Mar 2024 15:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711640657; bh=gVjX7kZuMI7PWnIkwvFQDdKgNrPSlsBI7m23GDAWKj8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=VD9M4KpRgRABtXgErWUIa5WvPi+7lEpxfkfoIeX1VZ4mxRQUKk6QQjkTBW5uqmK0d +hBvwjIWMDCYtZ/SEu0kQolGCuVJFFrylBR4ocX+dD3MlW+lbH4tEcKu7vH7FI1o9R DrKg13bZQ+Wg2kTVNKlgtp9reWd3bSGbYoi0sx1X58ILgJLOl8y1Eqr00HIiMa6cSv eH9g+lOUkqBottzJ5Iq5PBSIoi1dVdFQlet01MGS3uvwm+3R8lB0JyZOd3M4+tIaQx P2j9zdse9frbejoPJsG6LrbLjKrHYgvqb6FdVHIlo4oBMbZCc/qhqA0NFofIvQxDDN yOibrbrT809eA== 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 817DBC54E64; Thu, 28 Mar 2024 15:44:17 +0000 (UTC) From: Joel Granados via B4 Relay Date: Thu, 28 Mar 2024 16:44:07 +0100 Subject: [PATCH v3 06/10] scheduler: Remove the now superfluous sentinel elements from ctl_table array 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240328-jag-sysctl_remove_empty_elem_kernel-v3-6-285d273912fe@samsung.com> References: <20240328-jag-sysctl_remove_empty_elem_kernel-v3-0-285d273912fe@samsung.com> In-Reply-To: <20240328-jag-sysctl_remove_empty_elem_kernel-v3-0-285d273912fe@samsung.com> To: Luis Chamberlain , josh@joshtriplett.org, Kees Cook , Eric Biederman , Iurii Zaikin , Steven Rostedt , Masami Hiramatsu , Mark Rutland , Thomas Gleixner , John Stultz , Stephen Boyd , Andy Lutomirski , Will Drewry , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Petr Mladek , John Ogness , Sergey Senozhatsky , "Naveen N. Rao" , Anil S Keshavamurthy , "David S. Miller" , Balbir Singh , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, bpf@vger.kernel.org, Joel Granados X-Mailer: b4 0.13-dev-2d940 X-Developer-Signature: v=1; a=openpgp-sha256; l=3002; i=j.granados@samsung.com; h=from:subject:message-id; bh=TWh9TuMajQbwpEGtTF+wfs10qNacRT/Hf3NmiG1BMFM=; b=owJ4nAHtARL+kA0DAAoBupfNUreWQU8ByyZiAGYFkEynYXoIAQWrn9RSkVuN1oDKcT6K7ddL9 r175YqnwQi9PokBswQAAQoAHRYhBK5HCVcl5jElzssnkLqXzVK3lkFPBQJmBZBMAAoJELqXzVK3 lkFPw8YL/058ijl6P2cbK5F3qXxT46bTWrEthlZGmGZ8GJYJxt4w4xxd8ws4Wje+Aw1nnq65B80 PgTw5N2evkT4xbVdmzguiAFOV2R1xjsSqXAsiymjn6+12byqwBZ2CL/yUesbGlhNF9ZpEYkvomR UFyGDVpV6/obod0u2yJq5mBZgdOauAyG669hxOqBNQPyOJ5yqK5kg9tIEJmgCjXYxhQ9fpOpVKa hAee3Iiqo6anJN8l+RYFDKloqMYTAtd4mZ8eNWvvdB/VRSetLQV7tB4FSJK2SvuW7rqVdjKzKgw RcBa68tzq10aY9o2fwzevUDqXyocoLnKC+QGKO8wFVvSsJ5qjeDwQFFMd/g7t7uLtz52CtsGGGo VJeEgdMZd9AIieQae0ZN5MBM6IW51BVFgsChVRzlNYdLygWCLaLEfQDVtwGEDQPeRXQhD4iz7ox 0ACl102QmSZ4bmC7+wBUg57bX1BYOZlkcp4j8IzzwEJHPPr4lX6HjUkbhb2mTj9INErNAkTEym3 jI= 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: j.granados@samsung.com 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/) rm sentinel element from ctl_table arrays Acked-by: "Peter Zijlstra (Intel)" Signed-off-by: Joel Granados --- kernel/sched/autogroup.c | 1 - kernel/sched/core.c | 1 - kernel/sched/deadline.c | 1 - kernel/sched/fair.c | 1 - kernel/sched/rt.c | 1 - kernel/sched/topology.c | 1 - 6 files changed, 6 deletions(-) diff --git a/kernel/sched/autogroup.c b/kernel/sched/autogroup.c index 991fc9002535..db68a964e34e 100644 --- a/kernel/sched/autogroup.c +++ b/kernel/sched/autogroup.c @@ -19,7 +19,6 @@ static struct ctl_table sched_autogroup_sysctls[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE, }, - {} }; static void __init sched_autogroup_sysctl_init(void) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 7019a40457a6..7ce76620a308 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4741,7 +4741,6 @@ static struct ctl_table sched_core_sysctls[] = { .extra2 = SYSCTL_FOUR, }, #endif /* CONFIG_NUMA_BALANCING */ - {} }; static int __init sched_core_sysctl_init(void) { diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index a04a436af8cc..c75d1307d86d 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -43,7 +43,6 @@ static struct ctl_table sched_dl_sysctls[] = { .proc_handler = proc_douintvec_minmax, .extra2 = (void *)&sysctl_sched_dl_period_max, }, - {} }; static int __init sched_dl_sysctl_init(void) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 03be0d1330a6..4ac2cf7a918e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -157,7 +157,6 @@ static struct ctl_table sched_fair_sysctls[] = { .extra1 = SYSCTL_ZERO, }, #endif /* CONFIG_NUMA_BALANCING */ - {} }; static int __init sched_fair_sysctl_init(void) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 3261b067b67e..aa4c1c874fa4 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -56,7 +56,6 @@ static struct ctl_table sched_rt_sysctls[] = { .mode = 0644, .proc_handler = sched_rr_handler, }, - {} }; static int __init sched_rt_sysctl_init(void) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 99ea5986038c..42c22648d124 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -322,7 +322,6 @@ static struct ctl_table sched_energy_aware_sysctls[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE, }, - {} }; static int __init sched_energy_aware_sysctl_init(void) -- 2.43.0