From: Tobin C. Harding <hidden> Date: 2017-02-22 01:22:58
The current (2bfe01e) torvalds git tree fails to build on powerpc64. Build machine
is virtualized.
- Build error
arch/powerpc/kernel/time.c: In function ‘running_clock’:
arch/powerpc/kernel/time.c:712:25: error: implicit declaration of function ‘cputime_to_nsecs’
return local_clock() - cputime_to_nsecs(kcpustat_this_cpu->cpustat[CPUTIME_STEAL]);
^
$ cat .config | grep CONFIG_VIRT_CPU
# CONFIG_VIRT_CPU_ACCOUNTING_NATIVE is not set
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
$ cat .config | grep CONFIG_PPC_PSERIES
CONFIG_PPC_PSERIES=y
Looking into it I found there are compile time guards on CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
preventing cputime_to_nsecs being defined.
Removing the compile time guard allows the build to proceed, surely
this is not the correct solution though.
If you think this can be fixed with the *little* kernel dev knowledge
I have please point me at a starting place and I will dig into it.
thanks,
Tobin.
From: Andrew Donnellan <hidden> Date: 2017-02-22 02:47:53
On 22/02/17 12:22, Tobin C. Harding wrote:
The current (2bfe01e) torvalds git tree fails to build on powerpc64. Build machine
is virtualized.
- Build error
arch/powerpc/kernel/time.c: In function ‘running_clock’:
arch/powerpc/kernel/time.c:712:25: error: implicit declaration of function ‘cputime_to_nsecs’
return local_clock() - cputime_to_nsecs(kcpustat_this_cpu->cpustat[CPUTIME_STEAL]);
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2017-02-27 10:38:15
Hi Tobin,
"Tobin C. Harding" [off-list ref] writes:
The current (2bfe01e) torvalds git tree fails to build on powerpc64. Buil=
d machine
is virtualized.
- Build error
arch/powerpc/kernel/time.c: In function =E2=80=98running_clock=E2=80=99:
arch/powerpc/kernel/time.c:712:25: error: implicit declaration of functio=
If you think this can be fixed with the *little* kernel dev knowledge
I have please point me at a starting place and I will dig into it.
Thanks for trying to fix it.
You got unlucky and pulled Linus' tree just after a cleanup series was
merged, but before all the bugs had been shaken out.
cheers
From: Tobin C. Harding <hidden> Date: 2017-02-27 20:04:59
On Mon, Feb 27, 2017 at 09:38:13PM +1100, Michael Ellerman wrote:
Hi Tobin,
"Tobin C. Harding" [off-list ref] writes:
quoted
The current (2bfe01e) torvalds git tree fails to build on powerpc64. Build machine
is virtualized.
- Build error
arch/powerpc/kernel/time.c: In function ‘running_clock’:
arch/powerpc/kernel/time.c:712:25: error: implicit declaration of function ‘cputime_to_nsecs’
return local_clock() - cputime_to_nsecs(kcpustat_this_cpu->cpustat[CPUTIME_STEAL]);
^
...
quoted
If you think this can be fixed with the *little* kernel dev knowledge
I have please point me at a starting place and I will dig into it.
Thanks for trying to fix it.
You got unlucky and pulled Linus' tree just after a cleanup series was
merged, but before all the bugs had been shaken out.
Au contraire, I felt lucky to have bumped into a bug. I would like to
find more :)
Tobin
If you think this can be fixed with the *little* kernel dev knowledge
I have please point me at a starting place and I will dig into it.
=20
Thanks for trying to fix it.
=20
You got unlucky and pulled Linus' tree just after a cleanup series was
merged, but before all the bugs had been shaken out.
Au contraire, I felt lucky to have bumped into a bug. I would like to
find more :)
Hah, well, we have *plenty* :)
I keep a rough list of TODO/FIXME type things on github:
https://github.com/linuxppc/linux/issues/
If there's anything there that you want to have a go at please feel
free. If you have questions you can either comment on the issues or mail
me and/or this list.
cheers