mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
kernel: time: Fix compilation
Signed-off-by: celtare21 <celtare21@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
231031dd22
commit
3bdb9758bd
@ -904,13 +904,13 @@ int common_timer_set(struct k_itimer *timr, int flags,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int do_timer_settime(timer_t timer_id, int flags,
|
||||
static int do_timer_settime(timer_t timer_id, int tmr_flags,
|
||||
struct itimerspec64 *new_spec64,
|
||||
struct itimerspec64 *old_spec64)
|
||||
{
|
||||
const struct k_clock *kc;
|
||||
struct k_itimer *timr;
|
||||
unsigned long flag;
|
||||
unsigned long flags;
|
||||
int error = 0;
|
||||
|
||||
if (!timespec64_valid(&new_spec64->it_interval) ||
|
||||
@ -920,7 +920,7 @@ static int do_timer_settime(timer_t timer_id, int flags,
|
||||
if (old_spec64)
|
||||
memset(old_spec64, 0, sizeof(*old_spec64));
|
||||
|
||||
timr = lock_timer(timer_id, &flag);
|
||||
timr = lock_timer(timer_id, &flags);
|
||||
retry:
|
||||
if (!timr)
|
||||
return -EINVAL;
|
||||
@ -929,7 +929,7 @@ retry:
|
||||
if (WARN_ON_ONCE(!kc || !kc->timer_set))
|
||||
error = -EINVAL;
|
||||
else
|
||||
error = kc->timer_set(timr, flags, new_spec64, old_spec64);
|
||||
error = kc->timer_set(timr, tmr_flags, new_spec64, old_spec64);
|
||||
|
||||
if (error == TIMER_RETRY) {
|
||||
// We already got the old time...
|
||||
|
Loading…
x
Reference in New Issue
Block a user