[Devel] [PATCH RHEL7 COMMIT] ve/ppc: include ve.h in process.c

Konstantin Khorenko khorenko at odin.com
Thu May 7 09:28:15 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.4.10
------>
commit 0a15e65aed4380f29bb4265508bb66a871d3f5fb
Author: Kir Kolyshkin <kir at openvz.org>
Date:   Thu May 7 20:28:15 2015 +0400

    ve/ppc: include ve.h in process.c
    
    This was found while tring to compile the kernel with a stock
    config (i.e. no CONFIG_BEANCOUNTERS, CONFIG_VE etc.) and
    boot it on IBM Power8.
    
    =============================================================
    
    As get_exec_env() is defined in linux/ve.h we have to include it.
    Fixes the following compile error:
    
    	  CC      arch/powerpc/kernel/process.o
    	In file included from arch/powerpc/kernel/process.c:20:0:
    	arch/powerpc/kernel/process.c: In function ‘arch_align_stack’:
    	include/linux/mm.h:1951:43: error: dereferencing pointer to incomplete
    	type
    	 #define randomize_va_space (get_exec_env()->_randomize_va_space)
    						   ^
    	arch/powerpc/kernel/process.c:1564:53: note: in expansion of macro
    	‘randomize_va_space’
    	  if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space)
    							     ^
    	make[1]: *** [arch/powerpc/kernel/process.o] Error 1
    
    This is an addition to commit 0c67100
    
    Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 arch/powerpc/kernel/process.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 6f55061..50c7d73 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -38,6 +38,7 @@
 #include <linux/personality.h>
 #include <linux/random.h>
 #include <linux/hw_breakpoint.h>
+#include <linux/ve.h>
 
 #include <asm/pgtable.h>
 #include <asm/uaccess.h>



More information about the Devel mailing list