Skip to content

Commit

Permalink
timer_settime: Fix checkpatch.pl warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jul 29, 2024
1 parent 94740a2 commit 4ba329b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion testcases/kernel/syscalls/timer_settime/timer_settime01.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ static void clear_signal(void)
* seconds of CPU time has been accumulated for the process and
* thread specific clocks.
*/
while (!caught_signal);
while (!caught_signal)
;

if (caught_signal != SIGALRM) {
tst_res(TFAIL, "Received incorrect signal: %s",
Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/timer_settime/timer_settime02.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "tst_timer.h"

static struct tst_its new_set, old_set;
static struct tst_its *pnew_set = &new_set, *pold_set = &old_set, *null_set = NULL;
static struct tst_its *pnew_set = &new_set, *pold_set = &old_set, *null_set;
static void *faulty_set;
static kernel_timer_t timer;
static kernel_timer_t timer_inval = (kernel_timer_t)-1;
Expand Down
6 changes: 4 additions & 2 deletions testcases/kernel/syscalls/timer_settime/timer_settime03.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void setup(void)
SAFE_CLOCK_GETRES(CLOCK_REALTIME, &realtime_resolution);

tst_res(TINFO, "CLOCK_REALTIME resolution %lins",
(long)realtime_resolution.tv_nsec);
(long)realtime_resolution.tv_nsec);
}

static void run(void)
Expand All @@ -93,7 +93,9 @@ static void run(void)
spec.it_interval.tv_nsec = realtime_resolution.tv_nsec;

SAFE_TIMER_SETTIME(timer, TIMER_ABSTIME, &spec, NULL);
while (!handler_called);
while (!handler_called)
;

errno = saved_errno;

if (overrun == -1)
Expand Down

0 comments on commit 4ba329b

Please sign in to comment.