Re: [PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-08-16 Thread Shuah Khan
On 8/10/24 07:53, Abhinav Jain wrote: Add return value checks for read & write calls in test_listmount_ns function. This patch resolves below compilation warnings: ``` statmount_test_ns.c: In function ‘test_listmount_ns’: statmount_test_ns.c:322:17: warning: ignoring return value of ‘write’ dec

[PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-08-10 Thread Abhinav Jain
Add return value checks for read & write calls in test_listmount_ns function. This patch resolves below compilation warnings: ``` statmount_test_ns.c: In function ‘test_listmount_ns’: statmount_test_ns.c:322:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result

Re: [PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-06-11 Thread Shuah Khan
On 6/3/24 05:17, Amer Al Shanawany wrote: On 5/4/24 19:17, Amer Al Shanawany wrote: On 4/19/24 18:41, Muhammad Usama Anjum wrote: On 4/17/24 11:49 PM, Amer Al Shanawany wrote: Fix the following warnings by adding return check and error messages. statmount_test.c: In function ‘cleanup_namespac

Re: [PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-06-03 Thread Amer Al Shanawany
On 5/4/24 19:17, Amer Al Shanawany wrote: > On 4/19/24 18:41, Muhammad Usama Anjum wrote: >> On 4/17/24 11:49 PM, Amer Al Shanawany wrote: >>> Fix the following warnings by adding return check and error messages. >>> >>> statmount_test.c: In function ‘cleanup_namespace’: >>> statmount_test.c:128:9:

Re: [PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-05-04 Thread Amer Al Shanawany
On 4/19/24 18:41, Muhammad Usama Anjum wrote: > On 4/17/24 11:49 PM, Amer Al Shanawany wrote: >> Fix the following warnings by adding return check and error messages. >> >> statmount_test.c: In function ‘cleanup_namespace’: >> statmount_test.c:128:9: warning: ignoring return value of ‘fchdir’ >> de

Re: [PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-04-19 Thread Muhammad Usama Anjum
On 4/17/24 11:49 PM, Amer Al Shanawany wrote: > Fix the following warnings by adding return check and error messages. > > statmount_test.c: In function ‘cleanup_namespace’: > statmount_test.c:128:9: warning: ignoring return value of ‘fchdir’ > declared with attribute ‘warn_unused_result’ [-Wunused

[PATCH] selftests: filesystems: fix warn_unused_result build warnings

2024-04-17 Thread Amer Al Shanawany
Fix the following warnings by adding return check and error messages. statmount_test.c: In function ‘cleanup_namespace’: statmount_test.c:128:9: warning: ignoring return value of ‘fchdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 128 | fchdir(orig_root); |