Re: [PATCH] selftests: proc: remove unreached code and fix build warning

2024-06-11 Thread Shuah Khan
On 6/7/24 09:25, Alexey Dobriyan wrote: On Tue, Jun 04, 2024 at 08:25:31PM -0700, Andrew Morton wrote: On Mon, 3 Jun 2024 17:24:47 +0300 Alexey Dobriyan wrote: On Mon, Jun 03, 2024 at 02:42:20PM +0200, Amer Al Shanawany wrote: fix the following warning: proc-empty-vm.c:385:17: warning: ignor

Re: [PATCH] selftests: proc: remove unreached code and fix build warning

2024-06-07 Thread Alexey Dobriyan
On Tue, Jun 04, 2024 at 08:25:31PM -0700, Andrew Morton wrote: > On Mon, 3 Jun 2024 17:24:47 +0300 Alexey Dobriyan wrote: > > > On Mon, Jun 03, 2024 at 02:42:20PM +0200, Amer Al Shanawany wrote: > > > fix the following warning: > > > proc-empty-vm.c:385:17: warning: ignoring return value of ‘writ

Re: [PATCH] selftests: proc: remove unreached code and fix build warning

2024-06-04 Thread Andrew Morton
On Mon, 3 Jun 2024 17:24:47 +0300 Alexey Dobriyan wrote: > On Mon, Jun 03, 2024 at 02:42:20PM +0200, Amer Al Shanawany wrote: > > fix the following warning: > > proc-empty-vm.c:385:17: warning: ignoring return value of ‘write’ > > > --- a/tools/testing/selftests/proc/proc-empty-vm.c > > +++ b/to

Re: [PATCH] selftests: proc: remove unreached code and fix build warning

2024-06-03 Thread Alexey Dobriyan
On Mon, Jun 03, 2024 at 02:42:20PM +0200, Amer Al Shanawany wrote: > fix the following warning: > proc-empty-vm.c:385:17: warning: ignoring return value of ‘write’ > --- a/tools/testing/selftests/proc/proc-empty-vm.c > +++ b/tools/testing/selftests/proc/proc-empty-vm.c > @@ -381,9 +381,6 @@ static

[PATCH] selftests: proc: remove unreached code and fix build warning

2024-06-03 Thread Amer Al Shanawany
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); | ^ Reported-by: kernel test robot Closes: https://lore.ker