Re: [PATCH] leds/trigger/activity: add a system activity LED trigger

From: Willy Tarreau
Date: Thu Aug 24 2017 - 08:08:31 EST


Hi Jacek,

On Thu, Mar 09, 2017 at 09:48:39PM +0100, Jacek Anaszewski wrote:
> Hi Willy,
>
> Thanks for the patch.
>
> Unfortunately I'm getting following build break, while trying to
> test it on recent linux-next:
>
> drivers/leds/trigger/ledtrig-activity.c: In function
> 'led_activity_function':
> drivers/leds/trigger/ledtrig-activity.c:67:14: error: implicit
> declaration of function 'cputime64_to_jiffies64'
> [-Werror=implicit-function-declaration]
> curr_idle = cputime64_to_jiffies64(curr_idle);

It took me longer than I hoped to get back to this, but here's a new
version which works on 4.13-rc6 by not relying on jiffies anymore.

Thanks!
Willy