Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7764505rdb; Thu, 4 Jan 2024 07:05:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmZcxUA87jqF7WFtJECvTmdIm+07dynqkA5Y8dJzRag2SJPq2PqUB3SYvmshRk6cU1xHGN X-Received: by 2002:a17:903:1208:b0:1d4:cd8d:a864 with SMTP id l8-20020a170903120800b001d4cd8da864mr714618plh.122.1704380753406; Thu, 04 Jan 2024 07:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704380753; cv=none; d=google.com; s=arc-20160816; b=TqwEOELnaGPxGz06tF7A4NXd067zASz5KqhSbT4Cc1dzUqYzAhflkHxHwSPaKWYt0r 0/OgdbUtPpel5oKq9CRVY8oecuKd3ZeaXnAlREs+wSL58ThaQG/P64gsbio1b5dOA24R tj0qljA4ZDKq0+PpSotctODTz50wxL9W1j7enioKYKsizVDD+tUH2suZ6GhCdPkkSQMe dkYEi7QN9Yri/M0m/Eekbes7vWTcmJ/1EWtoK8JcNsepEwmV8ny6l0ncOE2LzCKYCzb1 xny2oug5bffHlpfGK7JToS3WCYqqcSagl/saeLPOcTwIEbX88GMnXbYpYdFAKmWu+MX0 Xvdw== ARC-Message-Signature: i=1; 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=YfynRc6NUjKTR1MsBu1CzE5A5+EMDq+itxyZwvsKBlY=; fh=AuaFKPUwFYzSLqc7bUwLZldSXfNG4AOo7Dj5zlnvlas=; b=lpZHJHtWqm3sJD1CG7P/5kBJRXkHeGYK0DWDLy6aoFt7RWDZs/AwzHgweD5N+4WtXW jK4Q+NY3nrmYTq1OfcjTO+PrVleOnNU/MNMUxDgTNwMbjwx4EJc/Ua+kkmsLSY+YoDAQ 7x50XwsHRG4rFrUzpc7WEMRSVdM9uDCoAWHSftdT0brYzGo+vBpgruD+5D79mTw/I/5H Us3rf2MCu9J58nE3yLbNwBq4kSrXTVLsVxK0pN/yTTdYKBd7XbAqYIU1FsVhSKYwSYNO yKUEPrRkp1zqWXUlnv18awv8K1ycF0ejyvHcLv8yDPDUPLPP1F5XyAWBakTqh4fZ9UtQ KQtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nsW7Rb53; spf=pass (google.com: domain of linux-kernel+bounces-16828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m17-20020a170902db1100b001d4cbf7880esi3930647plx.477.2024.01.04.07.05.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 07:05:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nsW7Rb53; spf=pass (google.com: domain of linux-kernel+bounces-16828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16828-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6E28E282FF9 for ; Thu, 4 Jan 2024 15:05:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D2AD28DDC; Thu, 4 Jan 2024 15:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nsW7Rb53" X-Original-To: linux-kernel@vger.kernel.org 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 987A224A1A; Thu, 4 Jan 2024 15:02:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 2E381C116D4; Thu, 4 Jan 2024 15:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704380566; bh=kgliciL51YFKa3cLHSM4og0/fDSqaNZhyZTq+Oc81TA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=nsW7Rb53KHfAX0Nh6H1jDfG7qvz2Vk73jXi4InvEpj/YI97BDbcPB6OTAqrJ78lf/ 220i2WYgvn/N3OifTztMg+2cewAynAPqsJ1B39cX+q/93lqsNsGEeVhHve4qbdDW2M nPQzY9L6c062vc8T0G5mM0dJc8nAe/E4TolZpra3XYsf9CSYYoNR4P2w1oqmEmZgGL f7rFuCacPvM2NcL5SzsSdEObWlRNWhpg4wj7CqJdhchJ23AzKkxLYPvmrryvnoKvMw 6f72MIwHglHjQcf890Y98Ytdkez1qhRl6M2Z9fGBs0QrtVw+UPjtszG88q8Ntr3wGG skY5giUaXsbsw== 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 0C0EDC4707C; Thu, 4 Jan 2024 15:02:46 +0000 (UTC) From: Joel Granados via B4 Relay Date: Thu, 04 Jan 2024 16:02:31 +0100 Subject: [PATCH v2 10/10] bpf: 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: <20240104-jag-sysctl_remove_empty_elem_kernel-v2-10-836cc04e00ec@samsung.com> References: <20240104-jag-sysctl_remove_empty_elem_kernel-v2-0-836cc04e00ec@samsung.com> In-Reply-To: <20240104-jag-sysctl_remove_empty_elem_kernel-v2-0-836cc04e00ec@samsung.com> To: Luis Chamberlain , willy@infradead.org, 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-86aa5 X-Developer-Signature: v=1; a=openpgp-sha256; l=940; i=j.granados@samsung.com; h=from:subject:message-id; bh=/9ILE3EKbQ2mssrD1gckEhIuv3CDk/DZxHhwPHwwEx0=; b=owEB7QES/pANAwAKAbqXzVK3lkFPAcsmYgBllsiRAKw5WmSLeFL9pLCoRkD2xOQzfyE2LboDw 7ti0+VZZtOJAbMEAAEKAB0WIQSuRwlXJeYxJc7LJ5C6l81St5ZBTwUCZZbIkQAKCRC6l81St5ZB T+WWC/0RXYSdLR/7IJeBBz6p9iDgvsYnr/AK9k7hr4RjLa+NqM+EVZaGeryYzNo/F6bySHxjVV+ yCo/sJQztfLOk+xflQF2dbpXVxt4E2GLVXuzPa+t3RnJ/cokx39+4aHygNHzHx4X7xtFEvvdWPE YVk42LgKRPB0L4ZZEMdIq9tHQW7izXPTf7XufBrOUuryFzhStFPaSm4t2vvYugAcHr8nv6Hgvwh zzkB1CJ9WSUqizPTWcvGMxjZm4SG0hxwR/jMkBM/dBWo47XY0GEGmFQPP4NKjklcQd9cfe+lMbF kcnj6FWGOkQmGQLiJCopj0UaNyI7NQmPXqwoglLn3oRUWHv+aPmaByl4Rfau9iD+RIoikEzC0nC NjMbYBfS70oxYAs/nrvCxCOVlp+4t6AS9h1QjsxPffPDrPS8ODiDJ63K3YJQNWZbZdt7xr0CPK4 2RvIJDb3eOOIuAZ/+bSDks7jIt8APRQGbZQOnG2Qr7X+GYIMUcQ92silNWmLhqTEEi6ko= 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: 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 sentinel element from bpf_syscall_table. Acked-by: Andrii Nakryiko Signed-off-by: Joel Granados --- kernel/bpf/syscall.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 0ed286b8a0f0..2790deabf639 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -5727,7 +5727,6 @@ static struct ctl_table bpf_syscall_table[] = { .mode = 0644, .proc_handler = bpf_stats_handler, }, - { } }; static int __init bpf_syscall_sysctl_init(void) -- 2.30.2