Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7766491rdb; Thu, 4 Jan 2024 07:08:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOIZ4hCUaFN5i2n1r1YyGaEyK4sfpU5Z57wvyMLOh5hk9fvsqucjywBxPJ51l0RxM1L1Qy X-Received: by 2002:a17:902:dad1:b0:1d4:cf36:54b9 with SMTP id q17-20020a170902dad100b001d4cf3654b9mr743717plx.0.1704380898961; Thu, 04 Jan 2024 07:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704380898; cv=none; d=google.com; s=arc-20160816; b=vEw5ofmUAniJ1RTpiEbuX0XMFay6p+QthE6giF8o0zAOdkLn6b9IYhzh09Nzy3prSM VLDIadnmn45I99TyBy4OlVfisFz6judOLPPFQtSiIoEu4drW6w8WxOtkaWKOVznFWNr2 7apqTXPMwm7M2lLb6vUgkgI7/kbgTN9cxaUuIXpjUnzsCWaZxQqCMRlYE/isjfx2Hz41 yv1STS13JQKUZeG7PKqfWtJzkpqsN0AKkgnnstrO5xLYgrMa0q2VFCY8qNFh1D+2M1Ec FlrWWv2AUYskZToIiYTXJodb/zjf3fL3W0IgZgIzgk7pdeQTu8/PwTUptHIaNaBE4/ir 2QrQ== 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=DJfOi3KJlbbjWdg2fWy/n99WcSpMnaBwE5d4g0qErME=; fh=AuaFKPUwFYzSLqc7bUwLZldSXfNG4AOo7Dj5zlnvlas=; b=pHgiZ9GgzyTi9CFfRzDWMzQXXIvTmKjcO3LXgmO+kOr6gwpuuhQilFHsVRDnW/y+C6 p2gaTzTAhopl+UegVqutFs6JzZynAecr3TklK6k+UFuteaJnMPH5chBgw//PO/s7m64V rHNgRx2D2sBRcIguBaaVR3cY0qMvziAW6jjNz4i0+eAOKdc/8ONZ6Xb3/N922UE7sknq L0Idd0aUv5mF6hqh6c1K4MivBrsideIRToMOutKQt4uBItAiylDfKmQ3/T4LzNP0VnYX rTzZ47L6ktITv65/8GLC0TguK/RYzFb9eBCCBr0qrPugZhGwBMdwT2sg45Ff55ITyrpy F1LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UAp4wTIS; spf=pass (google.com: domain of linux-kernel+bounces-16825-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16825-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 h14-20020a17090a470e00b0028bf7ab5a92si3205274pjg.147.2024.01.04.07.08.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 07:08:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16825-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=UAp4wTIS; spf=pass (google.com: domain of linux-kernel+bounces-16825-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16825-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 DAAD2B247D0 for ; Thu, 4 Jan 2024 15:05:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C750028DCF; Thu, 4 Jan 2024 15:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UAp4wTIS" 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 1D19624204; Thu, 4 Jan 2024 15:02:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E38F5C4339A; Thu, 4 Jan 2024 15:02:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704380566; bh=hlpr7Rh+WCSWMT4vZxE5w8t1/XHYkmxcty9BVrgA5A0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=UAp4wTISxqEeHyNEIjRiawNX/l+jcpNqpcCxfYCi/uyU6IpNgqfxDEPdXp8jQAPTE rXiYkApR4Ein2T0t660Tdj94d+UCiO2acXlwYbybyM6K3TllUro6YsWElcBkP/xWV3 pkCrArgmNm6HKQR839uwOOY/10AOmGfdLpUlAfxZocE6kAqaits9ONytq+bV1rAvaS Gr4DhA6wptyBsiklIax2dzI2lTyfNPQ7zNZOw64eMKy3GwGrorYldRSVwUrutAwy8i ITR6FKGdNa67spj3UFTuMbRbp3CFHszYot/VKygldUe4+2kPFb7fZ1D54re89YcsiZ t0kJYZsqtPEMA== 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 CABB0C47074; Thu, 4 Jan 2024 15:02:45 +0000 (UTC) From: Joel Granados via B4 Relay Date: Thu, 04 Jan 2024 16:02:29 +0100 Subject: [PATCH v2 08/10] kprobes: 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-8-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=918; i=j.granados@samsung.com; h=from:subject:message-id; bh=FiYzuIbbWeXBQHZeA3GrFUV/zI9p1hTad6YxElqrdyM=; b=owEB7QES/pANAwAKAbqXzVK3lkFPAcsmYgBllsiRzlHx++7qX5DJLAjyT9FV57SLtpIJfK542 Gd/fl1eMi2JAbMEAAEKAB0WIQSuRwlXJeYxJc7LJ5C6l81St5ZBTwUCZZbIkQAKCRC6l81St5ZB T2v5C/9aZCwJBbBJFZCxSxXP12RwuKG4iNRsSt+9zCv6OMNW2X4kB43sueFjA4qzWwZnSovZeGg wQOvlrexE2JP73SoWmkYIAwxcbZaeHKZ9APA5fFKcA+C9pHJHuXxUy3CyCn4mcNyHNwAuMGmX02 OAJ0EJhIPn/wnL2DziGAJxmUnEofZIElsAUyyb1UP3OmA1DkABVq4o24Ns6M1pZzk6EZMijmhiW AqCbdpycbAnHN6p8d2C9hdzknOznMMq0g3SKI3VcbGgWDIpXsFKeJujblUsj+sHhsFKDxx+41Ls pIgXKhdZWSxsHu84PjQ9xRBF+pgxfgHK7mRJmLRt1jctCQ6rs+FmqVT4QdVfNzbD8JvbdZnWv3k 4clJTrKL/x5kAgVSbrsBWMD5TNk383518cCzwncVCZ9MAp20BaTLB5kSM4jw3NbR5RB8Wgb/Bh3 b4MUj7eKVgRiW464WC5sJkDVqZh9v4b8JwcX50ez3xZdpcNbAyFCH8nz4Zs/a6X1N0QOE= 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 kprobe_sysclts Acked-by: "Masami Hiramatsu (Google)" Signed-off-by: Joel Granados --- kernel/kprobes.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/kprobes.c b/kernel/kprobes.c index d5a0ee40bf66..1e0ea688cf7f 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -968,7 +968,6 @@ static struct ctl_table kprobe_sysctls[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE, }, - {} }; static void __init kprobe_sysctls_init(void) -- 2.30.2