Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5080701rwd; Tue, 30 May 2023 14:27:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+MHuuWoyG4x7SnG2KjnwzWXryTKfTJ/cCLa8LaKOyRRFYUCjsy0NqzGEIYpEAhj1fmA8A X-Received: by 2002:a05:6a00:179b:b0:64d:60f8:cb35 with SMTP id s27-20020a056a00179b00b0064d60f8cb35mr5042212pfg.7.1685482043084; Tue, 30 May 2023 14:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685482043; cv=none; d=google.com; s=arc-20160816; b=LQiqUTZisNVR8LjZ5UNrUuJIBSipPVopdL25m27Ert1Gwa67nLsx0G6g1b9XoNcBDG vC4sLs9A6qbwwLlUDQheVNvghMPh/4SuovJxYOk/I7EAkBLegkFCkOF+T/KJSMM8qGjh 1c7oZd7rZEWOM5ojDif39ENUalplsYPdwegfrtw0G4YFkIdFnCuiLHuHdUjRdqdstTDK hdB6sGzKXibrRGAK1Dc6DI1162g/nuW++oZMkZZBrQbDI3P/JScRKZGXFAP4nlVZt+3j SSPMX71I+nvVS4tTZPRqT2kahC5aZYuRu0rMm2gkN7KJfNeGOra72xfkI7MiGHLpRKNL Y5qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=jEm05W5GcBUVigMjgbQvsUeHSUTN7UnO2SvK7Ym///E=; b=WehYCDQ9dIx1X5XYLKNE15Yx3SG3d2RlFEbS7XEaV+j2UhL1s7jQtxSGTp8Iwpgh2u 6eUVhb2VynUKpaHmHejTYD60MJ6wblhYCnVde2MZPiWIrspAEh8Effr4oVn39nweF5DX YtIzoFO9BVhwS4AJC51713g9TM901Qp4WT7Lkz0lrey2j+wqxp53r+Eg/TiVAU4iZ8L9 KrF/5J+1+QB7hhQhGy95K0IIoQx6ZvYnXb8tK2K5d5f/bsT39Mg1khQ95qig5IoHY1cD v30PNgpEsoQeXW8Zugbt23LJUxyL1O7xkWKtZpJsJE9MvskMQTjelUfhSgkMV8mfHpGI rkEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="hBiUFn/d"; 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=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a638c15000000b0053417caf94csi12110174pgd.722.2023.05.30.14.27.08; Tue, 30 May 2023 14:27:23 -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=@samsung.com header.s=mail20170921 header.b="hBiUFn/d"; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233225AbjE3VN7 (ORCPT + 99 others); Tue, 30 May 2023 17:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbjE3VN5 (ORCPT ); Tue, 30 May 2023 17:13:57 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15ADAC0; Tue, 30 May 2023 14:13:55 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230530211353euoutp010fd9569312c89b106ed45638ac13be2b~kCEBYk8WF0406404064euoutp01j; Tue, 30 May 2023 21:13:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230530211353euoutp010fd9569312c89b106ed45638ac13be2b~kCEBYk8WF0406404064euoutp01j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1685481233; bh=jEm05W5GcBUVigMjgbQvsUeHSUTN7UnO2SvK7Ym///E=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=hBiUFn/d3T0EysP6R752xwXC7ChFEeTXlexPr+blBXDrBfd2UZhKrv4tXSvILpMLh wllO+GaRI22eHtOqo2T9qcpNPbpCktvAeRigVVHUyts9Ms1N645rmJbV5/lzpugxQy /7BKcw2zRBBdWpaYKlHpFFkNu9x5gR5Vwer9+TU8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230530211352eucas1p28fb5efcb81cb5b98f66c0ace8a0ad637~kCEA-epMI0777607776eucas1p2i; Tue, 30 May 2023 21:13:52 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id F2.A2.42423.01766746; Tue, 30 May 2023 22:13:52 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230530211351eucas1p19a40e60cdf057ee20e779d6698daaba5~kCEALBveq0430304303eucas1p12; Tue, 30 May 2023 21:13:51 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230530211351eusmtrp225751b624bef9b6a39560704e59549ae~kCEAKQavJ1557415574eusmtrp2U; Tue, 30 May 2023 21:13:51 +0000 (GMT) X-AuditID: cbfec7f2-a3bff7000002a5b7-27-6476671085c0 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B5.A7.14344.F0766746; Tue, 30 May 2023 22:13:51 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230530211351eusmtip217553679e9642cfdceef9eb4cc7eb123~kCD-6_7SA1177611776eusmtip2i; Tue, 30 May 2023 21:13:51 +0000 (GMT) Received: from localhost (106.210.248.78) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 30 May 2023 22:13:50 +0100 Date: Tue, 30 May 2023 23:13:49 +0200 From: Joel Granados To: Luis Chamberlain CC: , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 1/2] sysctl: remove empty dev table Message-ID: <20230530211349.olrowajsp3idiurd@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="ocfcrlwnlg7a4bub" Content-Disposition: inline In-Reply-To: <20230526222207.982107-2-mcgrof@kernel.org> X-Originating-IP: [106.210.248.78] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA2WSe0xTZxjG952enpaGkkNr5LOaZisbQ25e2OWbGzCdW874w2CMcdkWXScn BVcKtqLM3TBDEBBpiuBaCivZUoio0FrAQnVaI6XouAyUgiLCcIhDhBbklsFaDttM9t/veb7n ffM+ycdlCW4RIm6y4hCtVEjlEoKH1zfPtUeSssOJG40n1yB9zTkC/aVp5iBP7SKBfrVDVHet jI3cow8AGnDfBWipPouDSkxByFTIRUWtZRi6lZ+Cekf0OLJdduKoq1FPoKHWDgy1N55nI5f6 IUC/XTVgyFFwFUMXzcUstDDrjczW/s5GRuuOdyE1c/wUTi3MawBVmtmJU1ZdP4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slN7cd K752u0VstF+erHbGfdzpeyNj0FZmmywqUw2JCulDOCpMg965er956IJl9ECg7vRVH899OK1J Mep0Gv1XqHvUxs9hUU1v+uqWgQOruZ4ja3rIp3l7SebDFiGuzZGKYhkarfRvUWjTHv0DAAA= X-CMS-MailID: 20230530211351eucas1p19a40e60cdf057ee20e779d6698daaba5 X-Msg-Generator: CA X-RootMTR: 20230526222249eucas1p1d38aca6c5a5163bd6c48b3a56e2618b4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230526222249eucas1p1d38aca6c5a5163bd6c48b3a56e2618b4 References: <20230526222207.982107-1-mcgrof@kernel.org> <20230526222207.982107-2-mcgrof@kernel.org> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, 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 --ocfcrlwnlg7a4bub Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 26, 2023 at 03:22:05PM -0700, Luis Chamberlain wrote: > Now that all the dev sysctls have been moved out we can remove the > dev sysctl base directory. We don't need to create base directories, > they are created for you as if using 'mkdir -p' with register_syctl() > and register_sysctl_init(). For details refer to sysctl_mkdir_p() > usage. >=20 > We save 90 bytes with this changes: >=20 > ./scripts/bloat-o-meter vmlinux.2.remove-sysctl-table vmlinux.3-remove-de= v-table > add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-90 (-90) > Function old new delta > sysctl_init_bases 111 85 -26 > dev_table 64 - -64 > Total: Before=3D21257057, After=3D21256967, chg -0.00% >=20 > Signed-off-by: Luis Chamberlain > --- > kernel/sysctl.c | 5 ----- > 1 file changed, 5 deletions(-) >=20 > diff --git a/kernel/sysctl.c b/kernel/sysctl.c > index fa2aa8bd32b6..a7fdb828afb6 100644 > --- a/kernel/sysctl.c > +++ b/kernel/sysctl.c > @@ -2344,16 +2344,11 @@ static struct ctl_table debug_table[] =3D { > { } > }; > =20 > -static struct ctl_table dev_table[] =3D { > - { } > -}; > - > int __init sysctl_init_bases(void) > { > register_sysctl_init("kernel", kern_table); > register_sysctl_init("vm", vm_table); > register_sysctl_init("debug", debug_table); > - register_sysctl_init("dev", dev_table); > =20 > return 0; > } > --=20 > 2.39.2 >=20 Reviewed-by: Joel Granados --=20 Joel Granados --ocfcrlwnlg7a4bub Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEErkcJVyXmMSXOyyeQupfNUreWQU8FAmR2Zw0ACgkQupfNUreW QU/sFwv/Szlm33QSWmZp4jNZj0nRdiSW/Bhzrw0gvEHK8N2xTpMMLoWL4ZyVOOq1 /UXJQszbKqDSHCuGcvx8PeLsJc+YD47MTS41BzsU3T+EYFaxQbMgzWGmOi+ysl3g XWmlmvNz+B6Jn2i/dyqccml9IsaXKGkMT0ujvSDD9J90fB6LhS+cXGpTFmTJPRm5 fphQxo8+5DMNn8fV21pIYwKhLTGzE9i3VXbtJgUa8cjv+OeUIELsRSI3YizjNx/t baJZch/yR5a7CJYyVk9Vu4Hl7LN6tG7kqu333a9D71G8vkeS9myqPnwJDwoHE0GL jSZLy13uIlLXpQz5QLHX/4vI29T2jwfVTJ08t+ufA7CwRrKU0Vmn78pj3qSGzRO3 l0Y758g/AxA75+cWoE2cQUBkb5TnVLzzgBjLzehn8TzXLWtN3hJDCpsWYJSRa8q6 fXnmEt1+fh5ikvKO54H0vm9HVRC+DYDCaZhDzbsZoECI55ziH529IcQfTUZ9+QTe hz5X//5S =i/vQ -----END PGP SIGNATURE----- --ocfcrlwnlg7a4bub--