Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1462475 > unrolled thread

[PATCH] powerpc: cputhreads: Add missing include file

Started byGuenter Roeck <linux@roeck-us.net>
First post2016-08-14 23:00 +0200
Last post2016-08-14 23:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] powerpc: cputhreads: Add missing include file Guenter Roeck <linux@roeck-us.net> - 2016-08-14 23:00 +0200

#1462475 — [PATCH] powerpc: cputhreads: Add missing include file

FromGuenter Roeck <linux@roeck-us.net>
Date2016-08-14 23:00 +0200
Subject[PATCH] powerpc: cputhreads: Add missing include file
Message-ID<s6aFI-4Et-37@gated-at.bofh.it>
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: b92a226e5284 ("powerpc: Move cpu_has_feature() to a separate file")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
This is the second attempt to fix this problem. The first attempt was
with commit 546c4402c574 ("powerpc/vdso: Add missing include file"). This
was not complete because it added the include file to an affected source
file, not to the file where cpu_has_feature() was used.

Build tested all default configurations to ensure that this patch does not
introduce a regression.

 arch/powerpc/include/asm/cputhreads.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/include/asm/cputhreads.h b/arch/powerpc/include/asm/cputhreads.h
index 666bef4ebfae..9377bdf42eb8 100644
--- a/arch/powerpc/include/asm/cputhreads.h
+++ b/arch/powerpc/include/asm/cputhreads.h
@@ -3,6 +3,7 @@
 
 #ifndef __ASSEMBLY__
 #include <linux/cpumask.h>
+#include <asm/cpu_has_feature.h>
 
 /*
  * Mapping of threads to cores
-- 
2.5.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web