* [LTP] [PATCH v2 1/2] getpid: Link manpage in docparse comments
@ 2026-05-24 16:17 Jinseok Kim
2026-05-24 16:17 ` [LTP] [PATCH v2 2/2] getpid02: Remove unused header and fix minor style issue Jinseok Kim
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Jinseok Kim @ 2026-05-24 16:17 UTC (permalink / raw)
To: ltp
Signed-off-by: Jinseok Kim <always.starving0@gmail.com>
---
Changes in v2:
- Split indentation changes into a separate commit
- Link to v1: https://lore.kernel.org/ltp/20260503085544.16915-2-always.starving0@gmail.com
---
testcases/kernel/syscalls/getpid/getpid01.c | 3 ++-
testcases/kernel/syscalls/getpid/getpid02.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/getpid/getpid01.c b/testcases/kernel/syscalls/getpid/getpid01.c
index d9ba0953c..8fcd351d6 100644
--- a/testcases/kernel/syscalls/getpid/getpid01.c
+++ b/testcases/kernel/syscalls/getpid/getpid01.c
@@ -4,7 +4,8 @@
*/
/*\
- * Verify that getpid() system call returns process ID in range <2, PID_MAX>.
+ * Verify that :manpage:`getpid(2)` system call returns process ID in range
+ * <2, PID_MAX>.
*/
#include <stdlib.h>
diff --git a/testcases/kernel/syscalls/getpid/getpid02.c b/testcases/kernel/syscalls/getpid/getpid02.c
index 3da853d48..4d2402932 100644
--- a/testcases/kernel/syscalls/getpid/getpid02.c
+++ b/testcases/kernel/syscalls/getpid/getpid02.c
@@ -6,8 +6,10 @@
/*\
* Check that:
*
- * - fork() in parent returns the same pid as getpid() in child
- * - getppid() in child returns the same pid as getpid() in parent
+ * - :manpage:`fork(2)` in parent returns the same pid as
+ * :manpage:`getpid(2)` in child
+ * - :manpage:`getppid(2)` in child returns the same pid as
+ * :manpage:`getpid(2)` in parent
*/
#include <errno.h>
--
2.43.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 6+ messages in thread* [LTP] [PATCH v2 2/2] getpid02: Remove unused header and fix minor style issue
2026-05-24 16:17 [LTP] [PATCH v2 1/2] getpid: Link manpage in docparse comments Jinseok Kim
@ 2026-05-24 16:17 ` Jinseok Kim
2026-06-02 16:10 ` Andrea Cervesato via ltp
2026-05-24 17:03 ` [LTP] getpid: Link manpage in docparse comments linuxtestproject.agent
2026-06-02 16:11 ` [LTP] [PATCH v2 1/2] " Andrea Cervesato via ltp
2 siblings, 1 reply; 6+ messages in thread
From: Jinseok Kim @ 2026-05-24 16:17 UTC (permalink / raw)
To: ltp
Remove the unused <errno.h> header.
Use tabs for indentation.
Signed-off-by: Jinseok Kim <always.starving0@gmail.com>
---
testcases/kernel/syscalls/getpid/getpid02.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/getpid/getpid02.c b/testcases/kernel/syscalls/getpid/getpid02.c
index 4d2402932..08fcd5337 100644
--- a/testcases/kernel/syscalls/getpid/getpid02.c
+++ b/testcases/kernel/syscalls/getpid/getpid02.c
@@ -12,8 +12,6 @@
* :manpage:`getpid(2)` in parent
*/
-#include <errno.h>
-
#include "tst_test.h"
static pid_t *child_pid;
@@ -53,7 +51,7 @@ static void verify_getpid(void)
static void setup(void)
{
child_pid = SAFE_MMAP(NULL, sizeof(pid_t), PROT_READ | PROT_WRITE,
- MAP_ANONYMOUS | MAP_SHARED, -1, 0);
+ MAP_ANONYMOUS | MAP_SHARED, -1, 0);
}
static void cleanup(void)
--
2.43.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [LTP] getpid: Link manpage in docparse comments
2026-05-24 16:17 [LTP] [PATCH v2 1/2] getpid: Link manpage in docparse comments Jinseok Kim
2026-05-24 16:17 ` [LTP] [PATCH v2 2/2] getpid02: Remove unused header and fix minor style issue Jinseok Kim
@ 2026-05-24 17:03 ` linuxtestproject.agent
2026-06-02 16:10 ` Andrea Cervesato via ltp
2026-06-02 16:11 ` [LTP] [PATCH v2 1/2] " Andrea Cervesato via ltp
2 siblings, 1 reply; 6+ messages in thread
From: linuxtestproject.agent @ 2026-05-24 17:03 UTC (permalink / raw)
To: Jinseok Kim; +Cc: ltp, LTP AI Reviewer
Hi Jinseok,
On Mon May 25 01:17:03 2026, Jinseok Kim wrote:
> getpid: Link manpage in docparse comments
> -#include <errno.h>
> -
> #include "tst_test.h"
Both patches look good. The `:manpage:` directives are correct Sphinx
docparse syntax, the unused `<errno.h>` removal is clean, and the
SAFE_MMAP continuation line is now properly tab-indented.
Reviewed-by: LTP AI Reviewer <ltp-ai@noreply.github.com>
---
Note:
Our agent completed the review of the patch. The full review can be
found at: https://github.com/linux-test-project/ltp-agent/actions/runs/26367328648
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LTP] [PATCH v2 1/2] getpid: Link manpage in docparse comments
2026-05-24 16:17 [LTP] [PATCH v2 1/2] getpid: Link manpage in docparse comments Jinseok Kim
2026-05-24 16:17 ` [LTP] [PATCH v2 2/2] getpid02: Remove unused header and fix minor style issue Jinseok Kim
2026-05-24 17:03 ` [LTP] getpid: Link manpage in docparse comments linuxtestproject.agent
@ 2026-06-02 16:11 ` Andrea Cervesato via ltp
2 siblings, 0 replies; 6+ messages in thread
From: Andrea Cervesato via ltp @ 2026-06-02 16:11 UTC (permalink / raw)
To: Jinseok Kim; +Cc: ltp
Merged, Thanks!
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-06-02 16:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-24 16:17 [LTP] [PATCH v2 1/2] getpid: Link manpage in docparse comments Jinseok Kim
2026-05-24 16:17 ` [LTP] [PATCH v2 2/2] getpid02: Remove unused header and fix minor style issue Jinseok Kim
2026-06-02 16:10 ` Andrea Cervesato via ltp
2026-05-24 17:03 ` [LTP] getpid: Link manpage in docparse comments linuxtestproject.agent
2026-06-02 16:10 ` Andrea Cervesato via ltp
2026-06-02 16:11 ` [LTP] [PATCH v2 1/2] " Andrea Cervesato via ltp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox