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: Tue,  2 Jun 2026 11:40:20 +0000	[thread overview]
Message-ID: <20260602114020.4465-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260602-doc_add_missing_headers-v2-1-9ccd988c093d@suse.com>

Hi Andrea,

thank you for the documentation series. A few issues below.

---

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

Claim: "listing all 245 SAFE_* wrapper macros"
Verified: 252 unique SAFE_* macro names in include/; the 7 not listed
are header guards (SAFE_MACROS_FN_H__, SAFE_NET_FN_H__,
SAFE_STDIO_FN_H__, SAFE_RT_SIGNAL_H__) and internal helpers
(SAFE_FILE_OPS, SAFE_FILE_OPS_FN, SAFE_IOCTL_).  Count 245 is correct.

No other issues found in this commit.

---

[PATCH 2/3] doc: Complete struct tst_test table and shell API docs

Claim: "Add 8 missing struct tst_test fields"
Verified: .filesystems, .forks_child, .min_runtime, .needs_abi_bits,
.needs_cgroup_nsdelegate, .needs_cgroup_ver, .needs_hugetlbfs,
.runs_script — all present in include/tst_test.h.  Count 8 is correct.

Alphabetical fixup (.mnt_flags ↔ .min_swap_avail): verified correct.

Shell API variables: spot-checked TST_NEEDS_KCONFIGS_IFS, TST_FS_TYPE
(default ext2), TST_TEST_DATA_IFS (default space), checkpoint functions
and retry helpers — all accurate.

No issues found in this commit.

---

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

Claim: "10 headers" added.
Verified in the api_c_tests.rst diff:
  tse_uinput.h, tst_clone.h, tst_device.h, tst_fs.h,
  tst_fuzzy_sync.h, tst_hugepage.h, tst_kconfig.h, tst_memutils.h,
  tst_safe_file_ops.h, tst_taint.h — count 10 is correct.

Claim: removing @param, @return, @relates, @sa Doxygen directives.
Verified: @param in tst_kconfig.h, @return in tst_device.h,
@sa and @relates in tst_fuzzy_sync.h — all removed. Correct.

BUG 1 — include/tst_device.h: missing blank line

After the patch, tst_mount_has_opt()'s declaration is immediately
followed by the kernel-doc comment for tst_is_mounted() with no
blank line between them.  Every other consecutive function pair in
the file (tst_is_mounted / tst_is_mounted_ro, tst_is_mounted_ro /
tst_is_mounted_rw, etc.) has a blank line separating the declaration
from the next /** block.  Please add the missing blank line:

> int tst_mount_has_opt(const char *path, const char *opt);
> /**
>  * tst_is_mounted() - Check if a path is a mount point.

Should be:

  int tst_mount_has_opt(const char *path, const char *opt);

  /**
   * tst_is_mounted() - Check if a path is a mount point.

BUG 2 — include/tst_kconfig.h: TST_KCONFIG_INIT() drops string.h note

The original comment read:
  "Initialization helper macro for struct tst_kconfig_var.
   Requires <string.h>"

The new kernel-doc comment omits the <string.h> requirement:
  "TST_KCONFIG_INIT() - Initialization helper macro for struct
   tst_kconfig_var."

The macro expands to { .id_len = strlen(confname) }, which requires
strlen().  tst_kconfig.h includes only <stdbool.h> and <stddef.h>,
not <string.h>.  The original "Requires <string.h>" note was there for
a reason.  Please preserve it, e.g.:

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

MINOR — include/tst_device.h: tst_device global uses /* not /**

The tst_device extern pointer:

  /*
   * tst_device - Pointer to the test block device.
   * ...
   */
  extern struct tst_device *tst_device;

uses a plain /* comment, so the kernel-doc extractor will not emit an
entry for it even though api_c_tests.rst now includes
`.. kernel-doc:: ../../include/tst_device.h`.  The struct tst_device
doc block above already carries the "Automatically initialized if
tst_test.needs_device is set." note, so this may be intentional.
If the intent is to have the variable appear in the API docs, change
/* to /**.

---

Verdict: Needs revision (BUG 1 and BUG 2 above).

LTP AI Reviewer

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

  reply	other threads:[~2026-06-02 11:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 10:09 [LTP] [PATCH v2 0/3] Complete the documentation adding missing headers Andrea Cervesato
2026-06-02 10:09 ` [LTP] [PATCH v2 1/3] doc: Add missing API references to api_c_tests.rst Andrea Cervesato
2026-06-02 11:40   ` linuxtestproject.agent [this message]
2026-06-02 10:09 ` [LTP] [PATCH v2 2/3] doc: Complete struct tst_test table and shell API docs Andrea Cervesato
2026-06-02 10:09 ` [LTP] [PATCH v2 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-03  9:56 [LTP] [PATCH v4 1/3] " Andrea Cervesato
2026-06-03 14:40 ` [LTP] " linuxtestproject.agent
2026-06-02 15:49 [LTP] [PATCH v3 1/3] " Andrea Cervesato
2026-06-02 17:34 ` [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=20260602114020.4465-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.