All of lore.kernel.org
 help / color / mirror / Atom feed
From: linuxtestproject.agent@gmail.com
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] doc: Add missing API references to api_c_tests.rst
Date: Wed,  3 Jun 2026 14:40:17 +0000	[thread overview]
Message-ID: <20260603144017.4239-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260603-doc_add_missing_headers-v4-1-1fe3a372c155@suse.com>

From: Copilot <copilot@review>
To: ltp@lists.linux.it
Cc: andrea.cervesato@suse.com, pvorel@suse.cz
Subject: Re: [PATCH 1/3] doc: Add missing API references to api_c_tests.rst

Hi Andrea,

Series looks good overall — the reorganisation, kernel-doc conversions and
the new SAFE_* reference page are all useful additions. A few issues to fix
before merging:

---
[PATCH 1/3] doc: Add missing API references to api_c_tests.rst
---

Commit message: empty "Verdict:" trailer
-----------------------------------------

The commit message contains a bare "Verdict:" line with no value:

  Fixes: eef750db28 ("libs: adopt tse_ prefix for extended (non-core) library")
  Reviewed-by: Petr Vorel <pvorel@suse.cz>
  Verdict:
  Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>

This looks like a leftover placeholder from a review-template tool.
Please remove the "Verdict:" line before sending v2.

include/tst_kconfig.h: multi-line kernel-doc summary
------------------------------------------------------

> +/**
> + * TST_KCONFIG_INIT() - Initialization helper macro for struct
> + *     tst_kconfig_var. Requires <string.h> for strlen().
> + * @confname: Config variable name string.
> + */

Kernel-doc requires the one-line summary to fit on the same line as the
identifier, i.e. everything between " - " and the first blank comment
line is treated as the description. A line-wrapped summary like the above
is not valid; the second line will not be merged into the summary by the
extractor. Fix by combining the description onto a single line, or move
the "Requires <string.h>" note into the description body after a blank:

  /**
   * TST_KCONFIG_INIT() - Initialization helper for struct tst_kconfig_var.
   * @confname: Config variable name string.
   *
   * Requires <string.h> for strlen().
   */

---
[PATCH 3/3] doc: Add SAFE_* macros reference page
---

SAFE_GETGRNAM_FALLBACK — missing argument
-----------------------------------------

> - ``SAFE_GETGRNAM_FALLBACK(name)``

The actual macro in include/tst_safe_macros.h takes two arguments:

  #define SAFE_GETGRNAM_FALLBACK(name, fallback) \

Please correct to:

  ``SAFE_GETGRNAM_FALLBACK(name, fallback)``

SAFE_MOUNT2 — missing is_fuse argument
---------------------------------------

> - ``SAFE_MOUNT2(source, target, filesystemtype, mountflags, data)``

The macro in include/tst_safe_macros.h takes a sixth argument:

  #define SAFE_MOUNT2(source, target, filesystemtype, \
                      mountflags, data, is_fuse) \

Please correct to:

  ``SAFE_MOUNT2(source, target, filesystemtype, mountflags, data, is_fuse)``

SAFE_IO_URING_ENTER — missing strict argument
---------------------------------------------

> - ``SAFE_IO_URING_ENTER(fd, to_submit, min_complete, flags, sig)``

The macro in include/tst_safe_io_uring.h takes strict as its first argument:

  #define SAFE_IO_URING_ENTER(strict, fd, to_submit, min_complete, flags, sig) \

Please correct to:

  ``SAFE_IO_URING_ENTER(strict, fd, to_submit, min_complete, flags, sig)``

Commit message: "all 245" vs actual macro count ⚠️
----------------------------------------------------

The commit message says "listing all 245 SAFE_* wrapper macros", but
grepping the relevant headers finds approximately 247 #define SAFE_*
entries. If a small number of macros are intentionally excluded (e.g.
internal or deprecated ones), please either update the count or note
which macros are omitted and why.

---
Everything else in the series looks correct:

[PATCH 1/3]
  - The 10 headers listed in the commit message match the diff.
  - Alphabetical re-ordering in api_c_tests.rst is correct.
  - Kernel-doc conversions in tse_uinput.h, tst_clone.h, tst_device.h,
    tst_fuzzy_sync.h, tst_hugepage.h, tst_taint.h are accurate and match
    the implementations (tst_clear_device() is confirmed called from
    tst_mkfs(), tst_taint_check() auto-called at end of test, etc.).

[PATCH 2/3]
  - The 8 missing .tst_test fields are correctly identified and added.
  - .mnt_flags / .min_swap_avail alphabetical fix is correct.
  - Shell API variables section matches tst_test.sh.

[PATCH 3/3]
  - SAFE_MKFS in tst_mkfs.h: confirmed.
  - SAFE_FORK in tst_test.h, SAFE_CLONE in tst_clone.h: confirmed.
  - SAFE_CG_* in tst_cgroup.h, SAFE_EPOLL_* in tst_epoll.h: confirmed.
  - SAFE_RT_SIGACTION / SAFE_RT_SIGPROCMASK in lapi/safe_rt_signal.h: confirmed.

Please address the five issues above (four wrong macro signatures / one
stray commit message line) in v2.

Thanks,
Copilot reviewer

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  parent reply	other threads:[~2026-06-03 14:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-03  9:56 [LTP] [PATCH v4 0/3] Complete the documentation adding missing headers Andrea Cervesato
2026-06-03  9:56 ` [LTP] [PATCH v4 1/3] doc: Add missing API references to api_c_tests.rst Andrea Cervesato
2026-06-03 10:04   ` Andrea Cervesato via ltp
2026-06-03 14:40   ` linuxtestproject.agent [this message]
2026-06-03  9:56 ` [LTP] [PATCH v4 2/3] doc: Complete struct tst_test table and shell API docs Andrea Cervesato
2026-06-03  9:56 ` [LTP] [PATCH v4 3/3] doc: Add SAFE_* macros reference page Andrea Cervesato
  -- strict thread matches above, loose matches on Subject: below --
2026-06-05  9:17 [LTP] [PATCH v6 1/3] doc: Add missing API references to api_c_tests.rst Andrea Cervesato
2026-06-05  9:30 ` [LTP] " linuxtestproject.agent
2026-06-05  9:39   ` Andrea Cervesato via ltp
2026-06-04  8:45 [LTP] [PATCH v5 1/3] " Andrea Cervesato
2026-06-04  9:34 ` [LTP] " linuxtestproject.agent
2026-06-04 10:17 ` linuxtestproject.agent
2026-06-02 15:49 [LTP] [PATCH v3 1/3] " Andrea Cervesato
2026-06-02 17:34 ` [LTP] " linuxtestproject.agent
2026-06-02 10:09 [LTP] [PATCH v2 1/3] " Andrea Cervesato
2026-06-02 11:40 ` [LTP] " linuxtestproject.agent
2026-06-01 10:36 [LTP] [PATCH 1/3] " Andrea Cervesato
2026-06-01 13:41 ` [LTP] " linuxtestproject.agent
2026-06-01 13:56   ` Andrea Cervesato via ltp

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=20260603144017.4239-1-linuxtestproject.agent@gmail.com \
    --to=linuxtestproject.agent@gmail.com \
    --cc=andrea.cervesato@suse.de \
    --cc=ltp@lists.linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.