Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp903409rdf; Fri, 3 Nov 2023 21:22:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTf2QtoLlOWPnftp/4g50L6Zk4KmSVJ+dKaRV3CgaPHdXT7Si66HE8LRZCGgQLeEGNA69i X-Received: by 2002:a17:903:234c:b0:1cc:42b1:934b with SMTP id c12-20020a170903234c00b001cc42b1934bmr17118467plh.18.1699071726954; Fri, 03 Nov 2023 21:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699071726; cv=none; d=google.com; s=arc-20160816; b=KgeorE2quXloxClGieXL9dlWVf6cvU+omPVJjxg1ScymdLockSyUmfTsAxMp1/4pWH l3bYrz9Eb73kkvyTceunKPWypF/YhOxImkC1WvZCrHmwqYsZTUMAgGmAOnHftl/2OP71 6wwZoxiVyMvbmk7btnVXMsiN71j59eqK4C6T+tZvJezQ9/sTydmPeZ+5AVzImy0pZslx gq2R5p+qCMFYYXyq7K/yqWXHvrXECdKRPwYbY7Qto7Ba62QFcuMAdbpu8kY+kr2wnrig jrmfdaqxhA9Djhi1wBzWUWaEy4SmieqygojoLeTwpHS1nd8OrDe6CoyFwu3tBv8DYIVF o/5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4xGq+RomEZH3DZvdz2VHIN1h6fcnWJicNhvkTuIdRC8=; fh=arDBqiz04l+5WHq+xmxbRsbCiBolyHOhnEeVFHJSQ5k=; b=aVC4nwCJqGswuYpas8V2mOSjax225o48pmmWanXZP+KiCkrSwbLKB9oLaXlKzr5WCd Zbv+Qpz42gMmYZlhZQmPpf0X4WTfgQ2GSc8PVOOYipIxv9WZytUnw9crWjsdbji/80xO 2vYc61fNKjhx0Yxkh+Nap9lNAIZjBkqFVRz7xqcsWY4HsKzu29WpG6YyzZ1+qpmXROfU wtBZHIu7yocfxbgpCYtQ354f6ZuMk8gYhpdMca4h/rAak+C8flHQfXnCsKA0uEeT1a1T B/6fXSJWDR6AXyRD3m+DIsuV6JSU8Gawphr6gDIo+2V0BzpjxslDBtHNldFl6UpCVpx0 NzKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Nl4ZYr0L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id kn7-20020a170903078700b001cc4fbe9281si2770960plb.582.2023.11.03.21.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 21:22:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Nl4ZYr0L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6D65280859B5; Fri, 3 Nov 2023 21:21:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbjKDEUx (ORCPT + 99 others); Sat, 4 Nov 2023 00:20:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjKDEUv (ORCPT ); Sat, 4 Nov 2023 00:20:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11140D44; Fri, 3 Nov 2023 21:20:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=4xGq+RomEZH3DZvdz2VHIN1h6fcnWJicNhvkTuIdRC8=; b=Nl4ZYr0LZCWCk5uL/pzbkcuRh8 vMVseyrI1XyoINQzkJo80DKS3TEeoIEftWLfbc/zbDibdcTNz4SoLTS8jUDkWw6lF7TtzjUzXrWG2 BnRqey/L3ADb6SAuOEEmP603GRQQqqcRTffawia+Zl8uG4Adz1G/yFkTtA77nT5qb7w59dJV6wRvh X43i3PqvVGuBD4VJNBhdvUcKVTvFF/w9odc47tMlmpsVKZk6lICUmJLrAQD4a9Z/R8IQaCkeVSrzy f+jwRaGr8TDod+ZW7Ni/UrELu4h/bGx4tvmtzZJBdP+YSnORlBZmgNNH48MQCcyTcf5BSvpf7lU3M /a6tlwwQ==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qz89N-00Cbnr-1I; Sat, 04 Nov 2023 04:20:47 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Luis Chamberlain , linux-modules@vger.kernel.org Subject: [PATCH] lib/test_kmod: fix kernel-doc warnings Date: Fri, 3 Nov 2023 21:20:44 -0700 Message-ID: <20231104042044.17807-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 21:21:01 -0700 (PDT) Fix all kernel-doc warnings in test_kmod.c: - Mark some enum values as private so that kernel-doc is not needed for them - s/thread_mutex/thread_lock/ in a struct's kernel-doc comments - add kernel-doc info for @task_sync test_kmod.c:67: warning: Enum value '__TEST_KMOD_INVALID' not described in enum 'kmod_test_case' test_kmod.c:67: warning: Enum value '__TEST_KMOD_MAX' not described in enum 'kmod_test_case' test_kmod.c:100: warning: Function parameter or member 'task_sync' not described in 'kmod_test_device_info' test_kmod.c:134: warning: Function parameter or member 'thread_mutex' not described in 'kmod_test_device' Signed-off-by: Randy Dunlap Cc: Luis Chamberlain Cc: linux-modules@vger.kernel.org --- lib/test_kmod.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff -- a/lib/test_kmod.c b/lib/test_kmod.c --- a/lib/test_kmod.c +++ b/lib/test_kmod.c @@ -58,11 +58,14 @@ static int num_test_devs; * @need_mod_put for your tests case. */ enum kmod_test_case { + /* private: */ __TEST_KMOD_INVALID = 0, + /* public: */ TEST_KMOD_DRIVER, TEST_KMOD_FS_TYPE, + /* private: */ __TEST_KMOD_MAX, }; @@ -82,6 +85,7 @@ struct kmod_test_device; * @ret_sync: return value if request_module() is used, sync request for * @TEST_KMOD_DRIVER * @fs_sync: return value of get_fs_type() for @TEST_KMOD_FS_TYPE + * @task_sync: kthread's task_struct or %NULL if not running * @thread_idx: thread ID * @test_dev: test device test is being performed under * @need_mod_put: Some tests (get_fs_type() is one) requires putting the module @@ -108,7 +112,7 @@ struct kmod_test_device_info { * @dev: pointer to misc_dev's own struct device * @config_mutex: protects configuration of test * @trigger_mutex: the test trigger can only be fired once at a time - * @thread_lock: protects @done count, and the @info per each thread + * @thread_mutex: protects @done count, and the @info per each thread * @done: number of threads which have completed or failed * @test_is_oom: when we run out of memory, use this to halt moving forward * @kthreads_done: completion used to signal when all work is done