aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile
diff options
context:
space:
mode:
authorShuah Khan2021-09-15 15:28:09 -0600
committerShuah Khan2021-09-16 12:57:32 -0600
commitf5013d412a43662b63f3d5f3a804d63213acd471 (patch)
treecd6b79ce26d28638a70a74f88776d346f0616a2b /scripts/Makefile
parent20175d5eac5bb94a7a3719ef275337fc9abf26ac (diff)
selftests: kvm: fix get_run_delay() ignoring fscanf() return warn
Fix get_run_delay() to check fscanf() return value to get rid of the following warning. When fscanf() fails return MIN_RUN_DELAY_NS from get_run_delay(). Move MIN_RUN_DELAY_NS from steal_time.c to test_util.h so get_run_delay() and steal_time.c can use it. lib/test_util.c: In function ‘get_run_delay’: lib/test_util.c:316:2: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 316 | fscanf(fp, "%ld %ld ", &val[0], &val[1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 'scripts/Makefile')
0 files changed, 0 insertions, 0 deletions