Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp83222rwd; Fri, 26 May 2023 15:25:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TtMQVFlA/qnkox7sTfPSobA2R+ri8rn/xOvyV1mjy4NTih3pSemrd26sGmyDwpABjX8fw X-Received: by 2002:a05:6a20:72a8:b0:10b:6f14:32d7 with SMTP id o40-20020a056a2072a800b0010b6f1432d7mr953761pzk.31.1685139920346; Fri, 26 May 2023 15:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685139920; cv=none; d=google.com; s=arc-20160816; b=iBInWi5KVbTt4ZCs/WndhJSTA/YmqqokJLDh6b/kqvv7ytsWu4KJ4XxXedQYF0z2pS juGA/iAa0LkR5IWf7+qBf9Lm/iuAwoEHv7S+C6CC5jyzFifUSvf2NByyalAz0zfSiPtV AnrPaCjY077eq1EX3XDMT6eSpvfgHlvDhIsosR0+ThWqd1AV0RV4piR9G+SToy1T7m8r uQI2tWhEdfokADAxaUOtsVauiSjXVdkQfFvbYe4QWEhfcmbTfvGk+050eAYT6BndUPy5 vEUpAYMYFYITjeJ/KTnLtpIDUtLRoMFTCLOBzoG/g2mc3aCtN38bDuxBUiEno3EnRmi8 lfIw== 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=IzItOB3HiwfECPzC/ygFZaFi0mtHzGOxDJyi3k00e5g=; b=bcdtc2+Hoao3eepK7LOA+XW7O315mue+f8tUvyFr0KBj5DJxh8BEPcEklRF6Lx/saj M0DqtrEmUbgE9NuKhVFx8YECjuK+ftqpejl5pzgLC4elfTFmUpKcBcej2AyiPxzzcstK t6bsAWQVpetkyrG35UPYtu31kScpTgRbrYoVCY8PChDj6QAqv2UM1DGw6/bi2y8r5ZJC MMpdzygzk+e/b5du0+MXJOUPFZSOsIfiO7v788GPZhauwGQMc6dp7Gj6oJhGTBayjyet y+JclBOi8xhRJb0SO5qs5im5N7SJevR5WM8LBevAPKs5nueoTaeqiIhlRK3DO+c4kvFz dkNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="XhKaA/EF"; 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 79-20020a621952000000b0064d3a44770esi4811644pfz.84.2023.05.26.15.24.52; Fri, 26 May 2023 15:25:20 -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="XhKaA/EF"; 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 S243985AbjEZWWw (ORCPT + 99 others); Fri, 26 May 2023 18:22:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237792AbjEZWWr (ORCPT ); Fri, 26 May 2023 18:22:47 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1336D12A; Fri, 26 May 2023 15:22:46 -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=IzItOB3HiwfECPzC/ygFZaFi0mtHzGOxDJyi3k00e5g=; b=XhKaA/EFveChr6XSzEIIdk96Bd N/LzOSqRdpRE7noKTonD+Npx3tdNYEMg39PuqpF/5A+X7Rw+T8IQtL1E5EPqgyiVX0Oi4e6kd75pq U4hEQsQLOzOCu8bOewafR1MzBn2xWevyIAUl8L3vtHkl1jRfzAn8NZZGFDhr8vemSMCFa+BDB0Pt4 /Uy2Fv3S28wHZaRMri6FbXMzWNqC4Rpplr5I2Njcr1wFuI2AOrDufkOQedrb1dGfZHJl9mjP7u7A2 G5hlUz2qYXz+Uj9ZCPTx04v3CeLnTvYxH2HPb4GU9gyOs8xv1NMxN69hRutCYC51allOLJKCOcf00 j46705Ig==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q2fp1-0047Uh-28; Fri, 26 May 2023 22:22:07 +0000 From: Luis Chamberlain To: keescook@chromium.org, yzaikin@google.com, ebiederm@xmission.com, dave.hansen@intel.com, arnd@arndb.de, bp@alien8.de, James.Bottomley@HansenPartnership.com, deller@gmx.de, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, hpa@zytor.com, luto@kernel.org, peterz@infradead.org, brgerst@gmail.com, christophe.jaillet@wanadoo.fr, kirill.shutemov@linux.intel.com, jroedel@suse.de Cc: j.granados@samsung.com, akpm@linux-foundation.org, willy@infradead.org, linux-parisc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain Subject: [PATCH v2 0/2] kernel/sysctl.c: remove to major base directories Date: Fri, 26 May 2023 15:22:04 -0700 Message-Id: <20230526222207.982107-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 Changes on this v2: o remove header changes to architecture code. If they were already comiling this should not fail Now that Joel has cleaned up and removed one of the routines which we wanted to deprecate, remove two major arrays from kernel/sysctl.c which are empty or almost empty. One of them, the debug one just needs moving to its source, so do that. The move for the signal sysctl costs us 23 bytes but we have already saved 1465 bytes with the other recent cleanup Joel made. The next step is to depreecate one more call and then we can simplify the registration to only use ARRAY_SIZE() completely and remove the extra empty entries all over. That should save us tons of bytes all around in the kernel and we'd then later kill for good all recursion possible sysctl registration calls. These patches apply on top of sysctl-next [0] which already carry Joel's patches. [0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=sysctl-next Luis Chamberlain (2): sysctl: remove empty dev table signal: move show_unhandled_signals sysctl to its own file kernel/signal.c | 23 +++++++++++++++++++++++ kernel/sysctl.c | 19 ------------------- 2 files changed, 23 insertions(+), 19 deletions(-) -- 2.39.2