diff options
author | 2024-08-10 19:23:33 +0530 | |
---|---|---|
committer | 2024-09-03 11:42:55 -0600 | |
commit | b4bcdff7e839237d89a2aa15b6042b96b0240ac4 (patch) | |
tree | 54e546aa9e2779748755148ce7e7633be27df03f /scripts/generate_rust_analyzer.py | |
parent | selftests:core: test coverage for dup_fd() failure handling in unshare_fd() (diff) | |
download | linux-rng-b4bcdff7e839237d89a2aa15b6042b96b0240ac4.tar.xz linux-rng-b4bcdff7e839237d89a2aa15b6042b96b0240ac4.zip |
selftests: filesystems: fix warn_unused_result build warnings
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’ [-Wunused-result]
statmount_test_ns.c:323:17: warning: ignoring return value of ‘read’
declared with attribute ‘warn_unused_result’ [-Wunused-result]
```
Signed-off-by: Abhinav Jain <jain.abhinav177@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions