On 2017-02-20 16:25, abdul wrote:
Hi,
next-20170220 fails to build on Power 8 (PowerVM LPAR) with these
errors.
with same config, next-20170215 builds fine.
the config file used is attached, by default
CONFIG_VIRT_CPU_ACCOUNTING_NATIVE was not set.
(X) Simple tick based cputime accounting
( ) Deterministic task and CPU time accounting
( ) Full dynticks CPU time accounting
arch/powerpc/kernel/time.c: In function ‘running_clock’:
arch/powerpc/kernel/time.c:712:25: error: implicit declaration of
function ‘cputime_to_nsecs’
[-Werror=implicit-function-declaration]
return local_clock() -
cputime_to_nsecs(kcpustat_this_cpu->cpustat[CPUTIME_STEAL]);
^
cc1: all warnings being treated as errors
make[1]: *** [arch/powerpc/kernel/time.o] Error 1
make[1]: *** Waiting for unfinished jobs....,
Note*: Problem is not seen when CONFIG_VIRT_CPU_ACCOUNTING_NATIVE is
enabled i.e
( ) Simple tick based cputime accounting
(X) Deterministic task and CPU time accounting
( ) Full dynticks CPU time accounting
Bisecting resulted in below commit causing the build break.
commit f22d6df0b23e66b6d9058e2570402606a6ad069a
Author: Frederic Weisbecker <[email protected]>
Date: Tue Jan 31 04:09:43 2017 +0100
sched/cputime: Remove jiffies based cputime
This cputime_t implementation is now unused, we can remove it.
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Stanislaw Gruszka <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Wanpeng Li <[email protected]>
Link:
http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Regard's
Abdul Haleem
IBM Linux Technology Center.