Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp22823rdb; Thu, 1 Feb 2024 00:23:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQlugtquKEyC2bpeB6lo27lCJ+zm0vn/WJ5Do57UCdtL8SOnz3xo2c/Soi8J6FduzMQ5v5 X-Received: by 2002:a05:6808:1401:b0:3bd:e4bd:987d with SMTP id w1-20020a056808140100b003bde4bd987dmr4916382oiv.44.1706775784217; Thu, 01 Feb 2024 00:23:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706775784; cv=pass; d=google.com; s=arc-20160816; b=S7r3BX3H2TpkY6nIK38PFJbl6iovExqK3/VhWZQwzSWuB45v8xToCO7VCXmkm7vuiB 5K4I8NhVyuQswm9iSLKx1tENf2W5IJ+1RFMizohMeKvUsrVEy+UQVCGIpaDnXOXVZ4e/ UsO9vyB5XCTVDPDTVIedznwaeinhu6KXQ5jwlCWZsiI3xx8Y/VTv+ev22KDvGlZBSwO3 ty6Sn0fE0Kv/XjYL9mQKIJw8xBSda1Wu7EyunoytVL8GPRLHz7cBo9OxT4sI8/a6LbMd vHpJYPr0exXFxK9hyMRkkOhHNabc/Cp+gkyNKWkFk1A4PGeY/3On5pvKSqZizgIfbKyt 4RUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Mjh8PuY8+e5eF0GSyu0fRtJSsUkC5zDTJI32X7tIhQs=; fh=VhgW4OO3MkN69tXBTkiCHK4n2EWgD+E/nLBH0/918ow=; b=oEQeYU4gjCRmH4Q/KzFqywbi8HPHaoXcQtyXvqePV8S0DwOn7MCgFppwA9COo2crLx Uv8r+buhZzaIw8nO5kp3LoMjvl56a6QkKBy1Y346azEhxRHZi7SN39C3vdGqM7/HkFRt PdTvruSeTCyxKlpP2WiY0aeGglSdsFI0i/jV+4Hcna1evTzvr4W+E3/S2gOxRyK6dQMl d5+ybsiSPDTNjAmb6kBZd3AbZWSVYS8g1MLmNyZ8CKZgL1GDjpP9rF0AYf4Grwl3jZp+ NPWV0Mlf/UnmIbpHzZrmkXRkUU3AYcPUcg8EEjgWdQhR9GJX5Jgds48uagQ+stAwnwTN Nu+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0uKcdaHm; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-47644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47644-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUQCOQPL332lYpbfHeEQD0jKVn/IGkRiI3xkIg+YjRIYVoEWS2GC6EsVhDaQX8AZa/RAMgfKazT+GBidowkbtzwO7aSvzvJovVmye7blw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d16-20020a056a00199000b006dbafd2af90si11796102pfl.22.2024.02.01.00.23.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 00:23:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0uKcdaHm; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-47644-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47644-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 51AFBB25B84 for ; Thu, 1 Feb 2024 05:16:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBA873C697; Thu, 1 Feb 2024 05:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="0uKcdaHm" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40F3C2C1BF; Thu, 1 Feb 2024 05:16:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706764591; cv=none; b=Oisk/gjDy67M7z3ZzAFGYl3Ir7enat/BFadCRO7msA0sElegqWP7vgCoGIFUSRatlp8FIufenrGSx0107wQ4b5at5fULJOiJMdJyGUAZH7ur+E42hNc7I5wkQP7+Dy4frwD0uu57x73wXuU42UP3llbh83ZGeAu/Hg5tqk1aNo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706764591; c=relaxed/simple; bh=CvSb+Gil1ji46VexZFFVDkpAh7xY7sGUymNfmluuP8g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jBYAJJ8Hx+kmnO9c1Vxpm+oke7FixgyT1Bk4//ztPfp+trTRsFxgM4r9Penq9aul43pl/uaa41LAstXiSW5AECcNNXQi/85wW65k5+F/M+iaejmJC5mOgn6lw1uFPhuiqNws/sDLIKIdRfgAST9phj1hymEfB3mPJOxTbzC5SpU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=0uKcdaHm; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=Mjh8PuY8+e5eF0GSyu0fRtJSsUkC5zDTJI32X7tIhQs=; b=0uKcdaHmeoMpzFrSRx/owahvGb L9Tq+yFiz2oFwHM9zVDVBxg3kJutVEBrB3ACrZP2987brgR4wRDowlJyx1cg32xIgCcne/mxAgmnW CJ12Pt8wNFdo15nNqkQ+3Q+qDtC5IZL3GNH6Mt2sM/N9L8gvdn4HIE0czHhS1Ja3jp0dn3TSDLrCy e7Z62A/hGyP2+3XoE03fsfTGlAcTe4RIz7UUpZSN2UtJoy/K6kbsTalt3ftgX2jjOjlHgb+6uJIju kW1RHN24jhqcZ7yL3tnzgS55Qq409eoGBCAlXePMUDGdgLmxdjWSBc38jZY0QbuZO6iQ1m8i1uaiK rPlNGvqg==; Received: from [50.53.50.0] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVPR6-00000006bxu-2Q3C; Thu, 01 Feb 2024 05:16:28 +0000 Message-ID: Date: Wed, 31 Jan 2024 21:16:27 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] lib/test_kmod: fix kernel-doc warnings Content-Language: en-US To: linux-kernel@vger.kernel.org Cc: Luis Chamberlain , linux-modules@vger.kernel.org References: <20231104042044.17807-1-rdunlap@infradead.org> From: Randy Dunlap In-Reply-To: <20231104042044.17807-1-rdunlap@infradead.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Any comments on this patch? Thanks. On 11/3/23 21:20, Randy Dunlap wrote: > 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 -- #Randy