diff options
author | Shuah Khan <skhan@linuxfoundation.org> | 2021-09-15 23:28:06 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2021-09-16 20:57:02 +0200 |
commit | 39a71f712d8a13728febd8f3cb3f6db7e1fa7221 (patch) | |
tree | ebeda92f8beb947d04e75ba5c5fa84c43e3ab3df /tools/perf | |
parent | selftests: be sure to make khdr before other targets (diff) | |
download | linux-39a71f712d8a13728febd8f3cb3f6db7e1fa7221.tar.xz linux-39a71f712d8a13728febd8f3cb3f6db7e1fa7221.zip |
selftests:kvm: fix get_warnings_count() ignoring fscanf() return warn
Fix get_warnings_count() to check fscanf() return value to get rid
of the following warning:
x86_64/mmio_warning_test.c: In function ‘get_warnings_count’:
x86_64/mmio_warning_test.c:85:2: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
85 | fscanf(f, "%d", &warnings);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions