On 12 May 2015 at 00:30, Arnd Bergmann <[email protected]> wrote:

> On Monday 11 May 2015 19:15:14 Baolin Wang wrote:
> > +static int default_timer_get64(struct k_itimer *timr,
> > +                              struct itimerspec64 *cur_setting64)
> > +{
> > +       struct itimerspec cur_setting;
> > +       struct k_clock *kc = clockid_to_kclock(timr->it_clock);
> > +
> > +       kc->timer_get(timr, &cur_setting);
> > +       return 0;
> > +}
>
> This function is unfortunately incorrect, because you never copy
> the cur_setting value into cur_setting64.
>
>         Arnd
>

Hi Arnd,

Thanks for your comments. But i think this is just  a temporary default
function,
and will be removed after all the drivers' conversion, so just ensure it
won't
cause the kernel crash.

-- 
Baolin.wang
Best Regards
_______________________________________________
Y2038 mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/y2038

Reply via email to