Re: [PATCH] selftests: intel_pstate: ftime() is deprecated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 11, 2023 at 01:15:33PM +0200, Ricardo Cañuelo wrote:
> From: Tommi Rantala <tommi.t.rantala@xxxxxxxxx>
> 
> commit fc4a3a1bf9ad799181e4d4ec9c2598c0405bc27d upstream.
> 
> Use clock_gettime() instead of deprecated ftime().
> 
>   aperf.c: In function ‘main’:
>   aperf.c:58:2: warning: ‘ftime’ is deprecated [-Wdeprecated-declarations]
>      58 |  ftime(&before);
>         |  ^~~~~
>   In file included from aperf.c:9:
>   /usr/include/sys/timeb.h:39:12: note: declared here
>      39 | extern int ftime (struct timeb *__timebuf)
>         |            ^~~~~
> 
> Signed-off-by: Tommi Rantala <tommi.t.rantala@xxxxxxxxx>
> Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Ricardo Cañuelo <ricardo.canuelo@xxxxxxxxxxxxx>

As you are passing this on to us, you need to also sign off on it as per
our documentation.

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux