Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7640506rwd; Tue, 6 Jun 2023 14:02:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ERcvdr1I0dmAF0tnUGx188QfjK3AIZxt1f1Hn53LcohsgeZF7Px55fbkrY4gLbCspL5KI X-Received: by 2002:a05:6808:303:b0:399:4061:75f5 with SMTP id i3-20020a056808030300b00399406175f5mr2993262oie.29.1686085367266; Tue, 06 Jun 2023 14:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686085367; cv=none; d=google.com; s=arc-20160816; b=QFNeG7tNGh4t3No6acKXWsUc/yYGhlxYYkokEVYdDDaP5gYp4N3zME8QmFttXBR+ey oF7+XeneCu01sXy6HXe7+Nh2xy9vcuzHlN+RWyicbzCBbJ+63jMjQVofxOByw9ArGD+9 sHQbaiBDguLTXr6fGBPlIuNm+7auHM6PCweEnBwL3UcTtnHZ3erQPaQuR3asfIv4Qco/ mIHsRw9Zbvz6WFlwnvhRpK6prEnLWVtRx0ymb6hq2RslAsWYsdEwpZGwxTQLXG2mH1SG xZH9xRxh6DCqhNAnCrkldnjWzJU+f/4gHl3vqPlGo4P7Hs+ce9h+yeI1URBdPCdfG8Rb Mfbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=i1Zu7HjOVU+m+OfAOZf1u18I2WdOG2SThtAlWUgsjHM=; b=FHG13KhnMLEUiJ1bIkr4SZKw7xsVpiSL7A4NT2bb/VPDztMOkEaX0WfbFwX76nDXBI 5ZODRYLJzt2amNhu+ra070p9/bafU0jJf20fq+cTWvikUaCrwV8SyWwnrIy0IvC+51Sd wUq6f+/Tsc0BpP0S/9F+2wUvr5ygSd+xToi6BjXe2N1vF5RaCSjiqL6gMXgGNlBj5s5c 5M/aBOgY20J28mDdoU8iC9oLo/zc0D9emA6P/+3MgWx46LifpPuY1WZrak/pFHPAN/tm tM1NRnBBw+pYIZ0aHnSKmiW5WCsTHLf7WGwpbSQfrlFtMSzIaBKqQgE8aM9OZd6Rpsm5 Wz5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=byxcVfbs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c74-20020a63354d000000b005346be4ead7si7569715pga.766.2023.06.06.14.02.34; Tue, 06 Jun 2023 14:02:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=byxcVfbs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239541AbjFFUj0 (ORCPT + 99 others); Tue, 6 Jun 2023 16:39:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234146AbjFFUjX (ORCPT ); Tue, 6 Jun 2023 16:39:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6383CE7E; Tue, 6 Jun 2023 13:39:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EB1806304B; Tue, 6 Jun 2023 20:39:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DBC7C433D2; Tue, 6 Jun 2023 20:39:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686083961; bh=4LWysxv5nCwtynK3qS1kWwwU6nmxSsvm8Ql6bGca8eQ=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=byxcVfbsphXB0kwZukntfYzhk2vydJFqH3Y59ERQtq4PmhFYbmavWBWl3XDznKbDR /+f8z6oNc4z/TFsMu3CLcjwLvIIgRw6ympyvfFvxy4QdrutpubaQwq7HqkzXIMTBcG w+tF3oydEGRuSJ3EbOnV1Lp+huyj0zY4vy/Ei6vNQ86e2uSEd+bJifojrXRLQfs7xl 4dI1JZkSKJ+GeQt4dla0K+1Kdpe3hbhU5fNgJqFPgHnuEtpm519bhXEki79sJq8Nui Az1+bxiI5i1cq/Jhc2iB7wC+JGlUxQfJbFBRuTsrT4MkkAUW+2HIjdbXdbZfNTQiuY 6+HiwpnOTo84w== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 06 Jun 2023 23:39:15 +0300 Message-Id: Cc: , , , , , Subject: Re: [PATCH 2/2] sysctl: move security keys sysctl registration to its own file From: "Jarkko Sakkinen" To: "Luis Chamberlain" , , , , , , , , X-Mailer: aerc 0.14.0 References: <20230530232914.3689712-1-mcgrof@kernel.org> <20230530232914.3689712-3-mcgrof@kernel.org> In-Reply-To: <20230530232914.3689712-3-mcgrof@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed May 31, 2023 at 2:29 AM EEST, Luis Chamberlain wrote: > The security keys sysctls are already declared on its own file, > just move the sysctl registration to its own file to help avoid > merge conflicts on sysctls.c, and help with clearing up sysctl.c > further. > > This creates a small penalty of 23 bytes: > > ./scripts/bloat-o-meter vmlinux.1 vmlinux.2 > add/remove: 2/0 grow/shrink: 0/1 up/down: 49/-26 (23) > Function old new delta > init_security_keys_sysctls - 33 +33 > __pfx_init_security_keys_sysctls - 16 +16 > sysctl_init_bases 85 59 -26 > Total: Before=3D21256937, After=3D21256960, chg +0.00% > > But soon we'll be saving tons of bytes anyway, as we modify the > sysctl registrations to use ARRAY_SIZE and so we get rid of all the > empty array elements so let's just clean this up now. > > Signed-off-by: Luis Chamberlain > --- > include/linux/key.h | 3 --- > kernel/sysctl.c | 4 ---- > security/keys/sysctl.c | 7 +++++++ > 3 files changed, 7 insertions(+), 7 deletions(-) Acked-by: Jarkko Sakkinen BR, Jarkko