From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
intel-xe@lists.freedesktop.org
Subject: Re: [igt-dev] [Intel-gfx] [PATCH i-g-t v3 04/11] lib/kunit: Fix misplaced igt_kunit() doc
Date: Thu, 12 Oct 2023 16:47:17 +0200 [thread overview]
Message-ID: <20231012164717.1f068aaa@maurocar-mobl2> (raw)
In-Reply-To: <20231011141734.590321-17-janusz.krzysztofik@linux.intel.com>
On Wed, 11 Oct 2023 16:17:39 +0200
Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> wrote:
> When igt_kunit() was converted to a helper and wrapped with a new function
> promoted to take the name and role of the library API, related
> documentation was left unchanged and still placed in front the demoted
> function. Update that documentation and move it to where it now belongs.
>
> Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Reviewed-by: Mauro Carvaho Chehab <mchehab@kernel.org>
> ---
> lib/igt_kmod.c | 17 ++++++++---------
> 1 file changed, 8 insertions(+), 9 deletions(-)
>
> diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
> index df0e650d49..426ae5b26f 100644
> --- a/lib/igt_kmod.c
> +++ b/lib/igt_kmod.c
> @@ -762,15 +762,6 @@ static void *modprobe_task(void *arg)
> return NULL;
> }
>
> -/**
> - * igt_kunit:
> - * @module_name: the name of the module
> - * @opts: options to load the module
> - *
> - * Loads the test module, parses its (k)tap dmesg output, then unloads it
> - *
> - * Returns: IGT default codes
> - */
> static void __igt_kunit(struct igt_ktest *tst, const char *opts)
> {
> struct modprobe_data modprobe = { tst->kmod, opts, 0, };
> @@ -849,6 +840,14 @@ static void __igt_kunit(struct igt_ktest *tst, const char *opts)
> igt_skip_on_f(ret, "KTAP parser failed\n");
> }
>
> +/**
> + * igt_kunit:
> + * @module_name: the name of the module
> + * @name: the name of subtest, if different from that derived from module name
> + * @opts: options to load the module
> + *
> + * Loads the test module, parses its (k)tap dmesg output, then unloads it
> + */
> void igt_kunit(const char *module_name, const char *name, const char *opts)
> {
> struct igt_ktest tst = { .kmsg = -1, };
next prev parent reply other threads:[~2023-10-12 14:47 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-11 14:17 [igt-dev] [PATCH i-g-t v3 00/11] Kunit fixes and improvements Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 01/11] lib/ktap: Improve TODO workaround description Janusz Krzysztofik
2023-10-12 7:41 ` Kamil Konieczny
2023-10-12 14:45 ` [igt-dev] [Intel-gfx] " Mauro Carvalho Chehab
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 02/11] lib/kunit: Fix handling of potential errors from F_GETFL Janusz Krzysztofik
2023-10-12 14:46 ` [igt-dev] [Intel-gfx] " Mauro Carvalho Chehab
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 03/11] lib/kunit: Be more verbose on errors Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 04/11] lib/kunit: Fix misplaced igt_kunit() doc Janusz Krzysztofik
2023-10-12 14:47 ` Mauro Carvalho Chehab [this message]
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 05/11] lib/kunit: Parse KTAP report from the main process thread Janusz Krzysztofik
2023-10-20 11:32 ` Kamil Konieczny
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 06/11] lib/kunit: Omit suite name prefix if the same as subtest name Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 07/11] tests/kms_selftest: Let subtest names match suite names Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 08/11] lib/kunit: Provide all results cleanup helper Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 09/11] lib/kunit: Prepare for KTAP parsing after modprobe completed Janusz Krzysztofik
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 10/11] lib/kunit: Fetch a list of test cases in advance Janusz Krzysztofik
2023-10-20 11:33 ` Kamil Konieczny
2023-10-11 14:17 ` [igt-dev] [PATCH i-g-t v3 11/11] lib/kunit: Execute kunit test cases only when needed Janusz Krzysztofik
2023-10-12 1:00 ` [igt-dev] ✓ Fi.CI.BAT: success for Kunit fixes and improvements (rev4) Patchwork
2023-10-12 1:21 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-10-12 17:59 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-10-13 12:59 ` Janusz Krzysztofik
2023-10-17 5:41 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231012164717.1f068aaa@maurocar-mobl2 \
--to=mauro.chehab@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=janusz.krzysztofik@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox