You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge: rtla: Fix exit status when returning from calls to usage()
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1954
rtla: Fix exit status when returning from calls to usage()
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2160394
commit 88c21260b9cd7efabbc8c5fce1448c70fe0c4058 (HEAD -> bz2160394, jkacur/bz2160394)
Author: John Kacur <jkacur@redhat.com>
Date: Mon Nov 7 09:43:13 2022 -0500
rtla: Fix exit status when returning from calls to usage()
rtla_usage(), osnoise_usage() and timerlat_usage() all exit with an
error status.
However when these are called from help, they should exit with a
non-error status.
Fix this by passing the exit status to the functions.
Note, although we remove the subsequent call to exit after calling
usage, we leave it in at the end of a function to suppress the compiler
warning "control reaches end of a non-void function".
Link: https://lkml.kernel.org/r/20221107144313.22470-1-jkacur@redhat.com
Signed-off-by: John Kacur <jkacur@redhat.com>
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
Approved-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Approved-by: Eder Zulian <ezulian@redhat.com>
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
0 commit comments