Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kselftest/mm: clarify errors for pipe()

Patch series "selftests/mm: Tweaks to the cow test".

A collection of non-functional updates from David Hildenbrand's review.


This patch (of 4):

Specify that errors reported from pipe() failures are the result of
failures.

Link: https://lkml.kernel.org/r/20250610-selftest-mm-cow-tweaks-v1-0-43cd7457500f@kernel.org
Link: https://lkml.kernel.org/r/20250610-selftest-mm-cow-tweaks-v1-1-43cd7457500f@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Suggested-by: David Hildenbrand <david@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Mark Brown and committed by
Andrew Morton
be3d3343 7e43195c

+2 -2
+2 -2
tools/testing/selftests/mm/cow.c
··· 113 113 static int setup_comm_pipes(struct comm_pipes *comm_pipes) 114 114 { 115 115 if (pipe(comm_pipes->child_ready) < 0) { 116 - ksft_perror("pipe()"); 116 + ksft_perror("pipe() failed"); 117 117 return -errno; 118 118 } 119 119 if (pipe(comm_pipes->parent_ready) < 0) { 120 - ksft_perror("pipe()"); 120 + ksft_perror("pipe() failed"); 121 121 close(comm_pipes->child_ready[0]); 122 122 close(comm_pipes->child_ready[1]); 123 123 return -errno;