Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp95060rwd; Tue, 30 May 2023 16:55:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jbVcI90FyP+STDrLjfK5exw7GmmsGlT5odWDwSybh2bnV0WlAtzUrY33Alm2GK6q+3nT8 X-Received: by 2002:a05:6a00:a24:b0:64c:ecf7:f49a with SMTP id p36-20020a056a000a2400b0064cecf7f49amr5880371pfh.21.1685490929592; Tue, 30 May 2023 16:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685490929; cv=none; d=google.com; s=arc-20160816; b=LwmYyVex7RoIpxgVun0QblJAhQG7m34HsZy942hXffvtW9hFx4kI8qZFPC/O+cQxq5 xgxVAqPAwUf3owNNDAR/1cLHGUoW0mrX8Pm8ANRd44JV/a8VWgGJUktGxAe3qMmoCCjE FH+OVsFIbHwRa/ayfHFR3cdRX6Anlp3NVNEVU8aLaHPjoOWTmwTh9ta4RJNKnzyMj04K qm7RWbmXFPtFKwDTrIwEbPdk3eEu6ehDxvKRIG6soAhdcSxkqtN7Qp5fVacFvEvWFs3u 29BsUUlsJI/aoeTWEvu+UyIr03aMUEbt7L21KFAqn8atcBIf4rk6KacpsG/WZYb3Y7eE lpqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8kZDmW7u1BAwE+M5sWH6dCUNdnC2eoBRZLZS/mk42z4=; b=Viu2kKzEt7E23Uovu7Hv87I/QNSUqCYUh3DFuycW12ZIjb1xV1qCupwpRY4q6PIFpD 3iao9LpWPcTfMijesXiAlpcmQGjwyHL4WgEPrxJ3YdQhpOJFBICAVGEKqgnFobfF1Cn8 Gf6MTcgcRShWr0ZEPv3JDEmivf2IAgAXSAbEyuCFZdhwhSGCw7QvmlKqsmEBwpoNiaY+ f3tQFkram0BaV045WlGssBglx80cGI734RKjnWwvzW9XIFkirtVjiXohW3wQ2yFAJQgL yaUB+i8Q1Vk3XZtH7G2voYTEjyq8/hRfINoUFiN7RHJedhwPDTJLxCxpJOBlnir9OMhR 2UDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=FpoywbOe; 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 h16-20020a633850000000b0053f0cdab820si12512681pgn.259.2023.05.30.16.55.17; Tue, 30 May 2023 16:55:29 -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=@infradead.org header.s=bombadil.20210309 header.b=FpoywbOe; 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 S233846AbjE3X3k (ORCPT + 99 others); Tue, 30 May 2023 19:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233856AbjE3X3e (ORCPT ); Tue, 30 May 2023 19:29:34 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A94AA; Tue, 30 May 2023 16:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=8kZDmW7u1BAwE+M5sWH6dCUNdnC2eoBRZLZS/mk42z4=; b=FpoywbOee5kJx6j7BsroAWkapc C8vpYY7F0mBdwtR9djLjY1oi4UXRWCW8OjSs0qYtgy3atfS47cAhj6mhbBP+9J4UMCCCGohcAunY4 x3yRDL/6/zJZPiqVxcqZt/lvFNyWOiruXvpDHPp3OcRvHq3KYyfv5qPULQO4qZ7x0XtVxU+9f4g/t 3j4PhZWEuZaJzfz0C30Kmwbs2XobhTuO+/Z1F8dhsUUi2XKs3AaiVYC6l+ZhXWSX3GqWCJ+tJE6ll 2dKpTX0UglWP6jBS25td4J+tS0IIfCWgk1/GgBEhZpcqMyjkHGv2nMMFvPJemJEF0NtJfV3in9ZiO uLb6Nv2Q==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q48mB-00FTri-0j; Tue, 30 May 2023 23:29:15 +0000 From: Luis Chamberlain To: keescook@chromium.org, yzaikin@google.com, dhowells@redhat.com, jarkko@kernel.org, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, j.granados@samsung.com, brauner@kernel.org Cc: ebiederm@xmission.com, patches@lists.linux.dev, linux-fsdevel@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain Subject: [PATCH 0/2] sysctl: move umh and keys sysctls Date: Tue, 30 May 2023 16:29:12 -0700 Message-Id: <20230530232914.3689712-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 If you look at kernel/sysctl.c there are two sysctl arrays which are declared in header files but registered with no good reason now on kernel/sysctl.c instead of the place they belong. So just do the registration where it belongs. The penalty of this is just 66 bytes for moving both registrations to its own file, but soon we'll be removing all sysctl empty entries at each array, and we've already done tons of cleanup on fs/proc/proc_sysctl.c which saved us hundreds of bytes so we have few karma points. With this, we no now only have two sysctl arrays left to start clearing up the kernel one and the vm one. Luis Chamberlain (2): sysctl: move umh sysctl registration to its own file sysctl: move security keys sysctl registration to its own file include/linux/key.h | 3 --- include/linux/umh.h | 2 -- kernel/sysctl.c | 5 ----- kernel/umh.c | 11 ++++++++++- security/keys/sysctl.c | 7 +++++++ 5 files changed, 17 insertions(+), 11 deletions(-) -- 2.39.2