Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9112819rwd; Wed, 21 Jun 2023 03:15:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4VLIRrKvHlgeOPygEN5nC3cqiA4YwqObr4vLl3UyYHOjcvgA4yy/BLKalnOwc2E90qdNfc X-Received: by 2002:a05:6a00:2451:b0:668:69fa:f7a3 with SMTP id d17-20020a056a00245100b0066869faf7a3mr9826419pfj.9.1687342513740; Wed, 21 Jun 2023 03:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687342513; cv=none; d=google.com; s=arc-20160816; b=GycLzZtH5Vtk5agWt1+RLoRV+oMWkhy+8M2qJc9c/nRVVaabbLu3M1+8w9tlUUrQLT ZS3622D0yZJy7MT/I/Yb1c5BhINReAhasd2ZJ6wxy4t+xXXiJa+fXHvOXqxeR56vZbon en+0lfb+JwO5iqW0G+Ece1FFNYPV8nTiH5mxP+D2am+Vf1IkeZkk8lJZhdtz2a+xG7S8 mxdikmJk6ODZTdWeoKTSIX5xNGtadCFupczVgI9iM9vx/E4PEKJQ7jVgC4QN6xMxFQ8H JnCPcQeYIN+0FQSUsXA9EkWmQTIjAejhhOejSLAWICPRRJt+e3bVtnJT9uVUvE3at3eV NkhA== 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=dbte9P3LahOTAa8vkLg+Y6+keP5p3Zx/hRuNObHLKVE=; b=gZH1qITjFIQPB+ukij0upN/HJVqFAbJR8wmtuQCDbrVLk2oRMwxKUvmEVrtvLLeuPd la3v/Pc+gvt2gHoXRig4QzSKBUZlRY7uiPBMKefCZEJSHWMLHVIXiUyKnCAASesf1oaF 7ii4UKWh3kHSyXSgnaoY8+1DuNl2bmrFdiuebHVMhLoCdiFBWv0DqD8KY1nDXv72Eg+X Vcz/oQp5FWDlRWmVqvAbpZHnQ7quuyxN2GFSQSttfeb+p4hylAKIH7rUMO1vg9tiTRvt m50V8iMaLQUkVYAyzFAscn7kTkeVUTc0aO/U39kcMSuVq4RqOCkg5pT3wpStgntcjwkk AcUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=BcGKGimt; 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 b3-20020aa79503000000b0064d419dd566si3679759pfp.205.2023.06.21.03.14.40; Wed, 21 Jun 2023 03:15:13 -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=BcGKGimt; 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 S232106AbjFUJsg (ORCPT + 99 others); Wed, 21 Jun 2023 05:48:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjFUJsc (ORCPT ); Wed, 21 Jun 2023 05:48:32 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B74FFE for ; Wed, 21 Jun 2023 02:48:30 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230621094828euoutp01cd0a8799f6ee8041c1f70e03357f4777~qo53gOyOO2238922389euoutp01A for ; Wed, 21 Jun 2023 09:48:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230621094828euoutp01cd0a8799f6ee8041c1f70e03357f4777~qo53gOyOO2238922389euoutp01A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1687340908; bh=dbte9P3LahOTAa8vkLg+Y6+keP5p3Zx/hRuNObHLKVE=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=BcGKGimtwHugbx0GY6b12ut2JhRSDV5A7THYwSZ3iL8kfg1IAl93KPpRaEgpNplkS YdBde4XCVHCUZIkxmpYwFJMYF3DG96cLoC8hnIHeuqAoL8Jd9a9HTcXij5/eYL5U6D o/Wciu0IPzA162vaQIEjdwTYjudVFMVN0dXRtSTY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230621094828eucas1p2380095a1edd4d673c43affc5299fbab4~qo53OTIyo1478514785eucas1p2T; Wed, 21 Jun 2023 09:48:28 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id ED.FA.42423.C67C2946; Wed, 21 Jun 2023 10:48:28 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230621094828eucas1p22b0b45adc25f881fe00a20d96d495d95~qo523PHWH0198801988eucas1p2I; Wed, 21 Jun 2023 09:48:28 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230621094828eusmtrp11d40c79030349f6083303a91ed30fe41~qo522rCpK1249712497eusmtrp1f; Wed, 21 Jun 2023 09:48:28 +0000 (GMT) X-AuditID: cbfec7f2-a3bff7000002a5b7-e6-6492c76c5a13 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 4B.06.10549.C67C2946; Wed, 21 Jun 2023 10:48:28 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230621094828eusmtip181b98584f1c8352c62496699c33e6758~qo52sbIGp1838018380eusmtip1d; Wed, 21 Jun 2023 09:48:28 +0000 (GMT) Received: from localhost (106.210.248.248) by CAMSVWEXC02.scsc.local (106.1.227.72) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 21 Jun 2023 10:48:27 +0100 From: Joel Granados To: , Kees Cook , Iurii Zaikin CC: Joel Granados , , Subject: [PATCH 11/11] sysctl: rm "child" from __register_sysctl_table doc Date: Wed, 21 Jun 2023 11:48:02 +0200 Message-ID: <20230621094817.433842-3-j.granados@samsung.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230621094817.433842-1-j.granados@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [106.210.248.248] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (106.1.227.71) To CAMSVWEXC02.scsc.local (106.1.227.72) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsWy7djP87o5xyelGKz6K2dxpjvXYs/ekywW l3fNYbO4MeEpo8WynX4OrB6zGy6yeCzYVOqxaVUnm8fnTXIBLFFcNimpOZllqUX6dglcGb1L rzAWrBKruPdnOlMD41nBLkZODgkBE4lN926ydTFycQgJrGCUWH/6NiOE84VR4vTRFnaQKiGB z4wSyxd5wXSca1jHDlG0nFFixaJpzBAOUNHmfRMY4WbNPb2BGaSFTUBH4vybO2C2iEC8xOw1 2xlBbGaBXIlZy5eAxYUFvCQu/VjNBmKzCKhKzF15A8jm4OAVsJHYcj0PYrO8RNv16WCtnAK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FciVmLV8CFhcW8JK49GM1G4jNIqAqMXflDSCb g4NXwEZiy/U8iGXyEm3Xp4O1cgrYSrxe0Q/WKiSQL7Fl7Sywg3gFBCVOznzCAjFeXqJ562xm CFtC4uCLF8wQc5Qlru9bzAZhJ0tM2vOLcQKjyCwk7bOQtM9C0r6AkXkVo0hqaXFuem6xoV5x Ym5xaV66XnJ+7iZGYKRtO/Zz8w7Gea8+6h1iZOJgPMQowcGsJMIru2lSihBvSmJlVWpRfnxR aU5q8SFGU6A3JzJLiSbnA2M9ryTe0MzA1NDEzNLA1NLMWEmc17OgI1FIID2xJDU7NbUgtQim j4mDU6qBqcO2j2Ou7TmuRbduLfk8wT+muOpZCBfTWU1NM3vlFZL/1/gIhu+b4/T0ejqPq9qD tQadDSecrK6cVdO28XLbNn3O6iUCeQ3pRiLKlYn3L4SwvfnJfPv73E/qpft/dnJ22xy00gtk ZTzFqXJLbtXSL6kBvv1PQnq8Hh02kpk236I7pM38glDf8hndqxe3TJ8eu5S/VyNK2ecD61Jl xpr4DV4BKYb3Ft3s+cr7Zd8dmcr5+scK3Nbkb9q/4LPvuZmu3lPfv9i9Xq6vy10r9LWer5hB VNiiWW2JtUHHDddEiRS99ZR50XOgv+XYnj5fS4bYNs/S72xfqj48CPZ6YZxXIyj/kXnKibuh nmHmh/8osRRnJBpqMRcVJwIALybYTz0DAAA= X-CMS-MailID: 20230621094828eucas1p22b0b45adc25f881fe00a20d96d495d95 X-Msg-Generator: CA X-RootMTR: 20230621094828eucas1p22b0b45adc25f881fe00a20d96d495d95 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230621094828eucas1p22b0b45adc25f881fe00a20d96d495d95 References: <20230621091000.424843-1-j.granados@samsung.com> <20230621094817.433842-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,URIBL_BLOCKED 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 Remove "child" from code documentation in proc_sysctl.c. Child was replaced with a explicit size value in ctl header and there is no need to have it around in the documentation. Signed-off-by: Joel Granados --- fs/proc/proc_sysctl.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 9e7e17dd6162..8dbc5b2316a5 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -1306,27 +1306,22 @@ static struct ctl_dir *sysctl_mkdir_p(struct ctl_dir *dir, const char *path) * __register_sysctl_table - register a leaf sysctl table * @set: Sysctl tree to register on * @path: The path to the directory the sysctl table is in. - * @table: the top-level table structure without any child. This table - * should not be free'd after registration. So it should not be - * used on stack. It can either be a global or dynamically allocated - * by the caller and free'd later after sysctl unregistration. + * + * @table: the top-level table structure. This table should not be free'd + * after registration. So it should not be used on stack. It can either + * be a global or dynamically allocated by the caller and free'd later + * after sysctl unregistration. * * Register a sysctl table hierarchy. @table should be a filled in ctl_table - * array. A completely 0 filled entry terminates the table. + * array. * * The members of the &struct ctl_table structure are used as follows: - * * procname - the name of the sysctl file under /proc/sys. Set to %NULL to not * enter a sysctl file - * - * data - a pointer to data for use by proc_handler - * - * maxlen - the maximum size in bytes of the data - * - * mode - the file permissions for the /proc/sys file - * - * child - must be %NULL. - * + * data - a pointer to data for use by proc_handler + * maxlen - the maximum size in bytes of the data + * mode - the file permissions for the /proc/sys file + * type - Defines the target type (described in struct definition) * proc_handler - the text handler routine (described below) * * extra1, extra2 - extra pointers usable by the proc handler routines @@ -1334,8 +1329,7 @@ static struct ctl_dir *sysctl_mkdir_p(struct ctl_dir *dir, const char *path) * [0] https://lkml.kernel.org/87zgpte9o4.fsf@email.froward.int.ebiederm.org * * Leaf nodes in the sysctl tree will be represented by a single file - * under /proc; non-leaf nodes (where child is not NULL) are not allowed, - * sysctl_check_table() verifies this. + * under /proc; non-leaf nodes are not allowed. * * There must be a proc_handler routine for any terminal nodes. * Several default handlers are available to cover common cases - -- 2.30.2