Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3598796rwd; Mon, 29 May 2023 13:24:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fRhL7K2nfMSRUGn3B03WXyDLpsmfHWKU+Ut6AvCjYrElFtVSiuje5bEX2eKRt1PAjxea5 X-Received: by 2002:a17:90a:280c:b0:252:f7b1:943f with SMTP id e12-20020a17090a280c00b00252f7b1943fmr219288pjd.24.1685391858963; Mon, 29 May 2023 13:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685391858; cv=none; d=google.com; s=arc-20160816; b=F3DImvx/L8VqB4KuNJL1BjtLC6M9cmDYW9cM+pg089s5d/mLaWM4jI9nUL0Q4P+500 qhnEX2n3z+ezJnJKaN+XzXKx04fevbKyF6NtzUi7KQoAqfIH94/PgEje9qaDYEyqELb/ f6HgoHW/7IQaOh0Sh81ZzyR4AVI7khYyJkK7tIM92JS1wwdOrrnQWDJ1V0RbKfitPVFg B4WZevuvqYyZo3RpB5WSuItGi4k4J7q+FUezyNX5ywVRmipnWMRXXwi4WaYE4ofgHpHZ CO4x/1UHgwU5JuplPcVrPV8z8VQTPHd0wGzmNt50h0OEzRCS8YbcYAd4YyYwTsnlPVEu iSXQ== 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=1ZhbSdnTUiTPgtnsBQucrlMwpNoKoWYbMJP6KOOw5RE=; b=QzqafvSHsaDRjrd2cpExTvPD4CDf6xZmz/2jCQsWpxkdybRfYF+TwegOAiNT8dnbCs lGLl235wv8skr4DzqdTYjx0S62ALSCWZ7B0l0Ly/luIZ3n5ZKthE0j47CuZO5ECVln/U OOy6yOivH6bNwB9xuJnjprjgt8xQugblO2wnD1SmMrohYdDOtRAI9JpM5T6xt7VNFxve 2iim85kEjQERajQC3v9SbeP7SNbyypJn6sLd3Fo2gy5GFM1Najcazx9IqLnX/JOdEVI3 kYbJWplwV8DXofFtRve6KE4ismcZZXfLUhgl7U3wn3SFSVTIy06F0O1MUD4G8FgPsHsg ynqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GTF7w6st; 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 ft22-20020a17090b0f9600b002527f171401si3359439pjb.182.2023.05.29.13.24.06; Mon, 29 May 2023 13:24:18 -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=GTF7w6st; 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 S229820AbjE2UFK (ORCPT + 99 others); Mon, 29 May 2023 16:05:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjE2UFI (ORCPT ); Mon, 29 May 2023 16:05:08 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 463D5CF; Mon, 29 May 2023 13:05:05 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230529200501euoutp02c0189705c6d207d1bbedfaf10dfa2af5~jtenNeigx1288012880euoutp02U; Mon, 29 May 2023 20:05:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230529200501euoutp02c0189705c6d207d1bbedfaf10dfa2af5~jtenNeigx1288012880euoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1685390701; bh=1ZhbSdnTUiTPgtnsBQucrlMwpNoKoWYbMJP6KOOw5RE=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=GTF7w6stvq2oS1EysFOer0a/VjdNBLuXv+1Wtq71EH9yOdf4QqrOXFEFSBIA7C/IE AQThwzhupChNZJ18JrtplKy9EI35ebJkGF1oK1Zt5E4wY9k+vIYPhzZmbk8hFcYPLU vUB2kb/bbIDzRJuL9tWSG8Km64/z1npWYqmJ6QhM= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230529200500eucas1p21f2a203b7e2c1503c05b7a626ac10802~jtemeBNch2495924959eucas1p2y; Mon, 29 May 2023 20:05:00 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 19.C5.11320.C6505746; Mon, 29 May 2023 21:05:00 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230529200459eucas1p17f9c693732db58efc8a814dae3dfd1f3~jtel1xkMp1197511975eucas1p1c; Mon, 29 May 2023 20:04:59 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230529200459eusmtrp1e843d73d12d0d8844a1607841420cc3f~jtel1DpV10725407254eusmtrp1k; Mon, 29 May 2023 20:04:59 +0000 (GMT) X-AuditID: cbfec7f4-97dff70000022c38-80-6475056c0978 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 41.D2.10549.B6505746; Mon, 29 May 2023 21:04:59 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230529200459eusmtip2e16232edc4f0565d864cc7a0490bfb86~jtellxGxd0039500395eusmtip2S; Mon, 29 May 2023 20:04:59 +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; Mon, 29 May 2023 21:04:58 +0100 Date: Mon, 29 May 2023 22:04:57 +0200 From: Joel Granados To: Luis Chamberlain CC: , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 1/2] sysctl: remove empty dev table Message-ID: <20230529200457.a42hwn7cq6np5ur4@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="5h2emgdaq4yeo4b7" 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: H4sIAAAAAAAAA2VSf1CTdRzu++7du5dd414HxjfsOF3mpfxKivxqziOvrrc6PcvqjwJpB28g jWEbS8xRywMMGA6HkI2hJLmNnyK/LoRo7DwmPwKJHzcSXBAEEoICqfxwtPFiedd/z+f5PM/n nud7X5Ij7CZ8ycOyREYuk0hFBB+va1noCpRyldEvZPWtR4ZLZQR6qGvhoblKJ4F+sUJU21zA RbO3fgfIMXsDoJW6FB7Ku+yDLmtJlNNWgKGOzHg0MG7AUeNPrTjquWIg0EjbdQx1XSnnInv2 GEC/WgoxZMuyYKi6KpeDlh64JA8q/+AiY/3+MEjfTz2F00uLOkDnq7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XNX295/IvRs8g7uCplNkh6VavPZZUMX25/Ut+2cMidV0P96/iw3/ue2VRcWZ3/aEPztwOc3 2mW7+h6rxnmWuH0UU9//jZ3bX33nBc2EEzXX+f8osRRnJBpqMRcVJwIA6exiRv8DAAA= X-CMS-MailID: 20230529200459eucas1p17f9c693732db58efc8a814dae3dfd1f3 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 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 --5h2emgdaq4yeo4b7 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 LGTM. Review But why was dev there to begin with? Best --=20 Joel Granados --5h2emgdaq4yeo4b7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGyBAABCgAdFiEErkcJVyXmMSXOyyeQupfNUreWQU8FAmR1BWcACgkQupfNUreW QU/t3gv3c4diMWueMMeFZjElEqAeuF66TElSTtKZbqNst1WFgpzBrHNLH0hAGhLO vRbWOFmYgjh6U31lrVti+jcw+Ha8t+SRjASrYvefYjw9XIv7geaaE7eJZFtYWfJF yAuSAlbtrl6xLDBudHTD80jXFDEoj+9FrADIyViWyRALRBvsePkRQqiNJPi498yt nhHAuEStiqJLqLqcnEZ5eERoWOtSxU31cOXl0SdLpUGt6uNYzIiWHLzz2POOtmjP 4hxAW9Uod+yHAWNjOnec5UnQfiMHZtyjAYe6S3ljbiEtjde2rrM599NpznWrrcRQ 7FEz/3wIu/4qL90gj78krhwyiYeC/VlchrC0sOdgV5Gi3ooSO/bMdvD5MST4rN1q xIL4tVsUQ8LySQNfk1zYfavLqXllSEoHvQc3txw2X6K0ArB3mqkHv/1qIr1sn+Px PAsWXbMeVeYZHyIkHzzUWPpKGyaqHyho5VQ0MJfqL1cgEva1Xol9xaiePbPRijvA 3BJT2UU= =Aua/ -----END PGP SIGNATURE----- --5h2emgdaq4yeo4b7--