Bug 722928 - kernel does not build when CONFIG_XEN is not set
Summary: kernel does not build when CONFIG_XEN is not set
Keywords:
Status: CLOSED DUPLICATE of bug 729488
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Igor Mammedov
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks: 523117
TreeView+ depends on / blocked
 
Reported: 2011-07-18 14:00 UTC by Xavier Bru
Modified: 2011-11-03 10:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-03 10:25:29 UTC
Target Upstream Version:


Attachments (Terms of Use)
fix broken build if xen is disabled in config (1.64 KB, patch)
2011-08-17 12:47 UTC, Igor Mammedov
no flags Details | Diff

Description Xavier Bru 2011-07-18 14:00:05 UTC
Description of problem: 
compilation error with recent patch for BZ703055 

Version-Release number of selected component (if applicable):
2.6.32-131.6.1

How reproducible:
"CONFIG_XEN is not set" in configuration file

Steps to Reproduce:
1. rpmbuild -bb kernel.spec
2.
3.
  
Actual results:
arch/x86/kernel/cpu/common.c: In function 'filter_cpuid_features':
> arch/x86/kernel/cpu/common.c:306: error: implicit declaration of function
> 'xen_cpuid_base'

Expected results:
build OK

Additional info:

Compilation is OK with the following patch:
--- k/arch/x86/kernel/cpu/common.c~	2011-06-20 19:27:06.000000000 +0200
+++ k/arch/x86/kernel/cpu/common.c	2011-07-18 10:55:46.000000000 +0200
@@ -301,7 +301,7 @@ static void __cpuinit filter_cpuid_featu
 		       "CPU: CPU feature %s disabled, no CPUID level 0x%x\n",
 				x86_cap_flags[df->feature], df->level);
 	}
-
+#ifdef CONFIG_XEN
 	/* RHEL Xen HVM guests must filter additional features. BZ#703055 */
 	if (xen_cpuid_base() == 0)
 		return;
@@ -318,6 +318,7 @@ static void __cpuinit filter_cpuid_featu
 
 	clear_cpu_cap(c, X86_FEATURE_GBPAGES);
 	clear_cpu_cap(c, X86_FEATURE_RDTSCP);
+#endif /* CONFIG_XEN */
 }

Comment 3 Igor Mammedov 2011-08-17 12:47:30 UTC
Created attachment 518670 [details]
fix broken build if xen is disabled in config

Comment 9 Igor Mammedov 2011-11-03 10:25:29 UTC

*** This bug has been marked as a duplicate of bug 729488 ***


Note You need to log in before you can comment on or make changes to this bug.