Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1635020rwd; Mon, 15 May 2023 00:19:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nfwfJO98O8hBfuK4ze5/ps//pil3YgP4zhul+YycURRqCizzm5lxruE8X5qkGdMrfLFdD X-Received: by 2002:a17:902:d48d:b0:1ac:66c4:6071 with SMTP id c13-20020a170902d48d00b001ac66c46071mr39077988plg.57.1684135195448; Mon, 15 May 2023 00:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684135195; cv=none; d=google.com; s=arc-20160816; b=D2v0j6ZOcBvwX1WkOhRzzVg8Bw3MUHyV38jLITQXWYSoe6Qe40wCx5SoN1eNeitPdS SB/JMhyWeneFycamv6QuOofFS6waFgty165tEeVR4k7x8fGIG0hCcfcGdEKs5dwEwk6S +Yc+yAV5xGVR0nxR08CFkSSdjly2fCkQO8w61mNlwVwRZI8F/kwq8z6u074JQkd0w3VR XDSBefSfyORYSAk1ust1nRSL3pAtq6QBxUA7VdSjMpuBX+h7hdxsKBSyzl60Mqhefx8v vUPEXFJ77L1p3ga2XWE2ZO4KQq5AN8Egcqhd2dcpzgsGG0T2qTGoqKGvGF/BA1PsQ01C 4/Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :mime-version:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=wOcIDhuiqBxMdQKtjn6oQCYKMuhnFN8tdpIeGEFWguE=; b=gd5TLCrrHlxKl6Uwym9YdkuxLMO3+1fAD20rTTKQnMPnmPDAIZ2F8IpCYSKPHRiTPp iB18KeYeCm7bYLKXYpZLwjTOIgtVPKLKgodDxxyWnjZkhMJE/18WJuJjn0fiQfnPj3XM wTalQqWh11P0GKwZZSUq6kTTdLk56hfQ9U/uIE6D0+KwWwXuuE6Jum6ESUn9MW+EbGmH 8vGJfWZXitDxxYUGHs2+9zEVO7KwD7okgN+D2YA2lYqvnSJlwY1PmzSeKen2kMqxwbsQ hVlWnsHrhktdVyNMlt9o3iBKCxEZrRboi7uiLLDXuWvSglWKhPBoWD6uDhGJ5ggF/8jE DbHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="m8m/MH1D"; 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 a1-20020a170902ecc100b001ac2ff9fbf8si16337487plh.403.2023.05.15.00.19.43; Mon, 15 May 2023 00:19: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=@samsung.com header.s=mail20170921 header.b="m8m/MH1D"; 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 S240702AbjEOHPV (ORCPT + 99 others); Mon, 15 May 2023 03:15:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240626AbjEOHO5 (ORCPT ); Mon, 15 May 2023 03:14:57 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D98C10FA for ; Mon, 15 May 2023 00:14:56 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230515071455euoutp01c6bda45f674cad8712cddfe1f28bae14~fP8OiO1xX1812418124euoutp01g for ; Mon, 15 May 2023 07:14:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230515071455euoutp01c6bda45f674cad8712cddfe1f28bae14~fP8OiO1xX1812418124euoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1684134895; bh=wOcIDhuiqBxMdQKtjn6oQCYKMuhnFN8tdpIeGEFWguE=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=m8m/MH1DJ0qDwhxr2zJ6IZnzV6E0nFohs6sU5tFe/Kt7Vi5sWok1WpeSOLEVmSvUr NV08DufANDJ6ApuxX7it7WzVBBp5lYniSoKdvz5tZ3QcalWSm/in6arJnOy6XI6nyd syg4fRq3cFC+NABNstcsQEWoc6NMgogTi8yKL8+A= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20230515071454eucas1p13e6c044a4bb6960a4996cd7ac6e48f7e~fP8OMAct00789107891eucas1p1Z; Mon, 15 May 2023 07:14:54 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 5E.71.42423.EEBD1646; Mon, 15 May 2023 08:14:54 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230515071454eucas1p2ae422c4bad233cd6170dce9e7f8304d9~fP8N5YQIl0188101881eucas1p2b; Mon, 15 May 2023 07:14:54 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230515071454eusmtrp25e55d254521c96bd2b43c1c6087c1412~fP8N4pi2G2610526105eusmtrp2N; Mon, 15 May 2023 07:14:54 +0000 (GMT) X-AuditID: cbfec7f2-a51ff7000002a5b7-98-6461dbee2da2 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 4E.D9.14344.EEBD1646; Mon, 15 May 2023 08:14:54 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230515071454eusmtip145bbc0b7e77efb759a927071b2b33359~fP8NsEp1f3254032540eusmtip1I; Mon, 15 May 2023 07:14:54 +0000 (GMT) Received: from localhost (106.110.32.133) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 May 2023 08:14:53 +0100 From: Joel Granados To: CC: Sudip Mukherjee , Iurii Zaikin , Kees Cook , , , Joel Granados Subject: [PATCH 4/6] parport: Remove register_sysctl_table from parport_default_proc_register Date: Mon, 15 May 2023 09:14:44 +0200 Message-ID: <20230515071446.2277292-5-j.granados@samsung.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230515071446.2277292-1-j.granados@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [106.110.32.133] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42LZduznOd13txNTDJqXaVqc6c612LP3JIvF 5V1z2CxuTHjKaHHg9BRmi2U7/RzYPGY3XGTx2DnrLrvHgk2lHptWdbJ5fN4kF8AaxWWTkpqT WZZapG+XwJVx58RC5oLZ3BUXP/WwNTAu5+xi5OSQEDCR2LBnBnsXIxeHkMAKRonV/1pZIJwv jBJvdh1khXA+M0rM717NDNPyd+VjJojEckaJ86dWscBVvft0FmrYFkaJG3Ovg7WwCehInH9z B8wWERCXOHF6MyNIEbPAU0aJuf96mUAS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edaFxtE0UdG iVvtC6E6tjBK3L18iAmkik1AR+L8mztg3SIC4hInTm9mBCliFnjKKDHz0FOwImGBWInbE78C 2RwcLAKqEnPWGIKEeQVsJdZ3HmCE2CYv0XZ9OpjNKWAnsW7/UbBWIaCa07u2sULUC0qcnPmE BcRmBqpv3jqbGcKWkDj44gXUB0oSX9/0Qn1QK/H57zPGCYwis5C0z0LSPgtJ+wJG5lWMIqml xbnpucVGesWJucWleel6yfm5mxiB8bft2M8tOxhXvvqod4iRiYPxEKMEB7OSCG/7zPgUId6U xMqq1KL8+KLSnNTiQ4ymQG9OZJYSTc4HJoC8knhDMwNTQxMzSwNTSzNjJXFez4KORCGB9MSS 1OzU1ILUIpg+Jg5OqQYmrinODSybJ3T+XrmebZPgh3mij8Jq1j1kv2up+Ej2sM0Tw+9n35yc vtorRHOBlM6q4LeT9ERZuKN+OGZ+PMSu2mT0aEP/6j8vrCpO7Fngvj3C4EWb4wm+2Po5VaxX /3fzfu1Id1gkdPxSwiaBC9Zz5M8/WiAnt0+Tb9JWnne5+8PM9s8U6Q1oOOrK9p9F8vTzuJ+m ScbMJQ/U855emKte/Fm4Kjj/weLcBd/M+VQdPNVTvt3dYJF667b4mpWsL3afkN0T/+Ks6M0P 14w8F91/meEkczkqwWOnXZf+09Q9+y79Vj2c/GhH46EkicW6QiUPQ/fK1EXw56XPMGPyuegf wLjstAeHLvePtBlNHVNalFiKMxINtZiLihMBYJZTp0gDAAA= X-CMS-MailID: 20230515071454eucas1p2ae422c4bad233cd6170dce9e7f8304d9 X-Msg-Generator: CA X-RootMTR: 20230515071454eucas1p2ae422c4bad233cd6170dce9e7f8304d9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230515071454eucas1p2ae422c4bad233cd6170dce9e7f8304d9 References: <20230515071446.2277292-1-j.granados@samsung.com> 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 This is part of the general push to deprecate register_sysctl_paths and register_sysctl_table. Simply change the full path "dev/parport/default" to point to an already existing set of table entries (vars). We also remove the unused elements from parport_default_table. Signed-off-by: Joel Granados --- drivers/parport/procfs.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c index 902547eb045c..56f825fcfae6 100644 --- a/drivers/parport/procfs.c +++ b/drivers/parport/procfs.c @@ -430,22 +430,6 @@ parport_default_sysctl_table = { .extra2 = (void*) &parport_max_spintime_value }, {} - }, - { - { - .procname = "default", - .mode = 0555, - .child = parport_default_sysctl_table.vars - }, - {} - }, - { - PARPORT_PARPORT_DIR(parport_default_sysctl_table.default_dir), - {} - }, - { - PARPORT_DEV_DIR(parport_default_sysctl_table.parport_dir), - {} } }; @@ -598,7 +582,7 @@ static int __init parport_default_proc_register(void) int ret; parport_default_sysctl_table.sysctl_header = - register_sysctl_table(parport_default_sysctl_table.dev_dir); + register_sysctl("dev/parport/default", parport_default_sysctl_table.vars); if (!parport_default_sysctl_table.sysctl_header) return -ENOMEM; ret = parport_bus_init(); -- 2.30.2