Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7637827rwd; Tue, 6 Jun 2023 14:00:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5q6hLV6aOrkuyMz56B4vLs/wtmoLG5DIlKiykC6RsCvQlEVYZfDhDkFZDSyELUClohhOHB X-Received: by 2002:a54:408c:0:b0:39c:4629:9253 with SMTP id i12-20020a54408c000000b0039c46299253mr2819599oii.42.1686085255603; Tue, 06 Jun 2023 14:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686085255; cv=none; d=google.com; s=arc-20160816; b=dqyF1gqqu/1yYTYirCAaITs0V4BkoQfqNIfbVpMKdMXH89q9OnZRB3kqJSXiD+rt7D IcfJk18bZatIyUWqs5UyMElCLYzo3h8MyD3CDuSaJpuq0kdwm0Ysg+x8g2bs6DGmiANj gmT0/DUbvkdwH2ETycxehprI7hQSreneUE8NySfscK+FNbFhKWTyJDC9l6+jYqpUC89g lqg2YKMOKOTKn113UgCLdUcRtS7B40irFpy3uFQD3fsCrqbinKQcapLynN466hPzE240 BPGS93nGV7x41oAhNFgJ6YdS88NzZhuZGhfTQ4P9zXlAmTNQ/dUKZd9Zu3zzlDcXey3B De+A== 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=tr5m/96V9YHKzL5IUwkQoi7Lv/tVG/foAEV2UF731cw=; b=xKelLqOuXIYP4GhwTNiwcKndj2PCvCG0rrQRCTTbodzN2HZ+C5a2BzfR22biu7/PRL RyuwYp7CKtN7D/yNEYviXWabewN4XMM+JcHOzXJ7gNzufd89rSc9US6L4/EYSIqTCVSv NjzwZdLFe1mBgs4I65O7T8yXl51NGCP8H/r3vaMjBmy/zN5B1tdtbtOPQx0h1VQkC8fo g3hTjnIXmTbwevNsg4u7g0MtMpvq3BtBAvyVR3tNxz9kJf30AkVPJN7ud73ZVPkxqOBe HAuO5mMXl7m5FOzZmhzs++vAFge122E9soFzu3DZzxqTYnTGHNiwcZGM/4AMi1Esz978 hgig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nub1rafA; 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 j189-20020a636ec6000000b0051423af249fsi7898062pgc.304.2023.06.06.14.00.26; Tue, 06 Jun 2023 14:00:55 -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=Nub1rafA; 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 S238285AbjFFUiH (ORCPT + 99 others); Tue, 6 Jun 2023 16:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233644AbjFFUiB (ORCPT ); Tue, 6 Jun 2023 16:38:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71DF310C3; Tue, 6 Jun 2023 13:38:00 -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 0105563045; Tue, 6 Jun 2023 20:38:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E4F5C433EF; Tue, 6 Jun 2023 20:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686083879; bh=zwS9UoNrIw0Gfz8G+aqGyENTio0hYFTJZEMXB9aO/OM=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=Nub1rafA9h9MuSb4Bk6fZZmGpYNYXZjoqhuHPNI5LvxL37jR4HD/NwT2zMqSUB8Ho cehlh8tB9NdyqP4MKUs0dpbyfXANe9UY4VMM5+3heCh+pDbIeMQJZaJWAuz336wr9Q 2s7+o5wkIacF9D3Q4yJYVtq2pBB1Ix5Hogz5mHylV4CMed+9mHajbkiKYMuLW8If3e f2pHJ3WlMUVX1Dh8reWNnwYrTRRUAcaMvDkQgRBua0fvREE/fV5agwzddytBJGZGmT G6fPlv1c4N2jD8DVBvxsI8oKSWWmhzGuvFtIng15+2zt3PDY0xGG7qNVGgY+q5f2u3 teMvlkugHilDw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 06 Jun 2023 23:37:53 +0300 Message-Id: Cc: , , , , , Subject: Re: [PATCH 1/2] sysctl: move umh 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-2-mcgrof@kernel.org> In-Reply-To: <20230530232914.3689712-2-mcgrof@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: > Move the umh sysctl registration to its own file, the array is > already there. We do this to remove the clutter out of kernel/sysctl.c > to avoid merge conflicts. > > This also lets the sysctls not be built at all now when CONFIG_SYSCTL > is not enabled. > > This has a small penalty of 23 bytes but soon we'll be removing > all the empty entries on sysctl arrays so just do this cleanup > now: > > ./scripts/bloat-o-meter vmlinux.base vmlinux.1 > add/remove: 2/0 grow/shrink: 0/1 up/down: 49/-26 (23) > Function old new delta > init_umh_sysctls - 33 +33 > __pfx_init_umh_sysctls - 16 +16 > sysctl_init_bases 111 85 -26 > Total: Before=3D21256914, After=3D21256937, chg +0.00% > > Signed-off-by: Luis Chamberlain > --- > include/linux/umh.h | 2 -- > kernel/sysctl.c | 1 - > kernel/umh.c | 11 ++++++++++- > 3 files changed, 10 insertions(+), 4 deletions(-) Acked-by: Jarkko Sakkinen BR, Jarkko