The patch titled Subject: selftests: proc: remove unreached code and fix build warning has been added to the -mm mm-nonmm-unstable branch. Its filename is selftests-proc-remove-unreached-code-and-fix-build-warning.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-proc-remove-unreached-code-and-fix-build-warning.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Amer Al Shanawany <amer.shanawany@xxxxxxxxx> Subject: selftests: proc: remove unreached code and fix build warning Date: Mon, 3 Jun 2024 14:42:20 +0200 fix the following warning: proc-empty-vm.c:385:17: warning: ignoring return value of `write' declared with attribute `warn_unused_result' [-Wunused-result] 385 | write(1, buf, rv); | ^~~~~~~~~~~~~~~~~ Link: https://lkml.kernel.org/r/20240603124220.33778-1-amer.shanawany@xxxxxxxxx Signed-off-by: Amer Al Shanawany <amer.shanawany@xxxxxxxxx> Reported-by: kernel test robot <lkp@xxxxxxxxx> Closes: https://lore.kernel.org/r/202404010211.ygidvMwa-lkp@xxxxxxxxx/ Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Javier Carrasco <javier.carrasco.cruz@xxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Cc: Swarup Laxman Kotiaklapudi <swarupkotikalapudi@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/proc/proc-empty-vm.c | 3 --- 1 file changed, 3 deletions(-) --- a/tools/testing/selftests/proc/proc-empty-vm.c~selftests-proc-remove-unreached-code-and-fix-build-warning +++ a/tools/testing/selftests/proc/proc-empty-vm.c @@ -381,9 +381,6 @@ static int test_proc_pid_statm(pid_t pid assert(rv >= 0); assert(rv <= sizeof(buf)); - if (0) { - write(1, buf, rv); - } const char *p = buf; const char *const end = p + rv; _ Patches currently in -mm which might be from amer.shanawany@xxxxxxxxx are selftests-proc-remove-unreached-code-and-fix-build-warning.patch