]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: cputhreads: Add missing include file
authorGuenter Roeck <linux@roeck-us.net>
Sun, 14 Aug 2016 20:53:17 +0000 (13:53 -0700)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 22 Aug 2016 01:09:33 +0000 (11:09 +1000)
commitc81bc1ce78262a017381f57c0f1123b80c0a65c0
treecfb6b3d1abefcc87bbe2a6ae0c2a81760a32f8cb
parent1fa859b2de8f1ef05332f907c6e06d634c23731e
powerpc: cputhreads: Add missing include file

Powerpc builds may fail with the following build error.

Error log:
In file included from ./arch/powerpc/include/asm/mmu_context.h:11:0,
                 from ./include/linux/mmu_context.h:4,
 from mm/mmu_context.c:8:
./arch/powerpc/include/asm/cputhreads.h: In function 'get_tensr':
./arch/powerpc/include/asm/cputhreads.h:101:2: error:
implicit declaration of function 'cpu_has_feature'

The problem can be triggered by configuring ppc64e_defconfig and selecting
CONFIG_TICK_CPU_ACCOUNTING instead of CONFIG_VIRT_CPU_ACCOUNTING_NATIVE.

Fixes: 1a96940e6385 ("powerpc: Move cpu_has_feature() to a separate file")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/cputhreads.h