Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5193326pxu; Wed, 21 Oct 2020 16:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYei+cq7KTa4yxYXrH8B0dp1Y9+h1tQmYqTWsgQ3Nwx54QLCH0hAXQ+Az/YUTpZCUWQJoQ X-Received: by 2002:a17:906:edb0:: with SMTP id sa16mr5835081ejb.327.1603323775756; Wed, 21 Oct 2020 16:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603323775; cv=none; d=google.com; s=arc-20160816; b=d25sFP+PSoYpmrTrVDei72TXrT2hJtRtCwm6wamzh5OtQlE+7keGCII5OwcRQUmxjZ RNOgr22lO37hvG6Fl/o+u11v/0960pWZuF4nZaP4SJZPzakhyn1dkx1tQGndJVSjibGm R+5ryF2rUHXIA+w2J/7vNck8k71u7PF90TkPtsTvxfjWDB92ysNZS/yRk2dQeYrOgCjA sja1PSACb+6mtr3b0rAGluTdDHuL4c7WTPipH0aThvlgR9TXWl1Dt+fsQ8sZQ91mA1mi 4CnGtEVJ4FPD/08dO2zKh0FSJkX+FA1XSVbUDNsCBWx6SnahdAy0qh7P9QyLsYtlk8eT DwvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pYlYPy6YzEKw8O7/Vf+l/OL+k7QlQC5VS6WhQ8DQf0k=; b=FId59mk6Smzs1eQefJStqU52PBdkBZxbTqLblifenqNhF6KMTvEcIGksM0pSypi6Bl xaqp6xMvB2p1+Cuiv3fGSb+3q84axDVkJQ4pUzBFvIJtz7qbGqMhfrRVR+7OXw8Z4vzA re66ZKrEqtbRWjn5053hknvuvrScitES1I8uDnRIdPAzr2lH+3ZdlJQFN5xV7txwWhUn v+e60NMf9dak0JCXuxTEkkFzw+wNSSgsR5zXyMTKfQAfEdcPEgroqFN6H668twUfTFwN wysId0ItH8acJusaAogqGHM9FfVDyaVQeBmH+qSpOgOiIkkAerRTf66OvokWk7tcLg+J U/BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dAHQKVtV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zo20si2238273ejb.554.2020.10.21.16.42.33; Wed, 21 Oct 2020 16:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dAHQKVtV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2442313AbgJUMRr (ORCPT + 99 others); Wed, 21 Oct 2020 08:17:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:59088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411507AbgJUMRb (ORCPT ); Wed, 21 Oct 2020 08:17:31 -0400 Received: from mail.kernel.org (ip5f5ad5a8.dynamic.kabel-deutschland.de [95.90.213.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF48522251; Wed, 21 Oct 2020 12:17:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603282650; bh=dmJkmJBcCTH8GQ8WjHvHEWXJM/ASTtmhRipKi5gCybE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dAHQKVtVvpBxSSPuCJWb2kzJD5mZIGGBvzCpGt5Pxmrwo/CAn5XYUb3HEtNdgHxDj NvoVSSSDrJ756Rn8g0bzP0gFk0O/0vp2QVO9QAR70TSF0EdIy9KM1uxoIN+pvRNpyE StBqKWkw6x49EQ32ppzb86n+KhIFEfWsE3DTXR3U= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kVD3Y-001U2h-GC; Wed, 21 Oct 2020 14:17:28 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , Alan Maguire , Brendan Higgins , Iurii Zaikin , Kees Cook , Shuah Khan , Stephen Boyd , kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v3 5/6] kunit: test: fix remaining kernel-doc warnings Date: Wed, 21 Oct 2020 14:17:26 +0200 Message-Id: <1c36d295423c5c20c21a7edede0eb29e338dd62a.1603282193.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org test.h still produce three warnings: include/kunit/test.h:282: warning: Function parameter or member '__suites' not described in 'kunit_test_suites_for_module' include/kunit/test.h:282: warning: Excess function parameter 'suites_list' description in 'kunit_test_suites_for_module' include/kunit/test.h:314: warning: Excess function parameter 'suites' description in 'kunit_test_suites' They're all due to errors at kernel-doc markups. Update them. It should be noticed that this patch moved a kernel-doc markup that were located at the wrong place, and using a wrong name. Kernel-doc only supports kaving the markup just before the function/macro declaration. Placing it elsewhere will make it do wrong assumptions. Fixes: aac35468ca20 ("kunit: test: create a single centralized executor for all tests") Signed-off-by: Mauro Carvalho Chehab --- include/kunit/test.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/kunit/test.h b/include/kunit/test.h index a423fffefea0..14224baca3be 100644 --- a/include/kunit/test.h +++ b/include/kunit/test.h @@ -252,13 +252,14 @@ static inline int kunit_run_all_tests(void) } #endif /* IS_BUILTIN(CONFIG_KUNIT) */ +#ifdef MODULE /** - * kunit_test_suites() - used to register one or more &struct kunit_suite - * with KUnit. + * kunit_test_suites_for_module() - used to register one or more + * &struct kunit_suite with KUnit. * - * @suites_list...: a statically allocated list of &struct kunit_suite. + * @__suites: a statically allocated list of &struct kunit_suite. * - * Registers @suites_list with the test framework. See &struct kunit_suite for + * Registers @__suites with the test framework. See &struct kunit_suite for * more information. * * If a test suite is built-in, module_init() gets translated into @@ -267,7 +268,6 @@ static inline int kunit_run_all_tests(void) * module_{init|exit} functions for the builtin case when registering * suites via kunit_test_suites() below. */ -#ifdef MODULE #define kunit_test_suites_for_module(__suites) \ static int __init kunit_test_suites_init(void) \ { \ @@ -294,7 +294,7 @@ static inline int kunit_run_all_tests(void) * kunit_test_suites() - used to register one or more &struct kunit_suite * with KUnit. * - * @suites: a statically allocated list of &struct kunit_suite. + * @__suites: a statically allocated list of &struct kunit_suite. * * Registers @suites with the test framework. See &struct kunit_suite for * more information. @@ -308,10 +308,10 @@ static inline int kunit_run_all_tests(void) * module. * */ -#define kunit_test_suites(...) \ +#define kunit_test_suites(__suites...) \ __kunit_test_suites(__UNIQUE_ID(array), \ __UNIQUE_ID(suites), \ - __VA_ARGS__) + ##__suites) #define kunit_test_suite(suite) kunit_test_suites(&suite) -- 2.26.2