From patchwork Mon Jan 2 21:16:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 38201 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4317687wrt; Mon, 2 Jan 2023 13:17:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXvJ+wHInnwsROF+4GFij4zAAw/WujkcyyXaZwHbP29c6lA8JFWQ+Ql2VghRjSx2dsbfIC9a X-Received: by 2002:a17:902:6a83:b0:192:7258:dfb1 with SMTP id n3-20020a1709026a8300b001927258dfb1mr34001125plk.59.1672694240208; Mon, 02 Jan 2023 13:17:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672694240; cv=none; d=google.com; s=arc-20160816; b=tolgbxx862Ow/lJa9+LXA9+fptMS2OYLdEhN6h8SJUqJ9/xexBA0N7xcuSLwcJbZYJ ytvrSF1lr4ikwvynD0jAYMGiQ2NskC9QwIs1E0UK6y7S2DO6pJ9my2k92F9O9iuGT9YE pW5zq5rabO4kct5FrJ5SEwOB3sZTtnAc8gEjKqOoa62S0EIbq6UUYtU1lNLrW8v4UYHa HhP4l+jtz4fVJ8///6b4NB2i1/GSHDoVbnDx5BJMUaBlKhNXsIklaJxmNN4+fNvPHkhi JpgofTcY04UpP7KKhGFFXmRx7WJcouBlxs3TSxad9iag6Jz+vxNLuCysapvl7OqUAF36 ad/w== 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=NHmSI4BAP2aEJ9CMtBuxh4gyI63+HnFkQnS+v2zXqr4=; b=nncCMdQ+tapopExfUDSNovK1fiBrMoZ1DUrrFZZt+Gnm2CHUTVIte21k3jkRyNGfH9 KwWEiH6UrVitsL6DpkeoCXaHRwECwyvUfksyoFQmYRy/3lr0iqNsHNkk50ul/KBDyEPE MshN0hC2pbtEZzSrQwMaaGXcR9pd1+EeLEbTaT2CZ1tVu+vAgqZACFE5Z8W0ZcGqwGO8 FIX9YGY/dDebWMbUGTNTY2ilU+83m86JLFJz2SJGw3BIVJyEN8olNBGI/R2hzAH1VKQn YUZidnOE5QACnLLrfldTh8va3TopG/F1hf/ZKrWX7DUUwsYFRHy9c1mv1IhQ1Y4IU5Vp e/xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Kje9jnEn; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a170902ec8400b0018997e90c80si32978118plg.275.2023.01.02.13.17.07; Mon, 02 Jan 2023 13:17:20 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=Kje9jnEn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232773AbjABVQM (ORCPT + 99 others); Mon, 2 Jan 2023 16:16:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231627AbjABVQJ (ORCPT ); Mon, 2 Jan 2023 16:16:09 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3607A459; Mon, 2 Jan 2023 13:16:07 -0800 (PST) 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=NHmSI4BAP2aEJ9CMtBuxh4gyI63+HnFkQnS+v2zXqr4=; b=Kje9jnEnCrSwN7EQt+D4Dekx5Q AoxmtlHmh1kilCx/QP7qHnh4H1v7Cu+Gloa1BLUNHyHTrPfIy8dU6Hl0/NygcYHrx3EhOQZZC2Lra fDscfwNgRdxJgpgNp8pEi+KF+tyHa3lTSDCrz2c+8he01kfFThMvlLFn92LDPuneyITRzO4seJB9y oOz/t1TuaVcU8egRUyRVNmlYuPeot8pndJRkgEX5UN+ICvrMBpdYEsID9SRRnZnsG+cnl+jnGPyNI YpEAYInd7enpXKKqZTJVgv9xGKtYNCSgt0PKsKo4NfXLN9MWalxyXa2xmtncu5Y0gK4fbnDnLiEY3 DzevHOog==; Received: from [2601:1c2:d80:3110::a2e7] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCSAA-00EIqL-FI; Mon, 02 Jan 2023 21:16:06 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Luis Chamberlain , linux-modules@vger.kernel.org Subject: [PATCH] test_kmod: stop kernel-doc warnings Date: Mon, 2 Jan 2023 13:16:05 -0800 Message-Id: <20230102211605.26058-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753947035395225862?= X-GMAIL-MSGID: =?utf-8?q?1753947035395225862?= Use kernel-doc notation to prevent warnings: lib/test_kmod.c:58: warning: contents before sections lib/test_kmod.c:94: warning: cannot understand function prototype: 'struct kmod_test_device_info ' lib/test_kmod.c:119: warning: cannot understand function prototype: 'struct kmod_test_device ' Signed-off-by: Randy Dunlap Cc: Luis Chamberlain Cc: linux-modules@vger.kernel.org --- lib/test_kmod.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff -- a/lib/test_kmod.c b/lib/test_kmod.c --- a/lib/test_kmod.c +++ b/lib/test_kmod.c @@ -51,12 +51,11 @@ static int num_test_devs; /** * enum kmod_test_case - linker table test case - * - * If you add a test case, please be sure to review if you need to se - * @need_mod_put for your tests case. - * * @TEST_KMOD_DRIVER: stress tests request_module() * @TEST_KMOD_FS_TYPE: stress tests get_fs_type() + * + * If you add a test case, please be sure to review if you need to set + * @need_mod_put for your tests case. */ enum kmod_test_case { __TEST_KMOD_INVALID = 0, @@ -78,7 +77,7 @@ struct test_config { struct kmod_test_device; /** - * kmod_test_device_info - thread info + * struct kmod_test_device_info - thread info * * @ret_sync: return value if request_module() is used, sync request for * @TEST_KMOD_DRIVER @@ -101,7 +100,7 @@ struct kmod_test_device_info { }; /** - * kmod_test_device - test device to help test kmod + * struct kmod_test_device - test device to help test kmod * * @dev_idx: unique ID for test device * @config: configuration for the test