Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1713404
| From | Shuah Khan <shuahkh@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning |
| Date | 2017-08-17 01:10 +0200 |
| Message-ID | <uffBL-4VU-3@gated-at.bofh.it> (permalink) |
| References | <ueuMx-IV-9@gated-at.bofh.it> <ueuMx-IV-7@gated-at.bofh.it> <ueIZc-1d4-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi John, On 08/15/2017 06:11 AM, Miroslav Lichvar wrote: > On Mon, Aug 14, 2017 at 02:01:36PM -0700, John Stultz wrote: >> Fixes the following build warning: >> freq-step.c: In function ‘main’: >> freq-step.c:271:1: warning: control reaches end of non-void function [-Wreturn-type] > >> @@ -268,4 +268,6 @@ int main(int argc, char **argv) >> ksft_exit_fail(); This needs to be changes as well to return ksft_exit_fail(); >> >> ksft_exit_pass(); >> + >> + return 0; >> } > > It seems most tests use "return ksft_exit_pass();". Would that be > preferred over separate return? I don't have a preference. Let's go with "return ksft_exit_pass();" > > Both patches in this set look good to me. > > Thanks, > thanks, -- Shuah
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning John Stultz <john.stultz@linaro.org> - 2017-08-14 23:10 +0200
Re: [RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning Miroslav Lichvar <mlichvar@redhat.com> - 2017-08-15 14:20 +0200
Re: [RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning Shuah Khan <shuahkh@osg.samsung.com> - 2017-08-17 01:10 +0200
Re: [RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning John Stultz <john.stultz@linaro.org> - 2017-08-17 01:20 +0200
Re: [RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning John Stultz <john.stultz@linaro.org> - 2017-08-17 05:40 +0200
Re: [RFC][PATCH 2/2] selftests: timers: freq-step: Fix build warning Shuah Khan <shuahkh@osg.samsung.com> - 2017-08-17 06:00 +0200
csiph-web