Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp534403lqh; Thu, 28 Mar 2024 08:52:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWW3x3aUJmDAQsejmBzLaW/KMA0mLfmu97R6qEVklOlyRAUZwaFyARPPV1IK85YbZ+YwwbK18F0usdWcrLwSSMIfw0a0B4vVAbpiw09Aw== X-Google-Smtp-Source: AGHT+IF/ItU2YYjOCAznt1xMLVaoe3xPgUViXui2Xg7nqvvSSJTRoTn2q8+X5a55/07an8T5z9XZ X-Received: by 2002:a17:902:a386:b0:1e2:23d2:a855 with SMTP id x6-20020a170902a38600b001e223d2a855mr922813pla.28.1711641150079; Thu, 28 Mar 2024 08:52:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711641150; cv=pass; d=google.com; s=arc-20160816; b=AawAJngb1t5FO7j0dSFtTxydUoUqKMXHONRWhB/9irXb/uCQI2sW7zuFe+P32yuDyk UAhRYb3m39aqlGoN1MiKsXZ5R+BJCUuzp+fG1+gYDkWGzNs1SzgahSLymNg3M92RYNdA mXt4axb3wlnsVBBu35+P2OsmLllaY+HzY2YjI7caAdo/39L9KWKqoiBhri7yVIDx83Ss eoob1Wp5REdE7HzBc7jzLm3p5qG8MvpUoWC7kAUbBGSWqWAGZCHiQJ/XnMv+IpcJoo/A WUxVxcadTdjLT2BrjNNWhgw/LtiNBaTB8TRiWBMfVsIWnv+UpiBQzhI0yG6+U53uxtRM 1T7g== 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=GLWxvSkQQ3agaeYDzn+mW8Xor6tyDJkYGhUYUIiFoDM=; fh=8sEP7PoBw7e4O+S+A/hMUPL5KaSQ94UIL1REULHwRR4=; b=L5T9CnvdoNA9YDbstAf5AQQMUPHd2IIs5u0iqxac+Jkie444vmBJObipFG9z1z4Ivc gZCnswuQS3nTm7VJdl1qlsdhKRcRkLwEK5tRjmSYJI3TkQdRCH1Pb0Yev7Tmj7QZjol0 C+qBeH3ETwjqVyAFSi7Wm+9E9iT2pD7AXVYXF1Wa1HuQp4sChBC7Rz00r4xZO5LizA0r /sZpr63jzCrbv97r5dbxMCgKiZryJJW201NrtfcxWoQkXI7ZtYQIns1AEfIv+FuHSupj 3oVFlMjN5L4awHj0MpTej9/TW2MP0HH/sQZDNR9FzHZAmBwrJRANoqmhxB66mnC1hSTX P2pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PHjHtUB/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w22-20020a1709026f1600b001dee5f229adsi1601338plk.122.2024.03.28.08.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 08:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PHjHtUB/"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123182-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D1443B2356A for ; Thu, 28 Mar 2024 15:46:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF6EE137C3F; 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="PHjHtUB/" 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 04F09130AF7; 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=1711640658; cv=none; b=tAHbxDhQoQa6TsjvCMuv28KJlFTrqjX5SFq8udDxDV4o8DAAbrIzZSt77jpUMsBzlCeaTDB3MkrSsXr7kOHyZa7Bf985V8XzLXm9SmZFUfJTqcsG+nR1Ccx3Vcg8xypKKHuC0MW1ZI2AfEicgX5lbCRnCJJPzmP9crqVqnN3IfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711640658; c=relaxed/simple; bh=OXbTyJl1vxc5TRrI32eYdOeapjZ52ijf4K6v5tuEd7I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=doYuGS1XFtYUQi9/AL02FSOsVi8H8HZiXUMMdVSgKmrdEWjB1aEi6vCEWZQ8K6WK/MDAhv1cTbGPEBFUmZYH89VaLU7/rZB9kjgSXKgXmWjnwpiPCfbRmMfnYUjkGO8im7/ZQylRV+Uz5Vx9xIVT7flcOj37EVSgOHZ5E+sIM+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PHjHtUB/; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id B0B07C43399; 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=OXbTyJl1vxc5TRrI32eYdOeapjZ52ijf4K6v5tuEd7I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=PHjHtUB/CL+hgc6AU4LraLMdcpGt7+AWeVSexEK3/rodPd6YNAVXSjAkP+Yh76B0P IacIso8zESjrg3Kdi8KPWUOQSzLQRr6F4vKVzeBuRGIheNyXslnvt3iPl0y55YC4Gm OSDLdS9oazkN8/BcHrDPh1nfTkCFzQ0KFE07Jz4FGC46SaHJ6MvJe/AcmRIog3fAWQ zuVe3SpvIITQN0ARO3msWdaPNLDjWoxDKiQcINA2rMETyEnzBNHi6e1CeBKWV+4p0o fnVV1+na6klELlIxTqAu38AdcdcUZIHfC10oM349nj4lh3rH8MnqN+i2tfXzzVfYM4 zNvaFuZBBr3Uw== 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 A1A98CD1288; Thu, 28 Mar 2024 15:44:17 +0000 (UTC) From: Joel Granados via B4 Relay Date: Thu, 28 Mar 2024 16:44:08 +0100 Subject: [PATCH v3 07/10] printk: 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-7-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=918; i=j.granados@samsung.com; h=from:subject:message-id; bh=dEvSs5Sk09Mr38w6TQjFck2BDsVi8Y4KzQNb8dQHQ2k=; b=owJ4nAHtARL+kA0DAAoBupfNUreWQU8ByyZiAGYFkE1nrrtIzi/mbTRBEt4ncdh/MX4YK+/zN V1PrbBTKAfDkokBswQAAQoAHRYhBK5HCVcl5jElzssnkLqXzVK3lkFPBQJmBZBNAAoJELqXzVK3 lkFPNWsL/3Vy959WXECEg0VHaMhwRrdeyk3YtyYiGM7YxZsqt43CPCmlwvOEGQSSNRe1pS5OSMs as4xeTTv4VMjZ8J2nmraoc0S/8dF5jnJUIt36P+mLuUuANd4o6Vj5TtZACS2XscOBqTR1cAn5fW fMOpEQ1Qibjc3TKzJa4nWCI1s2sQZdd5pmM6Z6bTS6xkoEC0M+mOj3xt/S+8Xt4QCjBqSZsXkMR 7Er9xP7PA6naseg7YghqEaY5h/1ELMr+jA+csTHCkKXTtwzySlij4bwqhgZQz1iLXfik70NXeeQ Stj2pa/YCAGbF9OIHb6NTcbeiwGBweGC2BsLkn9+pE0Gh+OmOfGbkApG5e9Ugcf8deJxVCBIPGN pJXIl3EVZHAKah/Gw2pcPZJsStYJ23zXwRNG5yc8db2L2ivpaMfUlVk8Hj8MN/nJ47F8MFJVlp0 VMmcsLlYqBx/9NDO/CcWbF6+c2zvD5PSszPypQOR7kOGo6DboCX7ux3FMIrrDqgjTGoEtK6hqh5 +4= 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 printk_sysctls Reviewed-by: Petr Mladek Signed-off-by: Joel Granados --- kernel/printk/sysctl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/printk/sysctl.c b/kernel/printk/sysctl.c index c228343eeb97..3e47dedce9e5 100644 --- a/kernel/printk/sysctl.c +++ b/kernel/printk/sysctl.c @@ -76,7 +76,6 @@ static struct ctl_table printk_sysctls[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_TWO, }, - {} }; void __init printk_sysctl_init(void) -- 2.43.0